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

Side by Side Diff: webrtc/build/isolate.gypi

Issue 1373513002: Update isolate.gypi to support Swarming + move .isolate files (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Updated location in webrtc/build/android/test_runner.py Created 5 years, 2 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
« no previous file with comments | « webrtc/build/android/test_runner.py ('k') | webrtc/modules/audio_codec_speed_tests.isolate » ('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 (c) 2013 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license 3 # Use of this source code is governed by a BSD-style license
4 # that can be found in the LICENSE file in the root of the source 4 # that can be found in the LICENSE file in the root of the source
5 # tree. An additional intellectual property rights grant can be found 5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS. All contributing project authors may 6 # in the file PATENTS. All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree. 7 # be found in the AUTHORS file in the root of the source tree.
8 8
9 # Copied from Chromium's src/build/isolate.gypi 9 # Copied from Chromium's src/build/isolate.gypi
10 # 10 #
11 # It was necessary to copy this file to WebRTC, because the path to 11 # It was necessary to copy this file because the path to build/common.gypi is
12 # build/common.gypi is different for the standalone and Chromium builds. Gyp 12 # different for the standalone and Chromium builds. Gyp doesn't permit
13 # doesn't permit conditional inclusion or variable expansion in include paths. 13 # conditional inclusion or variable expansion in include paths.
14 # http://code.google.com/p/gyp/wiki/InputFormatReference#Including_Other_Files 14 # http://code.google.com/p/gyp/wiki/InputFormatReference#Including_Other_Files
15 # 15 #
16 # Local modifications: 16 # Local modifications:
17 # * Removed include of '../chrome/version.gypi'. 17 # * Removed include of '../chrome/version.gypi'.
18 # * Removal passing of version_full variable created in version.gypi: 18 # * Removed passing of version_full variable created in version.gypi:
19 # '--extra-variable', 'version_full=<(version_full)', 19 # '--extra-variable', 'version_full=<(version_full)',
20 20
21 # This file is meant to be included into a target to provide a rule 21 # This file is meant to be included into a target to provide a rule
22 # to "build" .isolate files into a .isolated file. 22 # to "build" .isolate files into a .isolated file.
23 # 23 #
24 # To use this, create a gyp target with the following form: 24 # To use this, create a gyp target with the following form:
25 # 'conditions': [ 25 # 'conditions': [
26 # ['test_isolation_mode != "noop"', { 26 # ['test_isolation_mode != "noop"', {
27 # 'targets': [ 27 # 'targets': [
28 # { 28 # {
(...skipping 24 matching lines...) Expand all
53 # See http://dev.chromium.org/developers/testing/isolated-testing/for-swes 53 # See http://dev.chromium.org/developers/testing/isolated-testing/for-swes
54 # for more information. 54 # for more information.
55 55
56 { 56 {
57 'rules': [ 57 'rules': [
58 { 58 {
59 'rule_name': 'isolate', 59 'rule_name': 'isolate',
60 'extension': 'isolate', 60 'extension': 'isolate',
61 'inputs': [ 61 'inputs': [
62 # Files that are known to be involved in this step. 62 # Files that are known to be involved in this step.
63 '<(DEPTH)/tools/isolate_driver.py',
63 '<(DEPTH)/tools/swarming_client/isolate.py', 64 '<(DEPTH)/tools/swarming_client/isolate.py',
64 '<(DEPTH)/tools/swarming_client/run_isolated.py', 65 '<(DEPTH)/tools/swarming_client/run_isolated.py',
65 ], 66 ],
66 'outputs': [ 67 'outputs': [],
67 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated',
68 ],
69 'action': [ 68 'action': [
70 'python', 69 'python',
71 '<(DEPTH)/tools/swarming_client/isolate.py', 70 '<(DEPTH)/tools/isolate_driver.py',
72 '<(test_isolation_mode)', 71 '<(test_isolation_mode)',
73 '--result', '<@(_outputs)', 72 '--isolated', '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated',
74 '--isolate', '<(RULE_INPUT_PATH)', 73 '--isolate', '<(RULE_INPUT_PATH)',
75 74
76 # Variables should use the -V FOO=<(FOO) form so frequent values, 75 # Variables should use the -V FOO=<(FOO) form so frequent values,
77 # like '0' or '1', aren't stripped out by GYP. Run 'isolate.py help' for 76 # like '0' or '1', aren't stripped out by GYP. Run 'isolate.py help' for
78 # more details. 77 # more details.
79 #
80 # This list needs to be kept in sync with the cmd line options
81 # in src/build/android/pylib/gtest/setup.py.
82 78
83 # Path variables are used to replace file paths when loading a .isolate 79 # Path variables are used to replace file paths when loading a .isolate
84 # file 80 # file
85 '--path-variable', 'DEPTH', '<(DEPTH)', 81 '--path-variable', 'DEPTH', '<(DEPTH)',
86 '--path-variable', 'PRODUCT_DIR', '<(PRODUCT_DIR) ', 82 '--path-variable', 'PRODUCT_DIR', '<(PRODUCT_DIR) ',
87 83
84 # Note: This list must match DefaultConfigVariables()
85 # in build/android/pylib/utils/isolator.py
86 '--config-variable', 'CONFIGURATION_NAME=<(CONFIGURATION_NAME)',
88 '--config-variable', 'OS=<(OS)', 87 '--config-variable', 'OS=<(OS)',
88 '--config-variable', 'asan=<(asan)',
89 '--config-variable', 'branding=<(branding)',
89 '--config-variable', 'chromeos=<(chromeos)', 90 '--config-variable', 'chromeos=<(chromeos)',
90 '--config-variable', 'component=<(component)', 91 '--config-variable', 'component=<(component)',
92 '--config-variable', 'disable_nacl=<(disable_nacl)',
93 '--config-variable', 'enable_pepper_cdms=<(enable_pepper_cdms)',
94 '--config-variable', 'enable_plugins=<(enable_plugins)',
95 '--config-variable', 'fastbuild=<(fastbuild)',
96 '--config-variable', 'icu_use_data_file_flag=<(icu_use_data_file_flag)',
91 # TODO(kbr): move this to chrome_tests.gypi:gles2_conform_tests_run 97 # TODO(kbr): move this to chrome_tests.gypi:gles2_conform_tests_run
92 # once support for user-defined config variables is added. 98 # once support for user-defined config variables is added.
93 '--config-variable', 99 '--config-variable',
94 'internal_gles2_conform_tests=<(internal_gles2_conform_tests)', 100 'internal_gles2_conform_tests=<(internal_gles2_conform_tests)',
95 '--config-variable', 'icu_use_data_file_flag=<(icu_use_data_file_flag)', 101 '--config-variable', 'kasko=<(kasko)',
102 '--config-variable', 'lsan=<(lsan)',
103 '--config-variable', 'msan=<(msan)',
104 '--config-variable', 'target_arch=<(target_arch)',
105 '--config-variable', 'tsan=<(tsan)',
106 '--config-variable', 'use_custom_libcxx=<(use_custom_libcxx)',
107 '--config-variable', 'use_instrumented_libraries=<(use_instrumented_libr aries)',
108 '--config-variable',
109 'use_prebuilt_instrumented_libraries=<(use_prebuilt_instrumented_librari es)',
96 '--config-variable', 'use_openssl=<(use_openssl)', 110 '--config-variable', 'use_openssl=<(use_openssl)',
111 '--config-variable', 'use_ozone=<(use_ozone)',
112 '--config-variable', 'use_x11=<(use_x11)',
113 '--config-variable', 'v8_use_external_startup_data=<(v8_use_external_sta rtup_data)',
97 ], 114 ],
98 'conditions': [ 115 'conditions': [
99 # Note: When gyp merges lists, it appends them to the old value. 116 # Note: When gyp merges lists, it appends them to the old value.
100 ['OS=="mac"', { 117 ['OS=="mac"', {
101 # <(mac_product_name) can contain a space, so don't use FOO=<(FOO)
102 # form.
103 'action': [ 118 'action': [
104 '--extra-variable', 'mac_product_name', '<(mac_product_name)', 119 '--extra-variable', 'mac_product_name=<(mac_product_name)',
120 ],
121 }],
122 ["test_isolation_mode == 'prepare'", {
123 'outputs': [
124 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated.gen.json',
125 ],
126 }, {
127 'outputs': [
128 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated',
129 ],
130 }],
131 ['OS=="win"', {
132 'action': [
133 '--config-variable', 'msvs_version=<(MSVS_VERSION)',
134 ],
135 }, {
136 'action': [
137 '--config-variable', 'msvs_version=0',
105 ], 138 ],
106 }], 139 }],
107 ], 140 ],
108 }, 141 },
109 ], 142 ],
110 } 143 }
OLDNEW
« no previous file with comments | « webrtc/build/android/test_runner.py ('k') | webrtc/modules/audio_codec_speed_tests.isolate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698