Configuration files

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Configuration files

跳至解决方案
1,184 次查看
leccy
Contributor III

Codewarrior 10.1 for Kinetis

 

I need to have a number of different configurations for each project.

 

Each configuration will have a number of configuration-specfic #include files.  Some of these files will be generated by pre-build scripts from e.g. .BMP files.  If I put these .BMP files in the configuration folder, and start a Clean/Build, the files are destroyed and the script fails.

 

I found this process easy to do with IAR, but I am struggling to find settings, processes etc that allow this to work.

 

Can someone please point out the obvious!

 

Thanks

Alex

标签 (1)
0 项奖励
回复
1 解答
1,026 次查看
CrasyCat
Specialist III

Hello

 

  When you perform a Project Clean, Eclipse will delete the whole build directory.  

  So only files that are re-created by a Project Build should be stored in there.

 

  If you need to keep the .bmp file after a Clean Project you need to store them in a folder outside of the build directory.

  You can for example create a directory bmp_files and add one sub-directory for each build configuration you are using.

  Then store the .bmp files in the appropriate sub directory.

 

  If the directory bmp_files is located in the project directory tree, make sure to exclude the folders holding .bmp for other

  configurations from a particular  build config.

 

  This is quite easy. To remove a folder from a build configuration:

       - Inside of the CodeWarrior Project view, click right on the folder name

       - In the drop down menu select Properties.

       - Activate the C/C++ Build page 

       - Check Exclude resource from build.

 

CrasyCat

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,027 次查看
CrasyCat
Specialist III

Hello

 

  When you perform a Project Clean, Eclipse will delete the whole build directory.  

  So only files that are re-created by a Project Build should be stored in there.

 

  If you need to keep the .bmp file after a Clean Project you need to store them in a folder outside of the build directory.

  You can for example create a directory bmp_files and add one sub-directory for each build configuration you are using.

  Then store the .bmp files in the appropriate sub directory.

 

  If the directory bmp_files is located in the project directory tree, make sure to exclude the folders holding .bmp for other

  configurations from a particular  build config.

 

  This is quite easy. To remove a folder from a build configuration:

       - Inside of the CodeWarrior Project view, click right on the folder name

       - In the drop down menu select Properties.

       - Activate the C/C++ Build page 

       - Check Exclude resource from build.

 

CrasyCat

0 项奖励
回复
1,026 次查看
leccy
Contributor III

CrasyCat

 

Many thanks for your reply.

 

That is working fine now.

 

Alex

0 项奖励
回复