*.appli change -> full rebuild?

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

*.appli change -> full rebuild?

跳至解决方案
2,636 次查看
s_kalop
Contributor I

Hello, i have simple library project(CW10.2.1) about of 300 source files. Every time i make changes in *appli file of this project(data placement) full rebuild is needed(it's consumed a lot of time), but change i've made concerns just one file. Are there some methods to prevent full rebuilding when *appli is changed?

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

Hello

The .appli file you are using is used as input for all the source file within the project. So there is a direct dependency between each of the source file and the .appli file.

Any change inside of the .appli file implies a full rebuild of the application.

The IDE only noticed the .appli file has been changed since the last time the source file has been built.

So you cannot prevent CodeWarrior from rebuilding the whole application after a change in the .appli file.

Now depending what you are trying to do in the .appli file, you may want to use the corresponding pragmas or __attribute__ in the single source file, instead of using the .appli file. 

This way the rebuild will only build the source files, which have been changed.

Be careful all commands inside of the.appli file do not have a correspondent pragma or __attribute__ notation. So using this variant really depends on what you are trying to achieve in the .appli file.

CrasyCat

在原帖中查看解决方案

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

Hello

The .appli file you are using is used as input for all the source file within the project. So there is a direct dependency between each of the source file and the .appli file.

Any change inside of the .appli file implies a full rebuild of the application.

The IDE only noticed the .appli file has been changed since the last time the source file has been built.

So you cannot prevent CodeWarrior from rebuilding the whole application after a change in the .appli file.

Now depending what you are trying to do in the .appli file, you may want to use the corresponding pragmas or __attribute__ in the single source file, instead of using the .appli file. 

This way the rebuild will only build the source files, which have been changed.

Be careful all commands inside of the.appli file do not have a correspondent pragma or __attribute__ notation. So using this variant really depends on what you are trying to achieve in the .appli file.

CrasyCat

0 项奖励
回复
2,496 次查看
s_kalop
Contributor I

Thank you

0 项奖励
回复