Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(246)

Side by Side Diff: plugin/build.scons

Issue 147039: Code to load the software renderer and initialize it. Build scripts copy the ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « main.scons ('k') | svn_paths.scons » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 plugin_mac_object 262 plugin_mac_object
263 ] 263 ]
264 264
265 env['SHLINKFLAGS'] = ['-bundle', 265 env['SHLINKFLAGS'] = ['-bundle',
266 '-F$MAC_BREAKPAD_DIR', 266 '-F$MAC_BREAKPAD_DIR',
267 '-F$CG_DIR', 267 '-F$CG_DIR',
268 ] 268 ]
269 env['SHLIBPREFIX'] = [''] 269 env['SHLIBPREFIX'] = ['']
270 env['SHLIBSUFFIX'] = [''] 270 env['SHLIBSUFFIX'] = ['']
271 plugin_dll = env.SharedLibrary('o3d', inputs) 271 plugin_dll = env.SharedLibrary('o3d', inputs)
272 plugin_install = env.Replicate('$ARTIFACTS_DIR/O3D.plugin/Contents/MacOS/', pl ugin_dll) 272 plugin_artifacts = env.Replicate('$ARTIFACTS_DIR/O3D.plugin/Contents/MacOS/', plugin_dll)
273 273
274 # insert version number into Info.plist 274 # insert version number into Info.plist
275 env.ReplaceStrings( 275 env.ReplaceStrings(
276 'mac/processed/Info.plist', '$SCONSTRUCT_DIR/plugin/mac/Info.plist', 276 'mac/processed/Info.plist', '$SCONSTRUCT_DIR/plugin/mac/Info.plist',
277 REPLACE_STRINGS = plugin_replace_strings 277 REPLACE_STRINGS = plugin_replace_strings
278 ) 278 )
279 279
280 # copy mac resource data 280 # copy mac resource data
281 env.Replicate('$ARTIFACTS_DIR/O3D.plugin/Contents/', 281 env.Replicate('$ARTIFACTS_DIR/O3D.plugin/Contents/',
282 '$SCONSTRUCT_DIR/plugin/mac/Resources') 282 '$SCONSTRUCT_DIR/plugin/mac/Resources')
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 'ditto "$ARTIFACTS_DIR/O3D.mpkg" "$ARTIFACTS_DIR/DMG_SRC/O3D.mpkg" ', 377 'ditto "$ARTIFACTS_DIR/O3D.mpkg" "$ARTIFACTS_DIR/DMG_SRC/O3D.mpkg" ',
378 'hdiutil create -srcfolder "$ARTIFACTS_DIR/DMG_SRC" -size 30mb -ov -fs HFS+ -imagekey zlib-level=9 -volname "O3D $O3D_PLUGIN_VERSION" "$ARTIFACTS_ DIR/o3d.dmg"', 378 'hdiutil create -srcfolder "$ARTIFACTS_DIR/DMG_SRC" -size 30mb -ov -fs HFS+ -imagekey zlib-level=9 -volname "O3D $O3D_PLUGIN_VERSION" "$ARTIFACTS_ DIR/o3d.dmg"',
379 Delete("$ARTIFACTS_DIR/DMG_SRC"), 379 Delete("$ARTIFACTS_DIR/DMG_SRC"),
380 ]) 380 ])
381 381
382 382
383 # else build the shared library in a platform independent way 383 # else build the shared library in a platform independent way
384 else: 384 else:
385 plugin_dll = env.SharedLibrary('npo3dautoplugin', inputs) 385 plugin_dll = env.SharedLibrary('npo3dautoplugin', inputs)
386 # copy to artifacts 386 # copy to artifacts
387 plugin_install = env.Replicate('$ARTIFACTS_DIR', plugin_dll) 387 plugin_artifacts = env.Replicate('$ARTIFACTS_DIR', plugin_dll)
388 388
389 if env.Bit('linux'): 389 if env.Bit('linux'):
390 env.Requires(plugin_install, env.Replicate( 390 env.Requires(plugin_artifacts, env.Replicate(
391 '$ARTIFACTS_DIR', [ 391 '$ARTIFACTS_DIR', [
392 '$CG_DIR/lib/libCg.so', 392 '$CG_DIR/lib/libCg.so',
393 '$CG_DIR/lib/libCgGL.so', 393 '$CG_DIR/lib/libCgGL.so',
394 '$GLEW_DIR/lib/libGLEW.so.1.5', 394 '$GLEW_DIR/lib/libGLEW.so.1.5',
395 ] 395 ]
396 )) 396 ))
397 397
398 398
399 # alias 'plugin' to build the plug-in in artifacts 399 # alias 'plugin' to build the plug-in in artifacts
400 env.Alias('plugin', plugin_install) 400 env.Alias('plugin', plugin_artifacts)
401 401
402 # TODO: have a common way to do colliding installs like this. 402 # TODO: have a common way to do colliding installs like this.
403 # Do the install step only if this variant is the first target. 403 # Do the install step only if this variant is the first target.
404 if (env['BUILD_TYPE'] == ARGUMENTS.get('MODE') or 404 if (env['BUILD_TYPE'] == ARGUMENTS.get('MODE') or
405 (ARGUMENTS.get('MODE', 'default') == 'default' and 405 (ARGUMENTS.get('MODE', 'default') == 'default' and
406 env['BUILD_TYPE'] == 'dbg-d3d')): 406 env['BUILD_TYPE'] == 'dbg-d3d')):
407 i = env.Replicate('$FIREFOX_PLUGIN_DIR', plugin_dll[0]) 407 plugin_install = env.Replicate('$FIREFOX_PLUGIN_DIR', plugin_dll[0])
408 env.Alias('install', i) 408 env.Alias('install', plugin_install)
409
410 if env.Bit('windows'):
411 # Copy SwiftShader to plugin dir.
412 swiftshader_path = env.subst('$SWIFTSHADER_DIR/swiftshader_d3d9.dll')
413 if os.path.exists(swiftshader_path):
414 env.Requires(plugin_install,
415 env.Replicate('$FIREFOX_PLUGIN_DIR/O3DExtras', swiftshader_path))
409 416
410 if env.Bit('windows'): 417 if env.Bit('windows'):
411 # Make the logging program 418 # Make the logging program
412 exe = env.ComponentProgram('statsLogger', 419 exe = env.ComponentProgram('statsLogger',
413 logging_lib + ['win/logger_main.cc']) 420 logging_lib + ['win/logger_main.cc'])
414 # Copy the resulting executable to the Artifacts directory. 421 # Copy the resulting executable to the Artifacts directory.
415 env.Replicate('$ARTIFACTS_DIR', [exe]) 422 env.Replicate('$ARTIFACTS_DIR', [exe])
OLDNEW
« no previous file with comments | « main.scons ('k') | svn_paths.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698