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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 158 |
159 # All the libs required for IMC layer on the host. | 159 # All the libs required for IMC layer on the host. |
160 nacl_imc_all_libs = [ | 160 nacl_imc_all_libs = [ |
161 nacl_imc_lib, | 161 nacl_imc_lib, |
162 'google_nacl_imc_c', | 162 'google_nacl_imc_c', |
163 ] | 163 ] |
164 | 164 |
165 # All the libs required for HTP layer on the host. | 165 # All the libs required for HTP layer on the host. |
166 nacl_htp_all_libs = [ | 166 nacl_htp_all_libs = [ |
167 nacl_imc_lib, | 167 nacl_imc_lib, |
168 'google_nacl_npruntime', # The lib reguired for the NPAPI bridge. | 168 'google_nacl_imc_c', |
169 'nrd_xfer', | 169 'nrd_xfer', |
170 'gio', | 170 'gio', |
| 171 'naclthread', |
171 ] | 172 ] |
172 | 173 |
173 binaries_env = base_env.Clone() | 174 binaries_env = base_env.Clone() |
174 binaries_env.Append( | 175 binaries_env.Append( |
175 BUILD_COMPONENTS = [ | 176 BUILD_COMPONENTS = [ |
176 'base', | 177 'base', |
177 'bitmap', | 178 'bitmap', |
178 'compiler/antlr', | 179 'compiler/antlr', |
179 'compiler/technique', | 180 'compiler/technique', |
180 'converter', | 181 'converter', |
181 'core', | 182 'core', |
182 'import', | 183 'import', |
183 'plugin', | 184 'plugin', |
184 'samples', | 185 'samples', |
185 'serializer', | 186 'serializer', |
186 'skia', | 187 'skia', |
187 'tests', | 188 'tests', |
188 'tests/common', | 189 'tests/common', |
189 'utils', | 190 'utils', |
190 'v8', | 191 'v8', |
191 ], | 192 ], |
192 # TODO: this is ugly, should all be rolling into builder. | 193 # TODO: this is ugly, should all be rolling into builder. |
193 NACL_OBJ_ROOT = '$NACL_DIR/scons-out/$NACL_VARIANT/obj', | 194 NACL_OBJ_ROOT = '$NACL_DIR/scons-out/$NACL_VARIANT/obj', |
194 NACL_LIB_DIR = '$NACL_DIR/scons-out/$NACL_VARIANT/lib', | 195 NACL_LIB_DIR = '$NACL_DIR/scons-out/$NACL_VARIANT/lib', |
195 NACL_HTP_LIBS = nacl_imc_all_libs, | 196 NACL_HTP_LIBS = nacl_htp_all_libs, |
196 ) | 197 ) |
197 | 198 |
198 # This function adds a path to a windows environment variable like PATH, | 199 # This function adds a path to a windows environment variable like PATH, |
199 # INCLUDE, or LIB. | 200 # INCLUDE, or LIB. |
200 def AddPathToWindowsEnv(env_dict, var, path): | 201 def AddPathToWindowsEnv(env_dict, var, path): |
201 try: | 202 try: |
202 src = env_dict[var] | 203 src = env_dict[var] |
203 except KeyError: | 204 except KeyError: |
204 src = '' | 205 src = '' |
205 if not src: | 206 if not src: |
(...skipping 12 matching lines...) Expand all Loading... |
218 script_suffix = '.bat' | 219 script_suffix = '.bat' |
219 # We want native client to use the same Platform SDK as ours. Pass it | 220 # We want native client to use the same Platform SDK as ours. Pass it |
220 # through INCLUDE and LIB. | 221 # through INCLUDE and LIB. |
221 AddPathToWindowsEnv(nacl_os_env, 'INCLUDE', | 222 AddPathToWindowsEnv(nacl_os_env, 'INCLUDE', |
222 env.subst('$PLATFORM_SDK_VISTA_6_0_DIR/Include')) | 223 env.subst('$PLATFORM_SDK_VISTA_6_0_DIR/Include')) |
223 AddPathToWindowsEnv(nacl_os_env, 'LIB', | 224 AddPathToWindowsEnv(nacl_os_env, 'LIB', |
224 env.subst('$PLATFORM_SDK_VISTA_6_0_DIR/Lib')) | 225 env.subst('$PLATFORM_SDK_VISTA_6_0_DIR/Lib')) |
225 else: | 226 else: |
226 script_suffix = '.sh' | 227 script_suffix = '.sh' |
227 | 228 |
228 if variant == 'nacl': | 229 build_libs = nacl_htp_all_libs |
229 build_libs = nacl_htp_all_libs | |
230 else : | |
231 build_libs = nacl_imc_all_libs | |
232 | 230 |
233 targets = ['$NACL_LIB_DIR/${LIBPREFIX}' + f + '${LIBSUFFIX}' | 231 targets = ['$NACL_LIB_DIR/${LIBPREFIX}' + f + '${LIBSUFFIX}' |
234 for f in build_libs] | 232 for f in build_libs] |
235 nacl_build_tool = '$PYTHON $SCONS_DIR/scons.py' | 233 nacl_build_tool = '$PYTHON $SCONS_DIR/scons.py' |
236 env.Command(targets, | 234 env.Command(targets, |
237 ['$NACL_NRD_XFER_SOURCE_DIR', '$NACL_PLUGIN_SOURCE_DIR'], | 235 ['$NACL_NRD_XFER_SOURCE_DIR', '$NACL_PLUGIN_SOURCE_DIR'], |
238 nacl_build_tool + ' ' | 236 nacl_build_tool + ' ' |
239 'MODE=$NACL_VARIANT ' | 237 'MODE=$NACL_VARIANT ' |
240 'naclsdk_validate=0 ' | 238 'naclsdk_validate=0 ' |
241 'sdl=none ' | 239 'sdl=none ' |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 'command_buffer/service', | 496 'command_buffer/service', |
499 'command_buffer/client', | 497 'command_buffer/client', |
500 ], | 498 ], |
501 # TODO: remove link-time dependency on d3dx9, using dynamic loading | 499 # TODO: remove link-time dependency on d3dx9, using dynamic loading |
502 # instead. | 500 # instead. |
503 RENDERER_LIBS = [ | 501 RENDERER_LIBS = [ |
504 'o3dCmdBuf_service', | 502 'o3dCmdBuf_service', |
505 'o3dCmdBuf_client', | 503 'o3dCmdBuf_client', |
506 'o3dCmdBuf_common', | 504 'o3dCmdBuf_common', |
507 'd3d9', 'dxerr', 'd3dx9' | 505 'd3d9', 'dxerr', 'd3dx9' |
508 ] + nacl_imc_all_libs | 506 ] + nacl_htp_all_libs |
509 ) | 507 ) |
510 | 508 |
511 windows_cb_debug_env = windows_cb_env.Clone( | 509 windows_cb_debug_env = windows_cb_env.Clone( |
512 BUILD_TYPE = 'dbg-cb', | 510 BUILD_TYPE = 'dbg-cb', |
513 BUILD_TYPE_DESCRIPTION = 'Windows Command Buffer debug build', | 511 BUILD_TYPE_DESCRIPTION = 'Windows Command Buffer debug build', |
514 ) | 512 ) |
515 | 513 |
516 AddWindowsDebugSettings(windows_cb_debug_env) | 514 AddWindowsDebugSettings(windows_cb_debug_env) |
517 environment_list.append(windows_cb_debug_env) | 515 environment_list.append(windows_cb_debug_env) |
518 | 516 |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
835 'o3d', environment_list, | 833 'o3d', environment_list, |
836 exclude_pattern = '.*third_party.*', | 834 exclude_pattern = '.*third_party.*', |
837 extra_build_targets = { | 835 extra_build_targets = { |
838 'Firefox': 'c:/Program Files/Mozilla FireFox/firefox.exe', | 836 'Firefox': 'c:/Program Files/Mozilla FireFox/firefox.exe', |
839 'unit_tests': '$ARTIFACTS_DIR/unit_tests.exe', | 837 'unit_tests': '$ARTIFACTS_DIR/unit_tests.exe', |
840 'system_tests': '$ARTIFACTS_DIR/system_tests.exe', | 838 'system_tests': '$ARTIFACTS_DIR/system_tests.exe', |
841 'converter': '$ARTIFACTS_DIR/o3dConverter.exe', | 839 'converter': '$ARTIFACTS_DIR/o3dConverter.exe', |
842 }, | 840 }, |
843 ) | 841 ) |
844 solution_env.Alias('solution', solution) | 842 solution_env.Alias('solution', solution) |
OLD | NEW |