Пример #1
0
#===================================================
# BEGIN EDITS/CUSTOMIZATIONS
#---------------------------------------------------

# Set the name for the final output item
FINAL_OUTPUT_NAME = 'a.out'

# Link unittest directory by object module so that Catch's self-registration mechanism 'works'
unit_test_objects = '_BUILT_DIR_.src/Cpl/Dm/_0test _BUILT_DIR_.src/Cpl/Dm/_0test/_baremetal'

#
# For build config/variant: "Release" (aka posix build variant)
#

# Set project specific 'base' (i.e always used) options
base_release = BuildValues()  # Do NOT comment out this line
base_release.cflags = '-m32 -std=c++11 -Wall -Werror -x c++ -fprofile-arcs -ftest-coverage -DCATCH_CONFIG_FAST_COMPILE'
base_release.linkflags = '-m32 -fprofile-arcs'
base_release.linklibs = '-lgcov -lpthread -lm'
base_release.firstobjs = unit_test_objects

# Set project specific 'optimized' options
optimzed_release = BuildValues()  # Do NOT comment out this line
optimzed_release.cflags = '-O3'
optimzed_release.linklibs = '-lstdc++'

# Set project specific 'debug' options
debug_release = BuildValues()  # Do NOT comment out this line
debug_release.linklibs = '-lstdc++'

#
Пример #2
0
#===================================================
# BEGIN EDITS/CUSTOMIZATIONS
#---------------------------------------------------

# Set the name for the final output item
FINAL_OUTPUT_NAME = 'b.exe'

# Link unittest directory by object module so that Catch's self-registration mechanism 'works'
unit_test_objects = '_BUILT_DIR_.src/Cpl/Text/Frame/_0test'

#
# For build config/variant: "Release"
#

# Set project specific 'base' (i.e always used) options
base_release = BuildValues()  # Do NOT comment out this line
base_release.cflags = '-m32 -std=c++11 -Wall -Werror -x c++  -fprofile-arcs -ftest-coverage -DCATCH_CONFIG_FAST_COMPILE'
base_release.linkflags = '-m32 -fprofile-arcs'
base_release.linklibs = '-lgcov'
base_release.firstobjs = unit_test_objects

# Set project specific 'optimized' options
optimzed_release = BuildValues()  # Do NOT comment out this line
optimzed_release.cflags = '-O3'
optimzed_release.linklibs = '-lstdc++'

# Set project specific 'debug' options
debug_release = BuildValues()  # Do NOT comment out this line
debug_release.linklibs = '-lstdc++'

#
Пример #3
0
ARDUINO_SUPPORT = NQBP_PKG_ROOT()

#===================================================
# BEGIN EDITS/CUSTOMIZATIONS
#---------------------------------------------------

# Set the name for the final output item (with NO file extension)
FINAL_OUTPUT_NAME = 'blink'

#
# For build config/variant: "Release"
#

# Set project specific 'base' (i.e always used) options
base_release = BuildValues()  # Do NOT comment out this line
base_release.cflags = ' -Wall -DF_CPU=64000000 -DARDUINO=10802'
base_release.asmflags = ' -Wall -DF_CPU=64000000 -DARDUINO=10802'

# Set project specific 'optimzed' options
optimzed_release = BuildValues()  # Do NOT comment out this line

# Set project specific 'debug' options
debug_release = BuildValues()  # Do NOT comment out this line
#debug_release.cflags = '-D_MY_APP_DEBUG_SWITCH_'

#-------------------------------------------------
# ONLY edit this section if you are ADDING options
# for build configurations/variants OTHER than the
# 'release' build
#-------------------------------------------------