Lines 1-6
Link Here
|
1 |
--- SConstruct.orig 2011-04-18 01:57:09.000000000 +0800 |
1 |
--- SConstruct.orig 2011-04-17 17:57:09 UTC |
2 |
+++ SConstruct 2011-10-19 23:42:24.000000000 +0800 |
2 |
+++ SConstruct |
3 |
@@ -20,7 +20,7 @@ |
3 |
@@ -20,7 +20,7 @@ BUILD_LOCALE_PATH = BUILD_PATH + 'locale |
4 |
BUILD_FLAGS = { |
4 |
BUILD_FLAGS = { |
5 |
'common' : ['-I#', '-D_GNU_SOURCE', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_REENTRANT'], |
5 |
'common' : ['-I#', '-D_GNU_SOURCE', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_REENTRANT'], |
6 |
'debug' : ['-g', '-ggdb', '-Wall', '-D_DEBUG'], |
6 |
'debug' : ['-g', '-ggdb', '-Wall', '-D_DEBUG'], |
Lines 9-15
Link Here
|
9 |
} |
9 |
} |
10 |
|
10 |
|
11 |
# ---------------------------------------------------------------------- |
11 |
# ---------------------------------------------------------------------- |
12 |
@@ -106,6 +106,7 @@ |
12 |
@@ -106,6 +106,7 @@ else: |
13 |
vars.AddVariables( |
13 |
vars.AddVariables( |
14 |
BoolVariable('debug', 'Compile the program with debug information', 0), |
14 |
BoolVariable('debug', 'Compile the program with debug information', 0), |
15 |
BoolVariable('release', 'Compile the program with optimizations', 0), |
15 |
BoolVariable('release', 'Compile the program with optimizations', 0), |
Lines 17-23
Link Here
|
17 |
BoolVariable('profile', 'Compile the program with profiling information', 0), |
17 |
BoolVariable('profile', 'Compile the program with profiling information', 0), |
18 |
PathVariable('PREFIX', 'Compile the program with PREFIX as the root for installation', '/usr/local', PathVariable.PathIsDir), |
18 |
PathVariable('PREFIX', 'Compile the program with PREFIX as the root for installation', '/usr/local', PathVariable.PathIsDir), |
19 |
('FAKE_ROOT', 'Make scons install the program under a fake root', '') |
19 |
('FAKE_ROOT', 'Make scons install the program under a fake root', '') |
20 |
@@ -131,7 +131,10 @@ |
20 |
@@ -131,7 +132,10 @@ if os.environ.has_key('CC'): |
21 |
env['CC'] = os.environ['CC'] |
21 |
env['CC'] = os.environ['CC'] |
22 |
|
22 |
|
23 |
if os.environ.has_key('CXXFLAGS'): |
23 |
if os.environ.has_key('CXXFLAGS'): |
Lines 29-35
Link Here
|
29 |
|
29 |
|
30 |
if os.environ.has_key('LDFLAGS'): |
30 |
if os.environ.has_key('LDFLAGS'): |
31 |
env['LINKFLAGS'] = os.environ['LDFLAGS'].split() |
31 |
env['LINKFLAGS'] = os.environ['LDFLAGS'].split() |
32 |
@@ -139,6 +140,12 @@ |
32 |
@@ -139,6 +143,12 @@ if os.environ.has_key('LDFLAGS'): |
33 |
if os.environ.has_key('CFLAGS'): |
33 |
if os.environ.has_key('CFLAGS'): |
34 |
env['CFLAGS'] = os.environ['CFLAGS'].split() |
34 |
env['CFLAGS'] = os.environ['CFLAGS'].split() |
35 |
|
35 |
|
Lines 42-48
Link Here
|
42 |
env['CPPDEFINES'] = [] # Initialize as a list so Append doesn't concat strings |
42 |
env['CPPDEFINES'] = [] # Initialize as a list so Append doesn't concat strings |
43 |
|
43 |
|
44 |
env.SConsignFile('build/sconf/.sconsign') |
44 |
env.SConsignFile('build/sconf/.sconsign') |
45 |
@@ -263,14 +270,15 @@ |
45 |
@@ -256,21 +266,20 @@ if not 'install' in COMMAND_LINE_TARGETS |
|
|
46 |
|
47 |
if not conf.CheckHeader('iconv.h'): |
48 |
Exit(1) |
49 |
- elif conf.CheckLibWithHeader('iconv', 'iconv.h', 'c', 'iconv(0, (const char **)0, 0, (char**)0, 0);'): |
50 |
- conf.env.Append(CPPDEFINES = ('ICONV_CONST', 'const')) |
51 |
|
52 |
if conf.CheckHeader(['sys/types.h', 'sys/socket.h', 'ifaddrs.h', 'net/if.h']): |
46 |
conf.env.Append(CPPDEFINES = 'HAVE_IFADDRS_H') |
53 |
conf.env.Append(CPPDEFINES = 'HAVE_IFADDRS_H') |
47 |
|
54 |
|
48 |
# TODO: Implement a plugin system so libnotify doesn't have compile-time dependencies |
55 |
# TODO: Implement a plugin system so libnotify doesn't have compile-time dependencies |
Lines 65-67
Link Here
|
65 |
+ conf.env.Append(CPPDEFINES = 'HAVE_LIBNOTIFY_0_7') |
72 |
+ conf.env.Append(CPPDEFINES = 'HAVE_LIBNOTIFY_0_7') |
66 |
|
73 |
|
67 |
conf.CheckBZRRevision() |
74 |
conf.CheckBZRRevision() |
|
|
75 |
|