C++ Builder - 管理项目组文件
C++ Builder - managing project group files
我在 C++ Builder 中有一个项目组,其中包含 VCL 应用程序 (EXE) 和几个 DLL 项目。组中的所有项目都有自己的 debug/release 文件夹,在执行静态 dll 链接时,我需要将我的 dll 项目的 .lib 和 .dll 文件复制到使用它的应用程序的 debug/release 文件夹中。在任何 dll 编译之后,我需要它是自动的。怎么做?另外,我需要确保组中的所有 dll 项目都按特定顺序编译..?
All projects in group have their own debug/release folders and when performing static dll linking I need .lib and .dll files of my dll projects copied into debug/release folder of the app using it. I would need this to be automatic after any of dll's compile. How to do it?
每个项目都可以在项目选项中指定自己的 output folder。您可以简单地让每个 DLL 项目将其编译后的文件输出到 EXE 项目输出到的相同 release/debug 文件夹。
或者,你可以让每个项目继续输出到它自己的release/debug文件夹,然后使用Post-Build Event将编译好的文件复制到EXE项目的release/debug文件夹。
Also, I need to make sure that all dll projects in group compile in specific order..?
项目按照它们在项目组中列出的顺序进行编译,除非您select单独编译特定项目,或者select一个项目并选择"Compile all from Here"选项项目经理。如有必要,您可以配置 project dependencies,这样编译任何给定的项目将首先编译它所依赖的任何其他项目。比如EXE工程可以依赖DLL工程,那么编译EXE会自动先编译DLL。如果给定的 DLL 项目需要先编译另一个 DLL 项目,请相应地配置该依赖项。
我在 C++ Builder 中有一个项目组,其中包含 VCL 应用程序 (EXE) 和几个 DLL 项目。组中的所有项目都有自己的 debug/release 文件夹,在执行静态 dll 链接时,我需要将我的 dll 项目的 .lib 和 .dll 文件复制到使用它的应用程序的 debug/release 文件夹中。在任何 dll 编译之后,我需要它是自动的。怎么做?另外,我需要确保组中的所有 dll 项目都按特定顺序编译..?
All projects in group have their own debug/release folders and when performing static dll linking I need .lib and .dll files of my dll projects copied into debug/release folder of the app using it. I would need this to be automatic after any of dll's compile. How to do it?
每个项目都可以在项目选项中指定自己的 output folder。您可以简单地让每个 DLL 项目将其编译后的文件输出到 EXE 项目输出到的相同 release/debug 文件夹。
或者,你可以让每个项目继续输出到它自己的release/debug文件夹,然后使用Post-Build Event将编译好的文件复制到EXE项目的release/debug文件夹。
Also, I need to make sure that all dll projects in group compile in specific order..?
项目按照它们在项目组中列出的顺序进行编译,除非您select单独编译特定项目,或者select一个项目并选择"Compile all from Here"选项项目经理。如有必要,您可以配置 project dependencies,这样编译任何给定的项目将首先编译它所依赖的任何其他项目。比如EXE工程可以依赖DLL工程,那么编译EXE会自动先编译DLL。如果给定的 DLL 项目需要先编译另一个 DLL 项目,请相应地配置该依赖项。