/[escript]/trunk/tools/CppUnitTest/src/SConscript
ViewVC logotype

Diff of /trunk/tools/CppUnitTest/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3258 by jfenwick, Thu Jan 28 02:03:15 2010 UTC revision 3259 by jfenwick, Mon Oct 11 01:48:14 2010 UTC
# Line 11  Line 11 
11  #  #
12  ########################################################  ########################################################
13    
   
14  import os  import os
15  Import('*')  Import('*')
16    local_env = env.Clone()
 local_env = clone_env(env)  
17    
18  sources = """  sources = """
19      TestCase.cpp      TestCase.cpp
20      TestFailure.cpp      TestFailure.cpp
21      TestResult.cpp      TestResult.cpp
22      TestRunner.cpp      TestRunner.cpp
23      TestSuite.cpp      TestSuite.cpp
24      TextTestResult.cpp      TextTestResult.cpp
25  """.split()  """.split()
26    
27  headers = """  headers = """
28      CppUnitException.h      CppUnitException.h
29      CppUnitTestNamespace.h      CppUnitTestNamespace.h
30      Guards.h      Guards.h
31      Test.h      Test.h
32      TestCaller.h      TestCaller.h
33      TestCase.h      TestCase.h
34      TestFailure.h      TestFailure.h
35      TestResult.h      TestResult.h
36      TestRunner.h      TestRunner.h
37      TestSuite.h      TestSuite.h
38      TextTestResult.h      TextTestResult.h
39      estring.h      estring.h
40  """.split()  """.split()
41    
42  lib = local_env.StaticLibrary('CppUnitTest', sources)  lib = local_env.StaticLibrary('CppUnitTest', sources)
43  env.Alias('target_cppunittest_a', lib)  env.Alias('build_cppunittest_lib', lib)
44    
45  include_path = Dir('tools/CppUnitTest', local_env['incinstall'])  include_path = Dir('tools/CppUnitTest', local_env['incinstall'])
46    
47  tmp1 = local_env.Install(include_path, headers )  hdr_inst = local_env.Install(include_path, headers)
48  env.Alias('target_install_cppunittest_headers', [tmp1])  env.Alias('install_cppunittest_headers', hdr_inst)
49    
50  tmp2 = local_env.Install(local_env['libinstall'], lib)  lib_inst = local_env.Install(local_env['libinstall'], lib)
51  env.Alias('target_install_cppunittest_a', [tmp2])  env.Alias('install_cppunittest_lib', lib_inst)
52    

Legend:
Removed from v.3258  
changed lines
  Added in v.3259

  ViewVC Help
Powered by ViewVC 1.1.26