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

Unified Diff: android_webview/android_webview.gyp

Issue 903793002: Name V8 snapshot according to target architecture (32/64 bit). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: android_webview/android_webview.gyp
diff --git a/android_webview/android_webview.gyp b/android_webview/android_webview.gyp
index aad1cc7c325ddf1ee4da48797e5b356cead649fa..1656582646c21a2398a2bba06cb454955ed7172e 100644
--- a/android_webview/android_webview.gyp
+++ b/android_webview/android_webview.gyp
@@ -37,7 +37,53 @@
'pak_output': '<(PRODUCT_DIR)/android_webview_assets/en-US.pak',
},
'includes': [ '../build/repack_action.gypi' ],
- }
+ },
+ ],
+ 'conditions': [
+ ['v8_use_external_startup_data==1', {
+ 'variables': {
+ 'conditions': [
+ ['(target_arch=="arm" or target_arch=="x86" or target_arch=="mips")', {
+ 'arch_suffix':'32'
+ }],
+ ['(target_arch=="arm64" or target_arch=="x86_64" or target_arch=="mips64")', {
+ 'arch_suffix':'64'
+ }],
+ ],
+ },
+ 'actions': [
+ {
+ 'action_name': 'rename_snapshot_blob',
+ 'inputs': [
+ '<(PRODUCT_DIR)/snapshot_blob.bin',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/snapshot_blob_<(arch_suffix).bin',
+ ],
+ 'action': [
+ 'python',
+ '<(DEPTH)/build/cp.py',
+ '<@(_inputs)',
+ '<@(_outputs)',
+ ],
+ },
+ {
+ 'action_name': 'rename_natives_blob',
+ 'inputs': [
+ '<(PRODUCT_DIR)/natives_blob.bin',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/natives_blob_<(arch_suffix).bin',
+ ],
+ 'action': [
+ 'python',
+ '<(DEPTH)/build/cp.py',
+ '<@(_inputs)',
+ '<@(_outputs)',
+ ],
+ },
+ ],
+ }],
],
},
{
« no previous file with comments | « no previous file | android_webview/android_webview_tests.gypi » ('j') | android_webview/apk/system_webview_apk_common.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698