make/common/NativeCompilation.gmk
changeset 37969 2203863bfe3e
parent 37867 379a6c51a588
parent 37967 8dd54c3bf02a
child 41260 4f71f07b30d1
equal deleted inserted replaced
37948:caf97b37ebec 37969:2203863bfe3e
   370 #       when compiling C code
   370 #       when compiling C code
   371 #   DISABLED_WARNINGS_CXX_<toolchain> Disable the given warnings for the specified
   371 #   DISABLED_WARNINGS_CXX_<toolchain> Disable the given warnings for the specified
   372 #       toolchain when compiling C++ code
   372 #       toolchain when compiling C++ code
   373 #   STRIP_SYMBOLS Set to true to strip the final binary if the toolchain allows for it
   373 #   STRIP_SYMBOLS Set to true to strip the final binary if the toolchain allows for it
   374 #   DEBUG_SYMBOLS Set to false to disable generation of debug symbols
   374 #   DEBUG_SYMBOLS Set to false to disable generation of debug symbols
       
   375 #   COPY_DEBUG_SYMBOLS Set to false to override global setting of debug symbol copying
       
   376 #   ZIP_EXTERNAL_DEBUG_SYMBOLS Set to false to override global setting of debug symbol
       
   377 #       zipping
   375 #   CFLAGS_DEBUG_SYMBOLS Overrides the default cflags for enabling debug symbols
   378 #   CFLAGS_DEBUG_SYMBOLS Overrides the default cflags for enabling debug symbols
   376 #   CXXFLAGS_DEBUG_SYMBOLS Overrides the default cxxflags for enabling debug symbols
   379 #   CXXFLAGS_DEBUG_SYMBOLS Overrides the default cxxflags for enabling debug symbols
   377 #   STRIPFLAGS Optionally change the flags given to the strip command
   380 #   STRIPFLAGS Optionally change the flags given to the strip command
   378 #   PRECOMPILED_HEADER Header file to use as precompiled header
   381 #   PRECOMPILED_HEADER Header file to use as precompiled header
   379 #   PRECOMPILED_HEADER_EXCLUDE List of source files that should not use PCH
   382 #   PRECOMPILED_HEADER_EXCLUDE List of source files that should not use PCH
   812   endif
   815   endif
   813 
   816 
   814   # Need to make sure TARGET is first on list
   817   # Need to make sure TARGET is first on list
   815   $1 := $$($1_TARGET)
   818   $1 := $$($1_TARGET)
   816 
   819 
   817   ifeq ($(COPY_DEBUG_SYMBOLS), true)
   820   ifneq ($$($1_COPY_DEBUG_SYMBOLS), false)
       
   821     $1_COPY_DEBUG_SYMBOLS := $(COPY_DEBUG_SYMBOLS)
       
   822   endif
       
   823 
       
   824   ifneq ($$($1_ZIP_EXTERNAL_DEBUG_SYMBOLS), false)
       
   825     $1_ZIP_EXTERNAL_DEBUG_SYMBOLS := $(ZIP_EXTERNAL_DEBUG_SYMBOLS)
       
   826   endif
       
   827 
       
   828   ifeq ($$($1_COPY_DEBUG_SYMBOLS), true)
   818     ifneq ($$($1_DEBUG_SYMBOLS), false)
   829     ifneq ($$($1_DEBUG_SYMBOLS), false)
   819       # Only copy debug symbols for dynamic libraries and programs.
   830       # Only copy debug symbols for dynamic libraries and programs.
   820       ifeq ($$($1_STATIC_LIBRARY), )
   831       ifeq ($$($1_STATIC_LIBRARY), )
   821         ifneq ($$($1_OUTPUT_DIR), $$($1_OBJECT_DIR))
   832         ifneq ($$($1_OUTPUT_DIR), $$($1_OBJECT_DIR))
   822           # The dependency on TARGET is needed on windows for debuginfo files
   833           # The dependency on TARGET is needed on windows for debuginfo files
   859         # This dependency dance ensures that debug info files get rebuilt
   870         # This dependency dance ensures that debug info files get rebuilt
   860         # properly if deleted.
   871         # properly if deleted.
   861         $$($1_TARGET): $$($1_DEBUGINFO_FILES)
   872         $$($1_TARGET): $$($1_DEBUGINFO_FILES)
   862         $$($1_DEBUGINFO_FILES): $$($1_ALL_OBJS)
   873         $$($1_DEBUGINFO_FILES): $$($1_ALL_OBJS)
   863 
   874 
   864         ifeq ($(ZIP_EXTERNAL_DEBUG_SYMBOLS), true)
   875         ifeq ($$($1_ZIP_EXTERNAL_DEBUG_SYMBOLS), true)
   865           $1_DEBUGINFO_ZIP := $$($1_OBJECT_DIR)/$$($1_NOSUFFIX).diz
   876           $1_DEBUGINFO_ZIP := $$($1_OBJECT_DIR)/$$($1_NOSUFFIX).diz
   866           $1 += $$(subst $$($1_OBJECT_DIR),$$($1_OUTPUT_DIR),$$($1_DEBUGINFO_ZIP))
   877           $1 += $$(subst $$($1_OBJECT_DIR),$$($1_OUTPUT_DIR),$$($1_DEBUGINFO_ZIP))
   867 
   878 
   868           # The dependency on TARGET is needed for debuginfo files
   879           # The dependency on TARGET is needed for debuginfo files
   869           # to be rebuilt properly.
   880           # to be rebuilt properly.