Permalink
Browse files

Merge branch 'master' of github.com:humblehacker/kspec

  • Loading branch information...
humblehacker committed Apr 25, 2011
2 parents 109b879 + 3f2584e commit 163df3bdcbe5269128e0db7e5a74e21580f409fc
Showing with 12 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +10 −0 SConstruct
View
@@ -16,7 +16,9 @@ Scanner.h
*.o
kspec
generated
+*.exe
# misc
.DS_Store
*.tbz
+*.zip
View
@@ -1,11 +1,14 @@
import os
+PLATFORM = os.uname()[0].lower()
+
libs = ['lua',
'boost_system-mt',
'boost_filesystem-mt',
'boost_program_options-mt']
env = Environment()
+
if os.name == 'nt':
env = Environment(tools = ['mingw'])
home = os.environ['HOME']
@@ -18,6 +21,13 @@ if os.name == 'nt':
elif os.name == 'posix':
libs.append('dl')
+if PLATFORM == 'darwin':
+ archs = map(lambda x: ['-arch', x], ['i386', 'x86_64'])
+ env.Append(
+ CCFLAGS = archs,
+ LINKFLAGS = archs
+ )
+
debug = ARGUMENTS.get('debug', 1)
if int(debug):
env.Append(CCFLAGS = '-O0 -g')

0 comments on commit 163df3b

Please sign in to comment.