add postbuild only to main file (nw)

This commit is contained in:
Miodrag Milanovic 2015-03-26 16:48:24 +01:00
parent c29a2b4517
commit 69d4d86e74
2 changed files with 8 additions and 8 deletions

View File

@ -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",

View File

@ -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"