diff options
author | Jacek Antonelli | 2008-08-15 23:44:56 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:56 -0500 |
commit | c07901e29ed545bbb02e3bddf148fe1104b94e9f (patch) | |
tree | f1ada64ce834acd7d92a425efb96c4b86bcf16b1 /linden/indra/SConstruct | |
parent | Second Life viewer sources 1.15.0.2 (diff) | |
download | meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.zip meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.gz meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.bz2 meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.xz |
Second Life viewer sources 1.15.1.3
Diffstat (limited to 'linden/indra/SConstruct')
-rw-r--r-- | linden/indra/SConstruct | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/linden/indra/SConstruct b/linden/indra/SConstruct index 0174b2d..cbf2029 100644 --- a/linden/indra/SConstruct +++ b/linden/indra/SConstruct | |||
@@ -55,6 +55,7 @@ opts.AddOptions( | |||
55 | allowed_values=('client', 'server', 'all')), | 55 | allowed_values=('client', 'server', 'all')), |
56 | BoolOption('DISTCC', 'Enabled distcc', True), | 56 | BoolOption('DISTCC', 'Enabled distcc', True), |
57 | BoolOption('MOZLIB', 'Enabled llmozlib/mozilla support', True), | 57 | BoolOption('MOZLIB', 'Enabled llmozlib/mozilla support', True), |
58 | BoolOption('FMOD', 'Enabled FMOD audio support', True), | ||
58 | BoolOption('COLORGCC', 'Enabled colorgcc', True), | 59 | BoolOption('COLORGCC', 'Enabled colorgcc', True), |
59 | EnumOption('GRID', 'Client package\'s default grid', 'default', | 60 | EnumOption('GRID', 'Client package\'s default grid', 'default', |
60 | allowed_values=('default', 'aditi', 'agni', 'dmz', 'durga', 'firstlook', 'ganga', 'shakti', 'siva', 'soma', 'uma', 'vaak')), | 61 | allowed_values=('default', 'aditi', 'agni', 'dmz', 'durga', 'firstlook', 'ganga', 'shakti', 'siva', 'soma', 'uma', 'vaak')), |
@@ -68,6 +69,7 @@ arch = optenv['ARCH'] | |||
68 | target_param = optenv['BTARGET'] | 69 | target_param = optenv['BTARGET'] |
69 | enable_distcc = optenv['DISTCC'] | 70 | enable_distcc = optenv['DISTCC'] |
70 | enable_mozlib = optenv['MOZLIB'] | 71 | enable_mozlib = optenv['MOZLIB'] |
72 | enable_fmod = optenv['FMOD'] | ||
71 | enable_colorgcc = optenv['COLORGCC'] | 73 | enable_colorgcc = optenv['COLORGCC'] |
72 | grid = optenv['GRID'] | 74 | grid = optenv['GRID'] |
73 | opensource = optenv['OPENSOURCE'] | 75 | opensource = optenv['OPENSOURCE'] |
@@ -180,7 +182,7 @@ for build_target in targets: | |||
180 | flags += '-DLL_LINUX=1 ' | 182 | flags += '-DLL_LINUX=1 ' |
181 | if build_target == 'client': | 183 | if build_target == 'client': |
182 | flags += '-DAPPID=secondlife -DLL_SDL=1 ' | 184 | flags += '-DAPPID=secondlife -DLL_SDL=1 ' |
183 | if arch == 'x86_64' or arch == 'x86_64cross': | 185 | if arch == 'x86_64' or arch == 'x86_64cross' or not enable_fmod: |
184 | flags += '-DLL_FMOD=0 ' | 186 | flags += '-DLL_FMOD=0 ' |
185 | flags += '-DLL_X11=1 -DLL_GTK=1 ' | 187 | flags += '-DLL_X11=1 -DLL_GTK=1 ' |
186 | client_external_libs += [ 'gtk-x11-2.0', 'elfio' ] | 188 | client_external_libs += [ 'gtk-x11-2.0', 'elfio' ] |
@@ -302,13 +304,14 @@ for build_target in targets: | |||
302 | list_file = open('./' + module + '/' + source_fname, 'r') | 304 | list_file = open('./' + module + '/' + source_fname, 'r') |
303 | list = Split(list_file.read()) | 305 | list = Split(list_file.read()) |
304 | for x in list: | 306 | for x in list: |
305 | file = os.path.join(build_dir, x) | 307 | if not x.startswith('#'): |
306 | if x == 'newsim/lltask.cpp': | 308 | file = os.path.join(build_dir, x) |
307 | print 'Found lltask!' | 309 | if x == 'newsim/lltask.cpp': |
308 | obj = env_no_distcc.Object(file) | 310 | print 'Found lltask!' |
309 | new_list.append(obj) | 311 | obj = env_no_distcc.Object(file) |
310 | else: | 312 | new_list.append(obj) |
311 | new_list.append(file) | 313 | else: |
314 | new_list.append(file) | ||
312 | list_file.close() | 315 | list_file.close() |
313 | except IOError, val: | 316 | except IOError, val: |
314 | print 'Error: unable to open file list',source_fname, | 317 | print 'Error: unable to open file list',source_fname, |
@@ -415,7 +418,7 @@ for build_target in targets: | |||
415 | 418 | ||
416 | external_libs = client_external_libs + common_external_libs + [ 'freetype', 'jpeg', 'SDL', 'GL', 'GLU', 'ogg', 'vorbisenc', 'vorbisfile', 'vorbis', 'db-4.2', 'openjpeg' ] | 419 | external_libs = client_external_libs + common_external_libs + [ 'freetype', 'jpeg', 'SDL', 'GL', 'GLU', 'ogg', 'vorbisenc', 'vorbisfile', 'vorbis', 'db-4.2', 'openjpeg' ] |
417 | 420 | ||
418 | if arch != 'x86_64' and arch != 'x86_64cross': | 421 | if arch != 'x86_64' and arch != 'x86_64cross' and enable_fmod: |
419 | external_libs += [ 'fmod-3.75' ] | 422 | external_libs += [ 'fmod-3.75' ] |
420 | 423 | ||
421 | external_libs.remove('cares') | 424 | external_libs.remove('cares') |
@@ -492,7 +495,7 @@ for build_target in targets: | |||
492 | 495 | ||
493 | # Dataserver | 496 | # Dataserver |
494 | Depends('dataserver/dataserver', 'launcher/launcher' + file_suffix) | 497 | Depends('dataserver/dataserver', 'launcher/launcher' + file_suffix) |
495 | external_libs = common_external_libs + ['boost_regex-gcc-mt', 'mysqlclient'] | 498 | external_libs = common_external_libs + ['boost_regex-gcc-mt', 'mysqlclient', 'tcmalloc', 'stacktrace'] |
496 | internal_libs = [ 'llcharacter', 'lldatabase', 'llimage', 'llinventory', | 499 | internal_libs = [ 'llcharacter', 'lldatabase', 'llimage', 'llinventory', |
497 | 'llscene', 'llmessage', 'llvfs', 'llxml', 'llcommon', 'llmath' ] | 500 | 'llscene', 'llmessage', 'llvfs', 'llxml', 'llcommon', 'llmath' ] |
498 | create_executable('dataserver/dataserver' + file_suffix, 'dataserver', | 501 | create_executable('dataserver/dataserver' + file_suffix, 'dataserver', |
@@ -535,7 +538,7 @@ for build_target in targets: | |||
535 | 538 | ||
536 | # Simulator | 539 | # Simulator |
537 | Depends('newsim/simulator' + file_suffix, 'mapserver/mapserver' + file_suffix) | 540 | Depends('newsim/simulator' + file_suffix, 'mapserver/mapserver' + file_suffix) |
538 | external_libs = common_external_libs + ['hkdynamics', 'hkgeometry', 'hkmath', 'hkbase', 'hkcollide', 'hkactions', 'boost_regex-gcc-mt', 'dl', 'kdu', 'mysqlclient', 'iconv'] | 541 | external_libs = common_external_libs + ['hkdynamics', 'hkgeometry', 'hkmath', 'hkbase', 'hkcollide', 'hkactions', 'boost_regex-gcc-mt', 'dl', 'kdu', 'mysqlclient', 'iconv', 'tcmalloc', 'stacktrace'] |
539 | internal_libs = [ 'lscript', 'llprimitive', | 542 | internal_libs = [ 'lscript', 'llprimitive', |
540 | 'llscene', 'llhavok', 'llinventory', 'llimage', | 543 | 'llscene', 'llhavok', 'llinventory', 'llimage', |
541 | 'llcharacter', 'llxml', 'lldatabase', 'llkdustatic', | 544 | 'llcharacter', 'llxml', 'lldatabase', 'llkdustatic', |