summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-03-26 16:48:24 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-03-26 16:48:24 +0100
commit69d4d86e749a3111edb3dad3ef38d4e0669c49ab (patch)
tree810a9896f82939ed0eec3cfe41a9d3621217faf6
parentc29a2b4517317e5d15354ed52b2aaaea3efdf1dc (diff)
add postbuild only to main file (nw)
-rw-r--r--scripts/genie.lua8
-rw-r--r--scripts/src/main.lua8
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
@@ -474,14 +474,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"