-
Notifications
You must be signed in to change notification settings - Fork 18
/
SConstruct.Windows
34 lines (28 loc) · 1.41 KB
/
SConstruct.Windows
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# -*- Mode: python -*-
# for reference. you will likely prefer to use the MSVC solution instead.
import os, platform
( system, node, release, version, machine, processor ) = platform.uname()
assert( system == 'Windows' )
SDL2_SRC=r'..\SDL'
OGRE_SRC=r'..\ogre'
LIBZMQ_SRC=r'..\libzmq'
CZMQ_SRC=r'..\czmq'
env = Environment( ENV = os.environ )
env.Append( CXXFLAGS = [ '/EHsc' ] ) # Enable Exception Handling - http://msdn.microsoft.com/en-us/library/1deeycx5.aspx
env.Append( CXXFLAGS = [ '/MDd' ] ) # Multithreaded Debug DLL runtime
env.Append( CXXFLAGS = [ '/DEBUG' ] ) # Produce Debugging Information
env.Append( CPPPATH = [ os.path.join( SDL2_SRC, 'include' ) ] )
env.Append( CPPPATH = [ os.path.join( OGRE_SRC, r'include' ) ] )
env.Append( CPPPATH = [ os.path.join( OGRE_SRC, r'OgreMain\include' ) ] )
env.Append( CPPPATH = [ os.path.join( LIBZMQ_SRC, 'include' ) ] )
env.Append( CPPPATH = [ os.path.join( CZMQ_SRC, 'include' ) ] )
env.Append( LIBPATH = [ os.path.join( OGRE_SRC, r'lib\Debug' ) ] )
env.Append( LIBS = [ 'OgreMain_d' ] )
env.Append( LIBPATH = [ os.path.join( SDL2_SRC, r'VisualC\SDL\Win32\Debug' ) ] )
env.Append( LIBS = [ 'SDL' ] )
env.Append( LIBPATH = [ os.path.join( LIBZMQ_SRC, r'bin\Win32' ) ] )
env.Append( LIBS = [ 'libzmq_d' ] )
env.Append( LIBPATH = [ os.path.join( CZMQ_SRC, r'builds\msvc\Debug' ) ] )
env.Append( LIBS = [ 'czmq' ] )
source = [ 'main.cpp', 'render.cpp', 'game.cpp' ]
env.Program( source )