mirror of
https://github.com/nasa/trick.git
synced 2025-01-31 00:24:03 +00:00
commit
5e0fdc824c
@ -12,6 +12,11 @@ use Pod::Text ;
|
|||||||
$trick_bin = dirname(abs_path($0)) ;
|
$trick_bin = dirname(abs_path($0)) ;
|
||||||
$trick_home = dirname($trick_bin) ;
|
$trick_home = dirname($trick_bin) ;
|
||||||
|
|
||||||
|
### Set TRICK_VERBOSE_BUILD if VERBOSE is defined (synonyms) ###
|
||||||
|
if(defined $ENV{'VERBOSE'}) {
|
||||||
|
$ENV{'TRICK_VERBOSE_BUILD'} = 1;
|
||||||
|
}
|
||||||
|
|
||||||
#### Handle arguments ####
|
#### Handle arguments ####
|
||||||
$numArgs = $#ARGV + 1;
|
$numArgs = $#ARGV + 1;
|
||||||
$makefileAddArgs = ' ';
|
$makefileAddArgs = ' ';
|
||||||
@ -237,7 +242,7 @@ print-%:
|
|||||||
help:
|
help:
|
||||||
@echo -e "\
|
@echo -e "\
|
||||||
Simulation make options:\n\
|
Simulation make options:\n\
|
||||||
make [debug] [TRICK_VERBOSE_BUILD=1] - Makes everything: S_main and S_sie.resource\n\
|
make [debug] [TRICK_VERBOSE_BUILD=1] [VERBOSE=1] - Makes everything: S_main and S_sie.resource\n\
|
||||||
make sie - Builds the S_sie.resource file.\n\
|
make sie - Builds the S_sie.resource file.\n\
|
||||||
make clean - Removes all object files in simulation directory\n\
|
make clean - Removes all object files in simulation directory\n\
|
||||||
make spotless - Performs a clean\n\
|
make spotless - Performs a clean\n\
|
||||||
|
@ -57,7 +57,7 @@ sub read_lib_deps($@) {
|
|||||||
read_lib_deps($indent + 1 , @resolved_files) ;
|
read_lib_deps($indent + 1 , @resolved_files) ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} elsif ( exists $ENV{TRICK_VERBOSE_BUILD} ) {
|
} elsif ( exists( $ENV{TRICK_VERBOSE_BUILD} ) or exists( $ENV{VERBOSE} ) ) {
|
||||||
print "[34mSkipping[0m Previously processed file \"$l\"\n" ;
|
print "[34mSkipping[0m Previously processed file \"$l\"\n" ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -214,6 +214,10 @@ print MAKEFILE
|
|||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
ifdef VERBOSE
|
||||||
|
TRICK_VERBOSE_BUILD=1
|
||||||
|
endif
|
||||||
|
|
||||||
ifndef TRICK_VERBOSE_BUILD
|
ifndef TRICK_VERBOSE_BUILD
|
||||||
PRINT_COMPILE = \$(info \$(call COLOR,Compiling) \$<)
|
PRINT_COMPILE = \$(info \$(call COLOR,Compiling) \$<)
|
||||||
PRINT_EXE_LINK = \$(info \$(call COLOR,Linking) \$@)
|
PRINT_EXE_LINK = \$(info \$(call COLOR,Linking) \$@)
|
||||||
|
@ -18,7 +18,8 @@ my @ext_lib_paths ;
|
|||||||
my @files_to_process ;
|
my @files_to_process ;
|
||||||
my @ext_lib_files ;
|
my @ext_lib_files ;
|
||||||
my %md5s ;
|
my %md5s ;
|
||||||
my $verbose_build = exists($ENV{'TRICK_VERBOSE_BUILD'}) ;
|
|
||||||
|
my $verbose_build = (exists($ENV{'TRICK_VERBOSE_BUILD'}) or exists($ENV{'VERBOSE'})) ;
|
||||||
my %trick_headers ;
|
my %trick_headers ;
|
||||||
my %python_modules ;
|
my %python_modules ;
|
||||||
my %python_module_dirs ;
|
my %python_module_dirs ;
|
||||||
@ -192,6 +193,10 @@ else
|
|||||||
TRICK_SYSTEM_SWIG_CFLAGS += -Wno-unused-but-set-variable
|
TRICK_SYSTEM_SWIG_CFLAGS += -Wno-unused-but-set-variable
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef VERBOSE
|
||||||
|
TRICK_VERBOSE_BUILD=1
|
||||||
|
endif
|
||||||
|
|
||||||
ifndef TRICK_VERBOSE_BUILD
|
ifndef TRICK_VERBOSE_BUILD
|
||||||
PRINT_SWIG = \$(info \$(call COLOR,SWIGing) \$<)
|
PRINT_SWIG = \$(info \$(call COLOR,SWIGing) \$<)
|
||||||
PRINT_COMPILE_SWIG = \$(info \$(call COLOR,Compiling) \$<)
|
PRINT_COMPILE_SWIG = \$(info \$(call COLOR,Compiling) \$<)
|
||||||
|
@ -9,6 +9,10 @@ export TRICK_HOME := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))../../..)
|
|||||||
|
|
||||||
COLOR = [34m$(1)[0m
|
COLOR = [34m$(1)[0m
|
||||||
|
|
||||||
|
ifdef VERBOSE
|
||||||
|
TRICK_VERBOSE_BUILD=1
|
||||||
|
endif
|
||||||
|
|
||||||
ifndef TRICK_VERBOSE_BUILD
|
ifndef TRICK_VERBOSE_BUILD
|
||||||
ECHO_CMD = @
|
ECHO_CMD = @
|
||||||
endif
|
endif
|
||||||
|
@ -63,7 +63,7 @@ class PrintAttributes {
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
const bool verboseBuild = getenv("TRICK_VERBOSE_BUILD");
|
const bool verboseBuild = (getenv("TRICK_VERBOSE_BUILD") || getenv("VERBOSE"));
|
||||||
const std::string skipping = color(SKIP, "ICG Skip ");
|
const std::string skipping = color(SKIP, "ICG Skip ");
|
||||||
|
|
||||||
/** Directory to put class and enum map files */
|
/** Directory to put class and enum map files */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user