aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/SConstruct
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:02 -0500
committerJacek Antonelli2008-08-15 23:45:02 -0500
commitd644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd (patch)
tree7ed0c2c27d717801238a2e6b5749cd5bf88c3059 /linden/indra/SConstruct
parentSecond Life viewer sources 1.17.3.0 (diff)
downloadmeta-impy-d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd.zip
meta-impy-d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd.tar.gz
meta-impy-d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd.tar.bz2
meta-impy-d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd.tar.xz
Second Life viewer sources 1.18.0.6
Diffstat (limited to '')
-rw-r--r--linden/indra/SConstruct59
1 files changed, 18 insertions, 41 deletions
diff --git a/linden/indra/SConstruct b/linden/indra/SConstruct
index 3de5e4f..f988b1b 100644
--- a/linden/indra/SConstruct
+++ b/linden/indra/SConstruct
@@ -392,18 +392,6 @@ for build_target in targets:
392 392
393 env_no_distcc = env.Copy(CXX = compiler_no_distcc) 393 env_no_distcc = env.Copy(CXX = compiler_no_distcc)
394 394
395 vec_match = re.compile("_vec\.")
396 env_vec = env.Copy() # _vec is for default vector optimizations or none
397
398 sse_match = re.compile("_sse\.")
399 env_sse = env.Copy()
400 env_sse.Append(CPPFLAGS = ' -msse -mfpmath=sse')
401
402 sse2_match = re.compile("_sse2\.")
403 env_sse2 = env.Copy()
404 env_sse2.Append(CPPFLAGS = ' -msse2 -mfpmath=sse')
405
406
407 ### Distributed build hosts ### 395 ### Distributed build hosts ###
408 396
409 if enable_distcc: 397 if enable_distcc:
@@ -431,21 +419,6 @@ for build_target in targets:
431 # HELPER FUNCTIONS # 419 # HELPER FUNCTIONS #
432 ##################### 420 #####################
433 421
434 ## handle special compiler modes
435
436 def file_obj(file):
437 if file == 'newsim/lltask.cpp':
438 print 'Found lltask!'
439 return env_no_distcc.Object(file)
440 elif vec_match.search(file) != None:
441 return env_vec.Object(file)
442 elif sse_match.search(file) != None:
443 return env_sse.Object(file)
444 elif sse2_match.search(file) != None:
445 return env_sse2.Object(file)
446 else:
447 return file
448
449 ### Load a files.lst and files.PLATFORM.lst for each module ### 422 ### Load a files.lst and files.PLATFORM.lst for each module ###
450 423
451 def load_files(module, source_fname): 424 def load_files(module, source_fname):
@@ -456,7 +429,12 @@ for build_target in targets:
456 for x in list: 429 for x in list:
457 if not x.startswith('#'): 430 if not x.startswith('#'):
458 file = os.path.join(build_dir, x) 431 file = os.path.join(build_dir, x)
459 new_list.append(file_obj(file)) 432 if x == 'newsim/lltask.cpp':
433 print 'Found lltask!'
434 obj = env_no_distcc.Object(file)
435 new_list.append(obj)
436 else:
437 new_list.append(file)
460 list_file.close() 438 list_file.close()
461 except IOError, val: 439 except IOError, val:
462 print 'Error: unable to open file list',source_fname, 440 print 'Error: unable to open file list',source_fname,
@@ -468,7 +446,7 @@ for build_target in targets:
468 list = Split(platform_list_file.read()) 446 list = Split(platform_list_file.read())
469 for x in list: 447 for x in list:
470 file = os.path.join(build_dir, x) 448 file = os.path.join(build_dir, x)
471 new_list.append(file_obj(file)) 449 new_list.append(file)
472 platform_list_file.close() 450 platform_list_file.close()
473 except IOError: 451 except IOError:
474 return new_list 452 return new_list
@@ -522,6 +500,13 @@ for build_target in targets:
522 Default(tgt) 500 Default(tgt)
523 501
524 502
503 ### Check the message template for compatibility with the base ###
504 tgt = env.Command("template_verifier_output",
505 '../scripts/template_verifier.py',
506 'python $SOURCE --mode="development" 2>&1')
507 Default(tgt)
508 AlwaysBuild(tgt)
509
525 #################### 510 ####################
526 # BUILD LIBRARIES # 511 # BUILD LIBRARIES #
527 #################### 512 ####################
@@ -684,16 +669,8 @@ for build_target in targets:
684 create_executable('newspace/spaceserver' + file_suffix, 'newspace', 669 create_executable('newspace/spaceserver' + file_suffix, 'newspace',
685 internal_libs + external_libs) 670 internal_libs + external_libs)
686 671
687 # Userserver
688 Depends('userserver/userserver', 'newspace/spaceserver' + file_suffix)
689 external_libs = common_external_libs
690 internal_libs = ['llinventory', 'llscene', 'llmessage', 'llvfs',
691 'llxml', 'llmath', 'llcommon']
692 create_executable('userserver/userserver' + file_suffix, 'userserver',
693 internal_libs + external_libs)
694
695 # Rpcserver 672 # Rpcserver
696 Depends('rpcserver/rpcserver', 'userserver/userserver' + file_suffix) 673 Depends('rpcserver/rpcserver', 'newspace/spaceserver' + file_suffix)
697 external_libs = common_external_libs + ['xmlrpc', 'mysqlclient'] 674 external_libs = common_external_libs + ['xmlrpc', 'mysqlclient']
698 internal_libs = ['llscene', 'llmessage', 'lldatabase', 'llvfs', 675 internal_libs = ['llscene', 'llmessage', 'lldatabase', 'llvfs',
699 'llmath', 'llcommon'] 676 'llmath', 'llcommon']
@@ -754,7 +731,7 @@ for build_target in targets:
754 Depends('test/test', 'newsim/simulator' + file_suffix) 731 Depends('test/test', 'newsim/simulator' + file_suffix)
755 external_libs = common_external_libs + ['mysqlclient'] 732 external_libs = common_external_libs + ['mysqlclient']
756 internal_libs = [ 'lldatabase', 'llinventory', 'llmessage', 'llxml', 733 internal_libs = [ 'lldatabase', 'llinventory', 'llmessage', 'llxml',
757 'llvfs', 'llmath', 'llcommon' ] 734 'llvfs', 'llcharacter', 'llmath', 'llcommon' ]
758 test_executable = 'test/test' + file_suffix 735 test_executable = 'test/test' + file_suffix
759 create_executable(test_executable, 'test', 736 create_executable(test_executable, 'test',
760 internal_libs + external_libs) 737 internal_libs + external_libs)
@@ -763,7 +740,7 @@ for build_target in targets:
763 test_results_file = 'test/test_results' + file_suffix + '.txt' 740 test_results_file = 'test/test_results' + file_suffix + '.txt'
764 env.Command(test_results_file, 741 env.Command(test_results_file,
765 test_executable, 742 test_executable,
766 "$SOURCE 2>&1 | tee $TARGET") 743 "$SOURCE 2>&1") # tee masks segfaults
767 Depends(test_results_file, test_executable) 744 Depends(test_results_file, test_executable)
768 Default(test_results_file) 745 Default(test_results_file)
769 746
@@ -771,7 +748,7 @@ for build_target in targets:
771 script_test_results = 'test/script_test_result' + file_suffix + '.txt' 748 script_test_results = 'test/script_test_result' + file_suffix + '.txt'
772 env.Command(script_test_results, 749 env.Command(script_test_results,
773 test_script, 750 test_script,
774 "$SOURCE 2>&1 | tee $TARGET") 751 "$SOURCE 2>&1") # tee masks segfaults
775 752
776 Depends(script_test_results, test_results_file) 753 Depends(script_test_results, test_results_file)
777 Default(script_test_results) 754 Default(script_test_results)