mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-18 22:18:56 +00:00
eclipse plugin: skip reading defines if...
...no modification were done to "_main.cfg"
This commit is contained in:
parent
bd394921b5
commit
9e0b36ad7e
@ -199,10 +199,13 @@ public class WesnothProjectBuilder extends IncrementalProjectBuilder
|
||||
defines.add("SKIP_CORE");
|
||||
|
||||
// we use a single _MACROS_.cfg file for each project
|
||||
PreprocessorUtils.preprocessFile(file,
|
||||
int preprocResult = PreprocessorUtils.preprocessFile(file,
|
||||
PreprocessorUtils.getDefinesLocation(file), defines);
|
||||
|
||||
if (isMainCfg == true)
|
||||
// preprocess only if we preprocessed (successfuly) the main file
|
||||
// skip already preprocessed
|
||||
//TODO: profile with this condition removed so we can have live feedback about macros
|
||||
if (isMainCfg == true && preprocResult == 0)
|
||||
{
|
||||
// process the defines obtained
|
||||
ProjectUtils.getCacheForProject(getProject()).readDefines(true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user