Skip to content

Commit

Permalink
Merge pull request godotengine#34 from marynate/master
Browse files Browse the repository at this point in the history
Fixed build rule file for proper MSVC release build
  • Loading branch information
okamstudio committed Feb 13, 2014
2 parents 4e2c81b + 5abc0bb commit ca60bae
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions platform/windows/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):

Expand All @@ -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"):

Expand All @@ -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")
Expand Down

0 comments on commit ca60bae

Please sign in to comment.