From 69d4d86e749a3111edb3dad3ef38d4e0669c49ab Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 26 Mar 2015 16:48:24 +0100 Subject: [PATCH] add postbuild only to main file (nw) --- scripts/genie.lua | 8 -------- scripts/src/main.lua | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/genie.lua b/scripts/genie.lua index 28f8ccb026b..0a299178859 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -473,14 +473,6 @@ if _OPTIONS["MAP"] then } end -end -if _OPTIONS["SYMBOLS"] then - configuration { "mingw*" } - postbuildcommands { - "$(SILENT) echo Dumping symbols.", - "$(SILENT) objdump --section=.text --line-numbers --syms --demangle $(TARGET) >$(subst .exe,.sym,$(TARGET))" - } - configuration { } end buildoptions { "-Wno-unknown-pragmas", diff --git a/scripts/src/main.lua b/scripts/src/main.lua index 360749f3a80..9b415f2870e 100644 --- a/scripts/src/main.lua +++ b/scripts/src/main.lua @@ -14,6 +14,14 @@ function mainProject(_target, _subtarget) "NoManifest", } + if _OPTIONS["SYMBOLS"] then + configuration { "mingw*" } + postbuildcommands { + "$(SILENT) echo Dumping symbols.", + "$(SILENT) objdump --section=.text --line-numbers --syms --demangle $(TARGET) >$(subst .exe,.sym,$(TARGET))" + } + end + configuration { "osx*" } linkoptions { "-sectcreate __TEXT __info_plist " .. GEN_DIR .. "/osd/sdl/" .. _OPTIONS["target"] .. "-Info.plist"