make/common/NativeCompilation.gmk
changeset 29312 f3f859137ce6
parent 29304 81a723f8d33c
child 29436 91f4e8a8134f
equal deleted inserted replaced
29311:bc685175f836 29312:f3f859137ce6
   193 #   DEBUG_SYMBOLS add debug symbols (if configured on)
   193 #   DEBUG_SYMBOLS add debug symbols (if configured on)
   194 #   CC the compiler to use, default is $(CC)
   194 #   CC the compiler to use, default is $(CC)
   195 #   LDEXE the linker to use for linking executables, default is $(LDEXE)
   195 #   LDEXE the linker to use for linking executables, default is $(LDEXE)
   196 #   OPTIMIZATION sets optimization level to NONE, LOW, HIGH, HIGHEST
   196 #   OPTIMIZATION sets optimization level to NONE, LOW, HIGH, HIGHEST
   197 #   DISABLED_WARNINGS_<toolchain> Disable the given warnings for the specified toolchain
   197 #   DISABLED_WARNINGS_<toolchain> Disable the given warnings for the specified toolchain
   198 define SetupNativeCompilation
   198 SetupNativeCompilation = $(NamedParamsMacroTemplate)
   199   $(if $(30),$(error Internal makefile error: Too many arguments to SetupNativeCompilation, please update NativeCompilation.gmk))
   199 define SetupNativeCompilationBody
   200   $(call EvalDebugWrapper,$(strip $1),$(call SetupNativeCompilationInner,$(strip $1),$2,$3,$4,$5,$6,$7,$8,$9,$(10),$(11),$(12),$(13),$(14),$(15),$(16),$(17),$(18),$(19),$(20),$(21),$(22),$(23),$(24),$(25),$(26),$(27),$(28),$(29)))
       
   201 endef
       
   202 
       
   203 define SetupNativeCompilationInner
       
   204   $(foreach i,2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29, $(if $(strip $($i)),$1_$(strip $($i)))$(NEWLINE))
       
   205   $(call LogSetupMacroEntry,SetupNativeCompilation($1),$2,$3,$4,$5,$6,$7,$8,$9,$(10),$(11),$(12),$(13),$(14),$(15),$(16),$(17),$(18),$(19),$(20),$(21),$(22),$(23),$(24),$(25),$(26),$(27),$(28),$(29))
       
   206   $(if $(30),$(error Internal makefile error: Too many arguments to SetupNativeCompilation, please update NativeCompilation.gmk))
       
   207 
   200 
   208   ifneq (,$$($1_BIN))
   201   ifneq (,$$($1_BIN))
   209     $$(error BIN has been replaced with OBJECT_DIR)
   202     $$(error BIN has been replaced with OBJECT_DIR)
   210   endif
   203   endif
   211 
   204