mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
added -vv
This commit is contained in:
parent
533a7976f7
commit
2596764324
@ -1500,6 +1500,7 @@ handle_defer_command() {
|
|||||||
def = _scope->expand_self_reference(def, varname);
|
def = _scope->expand_self_reference(def, varname);
|
||||||
_scope->define_variable(varname, def);
|
_scope->define_variable(varname, def);
|
||||||
|
|
||||||
|
if (verbose>=2) cerr<<"#defer "<<varname<<" = "<<_params.substr(p)<<endl;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1529,6 +1530,7 @@ handle_define_command() {
|
|||||||
string def = _scope->expand_string(_params.substr(p));
|
string def = _scope->expand_string(_params.substr(p));
|
||||||
_scope->define_variable(varname, def);
|
_scope->define_variable(varname, def);
|
||||||
|
|
||||||
|
if (verbose>=2) cerr<<"#define "<<varname<<" = "<<_params.substr(p)<<"\n \""<<def<<"\""<<endl;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ bool unix_platform = false;
|
|||||||
bool windows_platform = false;
|
bool windows_platform = false;
|
||||||
bool dry_run = false;
|
bool dry_run = false;
|
||||||
bool verbose_dry_run = false;
|
bool verbose_dry_run = false;
|
||||||
bool verbose = false;
|
int verbose = 0;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
usage() {
|
usage() {
|
||||||
@ -70,6 +70,7 @@ usage() {
|
|||||||
" -h Display this page.\n"
|
" -h Display this page.\n"
|
||||||
" -V Report the version of ppremake, and exit.\n"
|
" -V Report the version of ppremake, and exit.\n"
|
||||||
" -v Turn on verbose output (may help in debugging .pp files).\n"
|
" -v Turn on verbose output (may help in debugging .pp files).\n"
|
||||||
|
" -vv Be very verbose (if you're getting desperate).\n"
|
||||||
" -P Report the current platform name, and exit.\n\n"
|
" -P Report the current platform name, and exit.\n\n"
|
||||||
" -D pp.dep Examine the given dependency file, and re-run ppremake\n"
|
" -D pp.dep Examine the given dependency file, and re-run ppremake\n"
|
||||||
" only if the dependency file is stale.\n\n"
|
" only if the dependency file is stale.\n\n"
|
||||||
@ -251,7 +252,7 @@ main(int argc, char *argv[]) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'v':
|
case 'v':
|
||||||
verbose=true;
|
++verbose;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'P':
|
case 'P':
|
||||||
|
@ -91,7 +91,7 @@ extern bool windows_platform;
|
|||||||
/* This is a command-line global parameter. */
|
/* This is a command-line global parameter. */
|
||||||
extern bool dry_run;
|
extern bool dry_run;
|
||||||
extern bool verbose_dry_run;
|
extern bool verbose_dry_run;
|
||||||
extern bool verbose;
|
extern int verbose; // 0..9 to set verbose level. 0 == off.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* These are defined so that we may build Filename, DSearchPath, and
|
/* These are defined so that we may build Filename, DSearchPath, and
|
||||||
|
Loading…
x
Reference in New Issue
Block a user