some feedback for the users on the "preprocess" command

This commit is contained in:
Timotei Dolean 2010-05-22 09:54:55 +00:00
parent 9166498868
commit 8e3f8a02f9

View file

@ -2007,14 +2007,18 @@ static int process_command_args(int argc, char** argv) {
defines_map.insert(std::make_pair(tmp_val,
preproc_define(tmp_val)));
}
std::cerr<<"added "<<defines_map.size()<<" defines.\n";
}
// preprocess common macros first
LOG_PREPROC<<"processing common macros...\n";
std::cerr<<"processing common macros...\n";
preprocess_resource(game_config::path + "/data/core/",&defines_map);
LOG_PREPROC<<"processing target resource...\n";
std::cerr<<"processing specified resource...\n";
//if
preprocess_resource(resourceToProcess, &defines_map, true,true, targetDir);
std::cerr<<"processing finished.\n";
}
else{
std::cerr<<"Please specify a source file/folder and a target folder\n";