Lines 1-19
Link Here
|
1 |
--- SConstruct~ |
1 |
--- SConstruct.orig 2020-12-04 14:47:36 UTC |
2 |
+++ SConstruct |
2 |
+++ SConstruct |
3 |
@@ -19,7 +19,12 @@ AddOption('--fullstatic', action='store_ |
3 |
@@ -19,8 +19,13 @@ AddOption('--fullstatic', action='store_true', |
4 |
|
4 |
|
5 |
# Set libraries used by all configurations and all binaries in rlvm. |
5 |
# Set libraries used by all configurations and all binaries in rlvm. |
6 |
env = Environment( |
6 |
env = Environment( |
7 |
+ ENV=os.environ, |
7 |
+ ENV=os.environ, |
8 |
tools = ["default", "rlvm"], |
8 |
tools = ["default", "rlvm"], |
9 |
+ **dict((k, v.split()) for k, v in ARGUMENTS.iteritems()) |
9 |
+ **dict((k, v.split()) for k, v in ARGUMENTS.items()) |
10 |
+) |
10 |
+) |
|
|
11 |
|
12 |
+env.Append( |
11 |
+ |
13 |
+ |
12 |
+env.Append( |
|
|
13 |
|
14 |
LIBS = ["z"], |
14 |
LIBS = ["z"], |
15 |
|
15 |
|
16 |
@@ -278,6 +275,7 @@ if not config.CheckGuichan(): |
16 |
LOCAL_LIBS = [], |
|
|
17 |
@@ -184,9 +189,9 @@ int main(int argc, char **argv) { |
18 |
def VerifyLibrary(config, library, header): |
19 |
if not config.CheckLibWithHeader(library, header, "c"): |
20 |
if config.CheckLib(library): |
21 |
- print "You have " + library + " installed, but the development headers aren't installed." |
22 |
+ print("You have " + library + " installed, but the development headers aren't installed.") |
23 |
else: |
24 |
- print "You need " + library + " to compile this program!" |
25 |
+ print("You need " + library + " to compile this program!") |
26 |
Exit(1) |
27 |
|
28 |
def CheckForSystemLibrary(config, library_dict, componentlist): |
29 |
@@ -206,7 +211,7 @@ def CheckForSystemLibrary(config, library_dict, compon |
30 |
|
31 |
if not res: |
32 |
lib_name = library_dict['library'] |
33 |
- print "(Using included version of %s)" % lib_name |
34 |
+ print("(Using included version of %s)" % lib_name) |
35 |
componentlist.append(lib_name) |
36 |
config.Define("HAVE_LIB" + lib_name, 1, |
37 |
"Define to 1 if you have the `%s' library." % lib_name) |
38 |
@@ -222,7 +227,7 @@ config = env.Configure(custom_tests = {'CheckBoost' |
39 |
'CheckGuichan' : CheckGuichan}, |
40 |
config_h="build/config.h") |
41 |
if not config.CheckBoost('1.40'): |
42 |
- print "Boost version >= 1.40 needed to compile rlvm!" |
43 |
+ print("Boost version >= 1.40 needed to compile rlvm!") |
44 |
Exit(1) |
45 |
|
46 |
VerifyLibrary(config, 'pthread', 'pthread.h') |
47 |
@@ -239,7 +244,7 @@ VerifyLibrary(config, 'vorbisfile', 'vorbis/vorbisfile |
48 |
if env['PLATFORM'] != 'darwin': |
49 |
VerifyLibrary(config, 'SDL', 'SDL/SDL.h') |
50 |
else: |
51 |
- print "Can't properly detect SDL under OSX. Assuming you have the libraries." |
52 |
+ print("Can't properly detect SDL under OSX. Assuming you have the libraries.") |
53 |
|
54 |
# Libraries we need, but will use a local copy if not installed. |
55 |
local_sdl_libraries = [ |
56 |
@@ -269,12 +274,13 @@ for library_dict in local_sdl_libraries: |
57 |
CheckForSystemLibrary(config, library_dict, subcomponents) |
58 |
|
59 |
if not config.CheckGuichan(): |
60 |
- print "(Using included copy of guichan)" |
61 |
+ print("(Using included copy of guichan)") |
62 |
subcomponents.append("guichan") |
63 |
|
17 |
# Get the configuration from sdl and freetype |
64 |
# Get the configuration from sdl and freetype |
18 |
env.ParseConfig("sdl-config --cflags") |
65 |
env.ParseConfig("sdl-config --cflags") |
19 |
env.ParseConfig("freetype-config --cflags --libs") |
66 |
env.ParseConfig("freetype-config --cflags --libs") |
Lines 21-27
Link Here
|
21 |
|
68 |
|
22 |
env = config.Finish() |
69 |
env = config.Finish() |
23 |
|
70 |
|
24 |
@@ -314,7 +311,6 @@ if GetOption('release'): |
71 |
@@ -303,7 +309,6 @@ if GetOption('release'): |
25 |
# Now add release optimizations to the environment |
72 |
# Now add release optimizations to the environment |
26 |
env.Append( |
73 |
env.Append( |
27 |
CPPFLAGS = [ |
74 |
CPPFLAGS = [ |
Lines 29-35
Link Here
|
29 |
"-DNDEBUG", |
76 |
"-DNDEBUG", |
30 |
"-DBOOST_DISABLE_ASSERTS" |
77 |
"-DBOOST_DISABLE_ASSERTS" |
31 |
] |
78 |
] |
32 |
@@ -360,13 +356,7 @@ elif GetOption('pprof'): |
79 |
@@ -349,13 +354,7 @@ elif GetOption('pprof'): |
33 |
"profiler"] |
80 |
"profiler"] |
34 |
) |
81 |
) |
35 |
else: |
82 |
else: |