aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/SConstruct
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:52 -0500
committerJacek Antonelli2008-08-15 23:44:52 -0500
commit0340e6d3dea28e7bb1da9dc67ac4c2b57354279f (patch)
treedf9029fa98b28a23c44409598764f282c14c4e16 /linden/indra/SConstruct
parentSecond Life viewer sources 1.14.0.0 (diff)
downloadmeta-impy-0340e6d3dea28e7bb1da9dc67ac4c2b57354279f.zip
meta-impy-0340e6d3dea28e7bb1da9dc67ac4c2b57354279f.tar.gz
meta-impy-0340e6d3dea28e7bb1da9dc67ac4c2b57354279f.tar.bz2
meta-impy-0340e6d3dea28e7bb1da9dc67ac4c2b57354279f.tar.xz
Second Life viewer sources 1.14.0.1
Diffstat (limited to '')
-rw-r--r--linden/indra/SConstruct20
1 files changed, 13 insertions, 7 deletions
diff --git a/linden/indra/SConstruct b/linden/indra/SConstruct
index 2aeee01..66a0231 100644
--- a/linden/indra/SConstruct
+++ b/linden/indra/SConstruct
@@ -49,7 +49,7 @@ opts = Options()
49opts.Add(EnumOption('BUILD', 'Set build type', 'releasefordownload', 49opts.Add(EnumOption('BUILD', 'Set build type', 'releasefordownload',
50 allowed_values=('debug', 'release', 'releasenoopt', 'releasefordownload'))) 50 allowed_values=('debug', 'release', 'releasenoopt', 'releasefordownload')))
51opts.Add(EnumOption('ARCH', 'Set architecture', 'i686', 51opts.Add(EnumOption('ARCH', 'Set architecture', 'i686',
52 allowed_values=('i686', 'powerpc', 'x86_64'))) 52 allowed_values=('i686', 'powerpc', 'x86_64', 'x86_64cross')))
53opts.Add(EnumOption('BTARGET', 'Set build target', 'server', 53opts.Add(EnumOption('BTARGET', 'Set build target', 'server',
54 allowed_values=('client', 'server', 'all'))) 54 allowed_values=('client', 'server', 'all')))
55opts.Add(EnumOption('DISTCC', 'Enabled distcc', 'yes', 55opts.Add(EnumOption('DISTCC', 'Enabled distcc', 'yes',
@@ -183,8 +183,10 @@ for build_target in targets:
183 # Linux-only flags 183 # Linux-only flags
184 flags += '-DLL_LINUX=1 ' 184 flags += '-DLL_LINUX=1 '
185 if build_target == 'client': 185 if build_target == 'client':
186 flags += '-DAPPID=secondlife -DLL_SDL=1 -DLL_X11=1 ' 186 flags += '-DAPPID=secondlife -DLL_SDL=1 '
187 flags += '-DLL_GTK=1 ' 187 if arch == 'x86_64' or arch == 'x86_64cross':
188 flags += '-DLL_FMOD=0 '
189 flags += '-DLL_X11=1 -DLL_GTK=1 '
188 client_external_libs += [ 'gtk-x11-2.0', 'elfio' ] 190 client_external_libs += [ 'gtk-x11-2.0', 'elfio' ]
189 include_dirs += [ '../libraries/' + system_str + '/include/gtk-2.0' ] 191 include_dirs += [ '../libraries/' + system_str + '/include/gtk-2.0' ]
190 include_dirs += [ '../libraries/' + system_str + '/include/glib-2.0'] 192 include_dirs += [ '../libraries/' + system_str + '/include/glib-2.0']
@@ -202,7 +204,7 @@ for build_target in targets:
202 flags += '-DLL_LIBXUL_ENABLED=0 ' 204 flags += '-DLL_LIBXUL_ENABLED=0 '
203 else: 205 else:
204 # Mac-only flags 206 # Mac-only flags
205 flags += '-x c++ -arch ppc -pipe -Wno-trigraphs -fpascal-strings -faltivec -fasm-blocks -g -O2 -fmessage-length=0 -mtune=G4 -Wno-deprecated-declarations -Wno-invalid-offsetof -mmacosx-version-min=10.3 -DLL_DARWIN=1 -Wmost -Wno-sign-compare -Wno-switch -fpch-preprocess -F./newview/build/Deployment -fconstant-cfstrings -ffor-scope -Wno-reorder -isysroot /Developer/SDKs/MacOSX10.3.9.sdk ' 207 flags += '-x c++ -arch ppc -pipe -Wno-trigraphs -fpascal-strings -faltivec -fasm-blocks -g -fmessage-length=0 -mtune=G4 -Wno-deprecated-declarations -Wno-invalid-offsetof -mmacosx-version-min=10.3 -DLL_DARWIN=1 -Wmost -Wno-sign-compare -Wno-switch -fpch-preprocess -F./newview/build/Deployment -fconstant-cfstrings -ffor-scope -Wno-reorder -isysroot /Developer/SDKs/MacOSX10.3.9.sdk '
206 208
207 ### Build type-specific flags ### 209 ### Build type-specific flags ###
208 210
@@ -234,7 +236,7 @@ for build_target in targets:
234 if build_target != 'client': 236 if build_target != 'client':
235 gcc_bin = 'g++-3.3' 237 gcc_bin = 'g++-3.3'
236 238
237 if arch == 'x86_64': 239 if arch == 'x86_64cross':
238 gcc_bin = '/opt/crosstool/gcc-4.0.2-glibc-2.3.6/x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu-gcc' 240 gcc_bin = '/opt/crosstool/gcc-4.0.2-glibc-2.3.6/x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu-gcc'
239 strip_cmd = '/opt/crosstool/gcc-4.0.2-glibc-2.3.6/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/bin/strip -S -o $TARGET $SOURCE' 241 strip_cmd = '/opt/crosstool/gcc-4.0.2-glibc-2.3.6/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/bin/strip -S -o $TARGET $SOURCE'
240 242
@@ -273,7 +275,7 @@ for build_target in targets:
273 275
274 if enable_distcc == 'yes': 276 if enable_distcc == 'yes':
275 hosts = 'localhost/2 station9.lindenlab.com,lzo station7.lindenlab.com,lzo station6.lindenlab.com,lzo station11.lindenlab.com,lzo station5.lindenlab.com,lzo station15.lindenlab.com,lzo station10.lindenlab.com,lzo station13.lindenlab.com,lzo station12.lindenlab.com,lzo' 277 hosts = 'localhost/2 station9.lindenlab.com,lzo station7.lindenlab.com,lzo station6.lindenlab.com,lzo station11.lindenlab.com,lzo station5.lindenlab.com,lzo station15.lindenlab.com,lzo station10.lindenlab.com,lzo station13.lindenlab.com,lzo station12.lindenlab.com,lzo'
276 if arch == 'x86_64': 278 if arch == 'x86_64' or arch == 'x86_64cross':
277 hosts = 'localhost' 279 hosts = 'localhost'
278 print "Distributing to hosts: " + hosts 280 print "Distributing to hosts: " + hosts
279 env['ENV']['DISTCC_HOSTS'] = hosts 281 env['ENV']['DISTCC_HOSTS'] = hosts
@@ -415,7 +417,11 @@ for build_target in targets:
415 ################## 417 ##################
416 output_bin = 'newview/secondlife-' + arch + '-bin' 418 output_bin = 'newview/secondlife-' + arch + '-bin'
417 419
418 external_libs = client_external_libs + common_external_libs + [ 'freetype', 'jpeg', 'SDL', 'GL', 'GLU', 'ogg', 'vorbisenc', 'vorbisfile', 'vorbis', 'fmod-3.75', 'db-4.2', 'openjpeg' ] 420 external_libs = client_external_libs + common_external_libs + [ 'freetype', 'jpeg', 'SDL', 'GL', 'GLU', 'ogg', 'vorbisenc', 'vorbisfile', 'vorbis', 'db-4.2', 'openjpeg' ]
421
422 if arch != 'x86_64' and arch != 'x86_64cross':
423 external_libs += [ 'fmod-3.75' ]
424
419 external_libs.remove('cares') 425 external_libs.remove('cares')
420 426
421 internal_libs = [ 'lscript', 'llwindow', 'llrender', 'llprimitive', 427 internal_libs = [ 'lscript', 'llwindow', 'llrender', 'llprimitive',