summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorokamstudio <juan@okamstudio.com>2014-02-13 12:10:21 -0200
committerokamstudio <juan@okamstudio.com>2014-02-13 12:10:21 -0200
commitca60bae83ecee3e8a4d41265ba1f094427b030dc (patch)
tree4aeaa6e6590492dedabf91cb0ee9ac4ce8d687ba /platform
parent4e2c81bd4e0cc119611df57b7c6807850dda7bf4 (diff)
parent5abc0bbcf604e516f70b19fa999c4c56c86507e9 (diff)
Merge pull request #34 from marynate/master
Fixed build rule file for proper MSVC release build
Diffstat (limited to 'platform')
-rw-r--r--platform/windows/detect.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/platform/windows/detect.py b/platform/windows/detect.py
index 490f048f26..b8b0509da7 100644
--- a/platform/windows/detect.py
+++ b/platform/windows/detect.py
@@ -84,6 +84,7 @@ def configure(env):
env.Append(CCFLAGS=['/O2'])
env.Append(LINKFLAGS=['/SUBSYSTEM:WINDOWS'])
+ env.Append(LINKFLAGS=['/ENTRY:mainCRTStartup'])
elif (env["target"]=="test"):
@@ -92,8 +93,9 @@ def configure(env):
elif (env["target"]=="debug"):
- env.Append(CCFLAGS=['/Zi','/DDEBUG_ENABLED','/DD3D_DEBUG_INFO','/O1'])
+ env.Append(CCFLAGS=['/Zi','/DDEBUG_ENABLED','/DD3D_DEBUG_INFO','/O1'])
env.Append(LINKFLAGS=['/SUBSYSTEM:CONSOLE'])
+ env.Append(LINKFLAGS=['/DEBUG'])
elif (env["target"]=="profile"):
@@ -113,8 +115,7 @@ def configure(env):
env.Append(CCFLAGS=['/DGLES1_ENABLED'])
env.Append(CCFLAGS=['/DGLEW_ENABLED'])
env.Append(LIBS=['winmm','opengl32','dsound','kernel32','ole32','user32','gdi32','wsock32'])
- env.Append(LINKFLAGS=['/DEBUG'])
-
+
env.Append(LIBPATH=[os.getenv("WindowsSdkDir")+"/Lib"])
if (os.getenv("DXSDK_DIR")):
DIRECTX_PATH=os.getenv("DXSDK_DIR")