OLD | NEW |
1 # Copyright 2009, Google Inc. | 1 # Copyright 2009, Google Inc. |
2 # All rights reserved. | 2 # All rights reserved. |
3 # | 3 # |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
6 # met: | 6 # met: |
7 # | 7 # |
8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 15 matching lines...) Expand all Loading... |
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 | 29 |
30 | 30 |
31 import os | 31 import os |
32 import sys | 32 import sys |
33 | 33 |
34 Import('env') | 34 Import('env') |
35 env.Replace( | 35 env.Replace( |
36 GOOGLECLIENT = '$SCONSTRUCT_DIR/..', | 36 GOOGLECLIENT = '$SCONSTRUCT_DIR', |
37 THIRD_PARTY = '$GOOGLECLIENT/third_party', | 37 THIRD_PARTY = '$GOOGLECLIENT/third_party', |
38 | 38 |
39 # A whole bunch of third-party and internal dependencies | 39 # A whole bunch of third-party and internal dependencies |
40 ANTLRLIBC_DIR = '$THIRD_PARTY/antlr3/runtime/C', | 40 ANTLRLIBC_DIR = '$THIRD_PARTY/antlr3/runtime/C', |
41 ANTLR_DIR = '$THIRD_PARTY/antlr3/lib', | 41 ANTLR_DIR = '$THIRD_PARTY/antlr3/lib', |
42 BREAKPAD_DIR = '$THIRD_PARTY/breakpad/files/src', | 42 BREAKPAD_DIR = '$THIRD_PARTY/breakpad/files/src', |
43 CG_BASE_DIR = '$THIRD_PARTY/cg/files', | 43 CG_BASE_DIR = '$THIRD_PARTY/cg/files', |
44 # TODO: pull from Chrome's SVN with gclient ? | 44 # TODO: pull from Chrome's SVN with gclient ? |
45 CHROME_SRC_DIR = '$THIRD_PARTY/chrome/files', | 45 CHROME_SRC_DIR = '$THIRD_PARTY/chrome/files', |
46 COLLADA_DIR = '$THIRD_PARTY/fcollada/files', | 46 COLLADA_DIR = '$THIRD_PARTY/fcollada/files', |
47 DOXYGEN_DIR = '$THIRD_PARTY/doxygen', | 47 DOXYGEN_DIR = '$THIRD_PARTY/doxygen', |
48 GFLAGS_DIR = '$THIRD_PARTY/gflags', | 48 GFLAGS_DIR = '$THIRD_PARTY/gflags', |
49 GLEW_DIR = '$THIRD_PARTY/glew/files', | 49 GLEW_DIR = '$THIRD_PARTY/glew/files', |
50 GMOCK_DIR = '$THIRD_PARTY/gmock/files', | 50 GMOCK_DIR = '$THIRD_PARTY/gmock/files', |
51 GTEST_DIR = '$THIRD_PARTY/gtest/files', | 51 GTEST_DIR = '$THIRD_PARTY/gtest/files', |
52 # TODO: pull from Chrome's SVN with gclient ? | 52 # TODO: pull from Chrome's SVN with gclient ? |
53 ICU38_DIR = '$THIRD_PARTY/icu38/files', | 53 ICU38_DIR = '$THIRD_PARTY/icu38/files', |
54 JPEG_DIR = '$THIRD_PARTY/jpeg/src', | 54 JPEG_DIR = '$THIRD_PARTY/jpeg/src', |
55 JSDOCTOOLKIT_DIR = '$THIRD_PARTY/jsdoctoolkit/files', | 55 JSDOCTOOLKIT_DIR = '$THIRD_PARTY/jsdoctoolkit/files', |
56 # Set this to run an hermetic version of Firefox with Selenium on the Mac. | 56 # Set this to run an hermetic version of Firefox with Selenium on the Mac. |
57 # See tests/build.scons | 57 # See tests/build.scons |
58 MAC_HERMETIC_FIREFOX_DIR = None, | 58 MAC_HERMETIC_FIREFOX_DIR = None, |
59 NACL_DIR = '$GOOGLECLIENT/native_client', | 59 # NACL has to be in this weird directory because it looks for |
| 60 # googleclient two levels above it. |
| 61 NACL_DIR = '$THIRD_PARTY/native_client/googleclient/native_client', |
60 NIXYSA_DIR = '$THIRD_PARTY/nixysa/files', | 62 NIXYSA_DIR = '$THIRD_PARTY/nixysa/files', |
61 NPAPI_DIR = '$THIRD_PARTY/npapi/files', | 63 NPAPI_DIR = '$THIRD_PARTY/npapi/files', |
62 PDIFF_DIR = '$THIRD_PARTY/pdiff/files', | 64 PDIFF_DIR = '$THIRD_PARTY/pdiff/files', |
63 PLY_DIR = '$THIRD_PARTY/ply/files', | 65 PLY_DIR = '$THIRD_PARTY/ply/files', |
64 PNG_DIR = '$THIRD_PARTY/png/src', | 66 PNG_DIR = '$THIRD_PARTY/png/src', |
65 SCONS_DIR = '$THIRD_PARTY/scons', | 67 SCONS_DIR = '$THIRD_PARTY/scons', |
66 SELENIUM_JAVA_DIR = '$THIRD_PARTY/java/selenium/rev2478_mod', | 68 SELENIUM_JAVA_DIR = '$THIRD_PARTY/java/selenium/rev2478_mod', |
67 SELENIUM_PYTHON_DIR = '$THIRD_PARTY/py/selenium', | 69 SELENIUM_PYTHON_DIR = '$THIRD_PARTY/py/selenium', |
68 # TODO: pull from SVN with gclient ? | 70 # TODO: pull from SVN with gclient ? |
69 SKIA_DIR = '$THIRD_PARTY/skia/files', | 71 SKIA_DIR = '$THIRD_PARTY/skia/files', |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 env['ENV']['PATH'] = "%s%s%s" % (env['ENV']['PATH'], os.pathsep, | 116 env['ENV']['PATH'] = "%s%s%s" % (env['ENV']['PATH'], os.pathsep, |
115 os.path.join(winsdk_dir, 'Bin')) | 117 os.path.join(winsdk_dir, 'Bin')) |
116 except KeyError: | 118 except KeyError: |
117 env['ENV']['PATH'] = os.path.join(winsdk_dir, 'Bin') | 119 env['ENV']['PATH'] = os.path.join(winsdk_dir, 'Bin') |
118 else: | 120 else: |
119 env.Replace(JAVA_EXE = 'java') | 121 env.Replace(JAVA_EXE = 'java') |
120 if env.Bit('host_linux'): | 122 if env.Bit('host_linux'): |
121 env.Replace(DOXYGEN = '$DOXYGEN_DIR/linux/doxygen') | 123 env.Replace(DOXYGEN = '$DOXYGEN_DIR/linux/doxygen') |
122 else: | 124 else: |
123 env.Replace(DOXYGEN = '$DOXYGEN_DIR/osx/doxygen') | 125 env.Replace(DOXYGEN = '$DOXYGEN_DIR/osx/doxygen') |
OLD | NEW |