summaryrefslogtreecommitdiff
path: root/Makefile.msvc
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-06-13 07:34:55 +0000
committerrubidium <rubidium@openttd.org>2011-06-13 07:34:55 +0000
commit3d4c35c3ca686a8d62a775548b99d798be97289e (patch)
tree0d183d4b067ff3a7192c11b9ec24ecb75c669c74 /Makefile.msvc
parentb7b0637a10f1137ed33fdcf8d026b837b9a07ee4 (diff)
downloadopenttd-3d4c35c3ca686a8d62a775548b99d798be97289e.tar.xz
(svn r22576) -Add: bundle_pdb command to put the pdb into the bundles directory as well
Diffstat (limited to 'Makefile.msvc')
-rw-r--r--Makefile.msvc7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.msvc b/Makefile.msvc
index 8ee1e7088..1748146e6 100644
--- a/Makefile.msvc
+++ b/Makefile.msvc
@@ -27,9 +27,16 @@ SRC_DIR = "$(ROOT_DIR)/src"
BUNDLE_DIR = "$(ROOT_DIR)/bundle"
BUNDLES_DIR = "$(ROOT_DIR)/bundles"
TTD = openttd.exe
+PDB = openttd.pdb
TARGET := $(shell echo $(PLATFORM) | sed "s@win64@x64@;s@win32@Win32@")
all:
$(Q)cp objs/$(TARGET)/Release/$(TTD) $(BIN_DIR)/$(TTD)
include Makefile.bundle.in
+
+bundle_pdb:
+ @echo '[BUNDLE] Creating $(BUNDLE_NAME).pdb.xz'
+ $(Q)mkdir -p "$(BUNDLES_DIR)"
+ $(Q)cp objs/$(TARGET)/Release/$(PDB) $(BUNDLES_DIR)/$(BUNDLE_NAME).pdb
+ $(Q)cd xz -9 $(BUNDLES_DIR)/$(BUNDLE_NAME).pdb