| OLD | NEW |
| 1 # | 1 # |
| 2 # libjingle | 2 # libjingle |
| 3 # Copyright 2013 Google Inc. | 3 # Copyright 2013 Google Inc. |
| 4 # | 4 # |
| 5 # Redistribution and use in source and binary forms, with or without | 5 # Redistribution and use in source and binary forms, with or without |
| 6 # modification, are permitted provided that the following conditions are met: | 6 # modification, are permitted provided that the following conditions are met: |
| 7 # | 7 # |
| 8 # 1. Redistributions of source code must retain the above copyright notice, | 8 # 1. Redistributions of source code must retain the above copyright notice, |
| 9 # this list of conditions and the following disclaimer. | 9 # this list of conditions and the following disclaimer. |
| 10 # 2. Redistributions in binary form must reproduce the above copyright notice, | 10 # 2. Redistributions in binary form must reproduce the above copyright notice, |
| 11 # this list of conditions and the following disclaimer in the documentation | 11 # this list of conditions and the following disclaimer in the documentation |
| 12 # and/or other materials provided with the distribution. | 12 # and/or other materials provided with the distribution. |
| 13 # 3. The name of the author may not be used to endorse or promote products | 13 # 3. The name of the author may not be used to endorse or promote products |
| 14 # derived from this software without specific prior written permission. | 14 # derived from this software without specific prior written permission. |
| 15 # | 15 # |
| 16 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED | 16 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED |
| 17 # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | 17 # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| 18 # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | 18 # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO |
| 19 # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 19 # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 20 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | 20 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
| 21 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | 21 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
| 22 # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | 22 # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
| 23 # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | 23 # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
| 24 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | 24 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
| 25 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 # | |
| 27 | 26 |
| 28 # Copied from Chromium's src/build/isolate.gypi | 27 # Copied from Chromium's src/build/isolate.gypi |
| 29 # | 28 # |
| 30 # It was necessary to copy this file to libjingle , because the path to | 29 # It was necessary to copy this file because the path to build/common.gypi is |
| 31 # build/common.gypi is different for the standalone and Chromium builds. Gyp | 30 # different for the standalone and Chromium builds. Gyp doesn't permit |
| 32 # doesn't permit conditional inclusion or variable expansion in include paths. | 31 # conditional inclusion or variable expansion in include paths. |
| 33 # http://code.google.com/p/gyp/wiki/InputFormatReference#Including_Other_Files | 32 # http://code.google.com/p/gyp/wiki/InputFormatReference#Including_Other_Files |
| 34 # | 33 # |
| 35 # Local modifications: | 34 # Local modifications: |
| 36 # * Removed include of '../chrome/version.gypi'. | 35 # * Removed include of '../chrome/version.gypi'. |
| 37 # * Removal passing of version_full variable created in version.gypi: | 36 # * Removed passing of version_full variable created in version.gypi: |
| 38 # '--extra-variable', 'version_full=<(version_full)', | 37 # '--extra-variable', 'version_full=<(version_full)', |
| 39 | 38 |
| 40 # This file is meant to be included into a target to provide a rule | 39 # This file is meant to be included into a target to provide a rule |
| 41 # to "build" .isolate files into a .isolated file. | 40 # to "build" .isolate files into a .isolated file. |
| 42 # | 41 # |
| 43 # To use this, create a gyp target with the following form: | 42 # To use this, create a gyp target with the following form: |
| 44 # 'conditions': [ | 43 # 'conditions': [ |
| 45 # ['test_isolation_mode != "noop"', { | 44 # ['test_isolation_mode != "noop"', { |
| 46 # 'targets': [ | 45 # 'targets': [ |
| 47 # { | 46 # { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 72 # See http://dev.chromium.org/developers/testing/isolated-testing/for-swes | 71 # See http://dev.chromium.org/developers/testing/isolated-testing/for-swes |
| 73 # for more information. | 72 # for more information. |
| 74 | 73 |
| 75 { | 74 { |
| 76 'rules': [ | 75 'rules': [ |
| 77 { | 76 { |
| 78 'rule_name': 'isolate', | 77 'rule_name': 'isolate', |
| 79 'extension': 'isolate', | 78 'extension': 'isolate', |
| 80 'inputs': [ | 79 'inputs': [ |
| 81 # Files that are known to be involved in this step. | 80 # Files that are known to be involved in this step. |
| 81 '<(DEPTH)/tools/isolate_driver.py', |
| 82 '<(DEPTH)/tools/swarming_client/isolate.py', | 82 '<(DEPTH)/tools/swarming_client/isolate.py', |
| 83 '<(DEPTH)/tools/swarming_client/run_isolated.py', | 83 '<(DEPTH)/tools/swarming_client/run_isolated.py', |
| 84 ], | 84 ], |
| 85 'outputs': [ | 85 'outputs': [], |
| 86 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated', | |
| 87 ], | |
| 88 'action': [ | 86 'action': [ |
| 89 'python', | 87 'python', |
| 90 '<(DEPTH)/tools/swarming_client/isolate.py', | 88 '<(DEPTH)/tools/isolate_driver.py', |
| 91 '<(test_isolation_mode)', | 89 '<(test_isolation_mode)', |
| 92 '--result', '<@(_outputs)', | 90 '--isolated', '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated', |
| 93 '--isolate', '<(RULE_INPUT_PATH)', | 91 '--isolate', '<(RULE_INPUT_PATH)', |
| 94 | 92 |
| 95 # Variables should use the -V FOO=<(FOO) form so frequent values, | 93 # Variables should use the -V FOO=<(FOO) form so frequent values, |
| 96 # like '0' or '1', aren't stripped out by GYP. Run 'isolate.py help' for | 94 # like '0' or '1', aren't stripped out by GYP. Run 'isolate.py help' for |
| 97 # more details. | 95 # more details. |
| 98 # | |
| 99 # This list needs to be kept in sync with the cmd line options | |
| 100 # in src/build/android/pylib/gtest/setup.py. | |
| 101 | 96 |
| 102 # Path variables are used to replace file paths when loading a .isolate | 97 # Path variables are used to replace file paths when loading a .isolate |
| 103 # file | 98 # file |
| 104 '--path-variable', 'DEPTH', '<(DEPTH)', | 99 '--path-variable', 'DEPTH', '<(DEPTH)', |
| 105 '--path-variable', 'PRODUCT_DIR', '<(PRODUCT_DIR) ', | 100 '--path-variable', 'PRODUCT_DIR', '<(PRODUCT_DIR) ', |
| 106 | 101 |
| 102 # Note: This list must match DefaultConfigVariables() |
| 103 # in build/android/pylib/utils/isolator.py |
| 104 '--config-variable', 'CONFIGURATION_NAME=<(CONFIGURATION_NAME)', |
| 107 '--config-variable', 'OS=<(OS)', | 105 '--config-variable', 'OS=<(OS)', |
| 106 '--config-variable', 'asan=<(asan)', |
| 107 '--config-variable', 'branding=<(branding)', |
| 108 '--config-variable', 'chromeos=<(chromeos)', | 108 '--config-variable', 'chromeos=<(chromeos)', |
| 109 '--config-variable', 'component=<(component)', | 109 '--config-variable', 'component=<(component)', |
| 110 '--config-variable', 'disable_nacl=<(disable_nacl)', |
| 111 '--config-variable', 'enable_pepper_cdms=<(enable_pepper_cdms)', |
| 112 '--config-variable', 'enable_plugins=<(enable_plugins)', |
| 113 '--config-variable', 'fastbuild=<(fastbuild)', |
| 114 '--config-variable', 'icu_use_data_file_flag=<(icu_use_data_file_flag)', |
| 110 # TODO(kbr): move this to chrome_tests.gypi:gles2_conform_tests_run | 115 # TODO(kbr): move this to chrome_tests.gypi:gles2_conform_tests_run |
| 111 # once support for user-defined config variables is added. | 116 # once support for user-defined config variables is added. |
| 112 '--config-variable', | 117 '--config-variable', |
| 113 'internal_gles2_conform_tests=<(internal_gles2_conform_tests)', | 118 'internal_gles2_conform_tests=<(internal_gles2_conform_tests)', |
| 114 '--config-variable', 'icu_use_data_file_flag=<(icu_use_data_file_flag)', | 119 '--config-variable', 'kasko=<(kasko)', |
| 120 '--config-variable', 'lsan=<(lsan)', |
| 121 '--config-variable', 'msan=<(msan)', |
| 122 '--config-variable', 'target_arch=<(target_arch)', |
| 123 '--config-variable', 'tsan=<(tsan)', |
| 124 '--config-variable', 'use_custom_libcxx=<(use_custom_libcxx)', |
| 125 '--config-variable', 'use_instrumented_libraries=<(use_instrumented_libr
aries)', |
| 126 '--config-variable', |
| 127 'use_prebuilt_instrumented_libraries=<(use_prebuilt_instrumented_librari
es)', |
| 115 '--config-variable', 'use_openssl=<(use_openssl)', | 128 '--config-variable', 'use_openssl=<(use_openssl)', |
| 129 '--config-variable', 'use_ozone=<(use_ozone)', |
| 130 '--config-variable', 'use_x11=<(use_x11)', |
| 131 '--config-variable', 'v8_use_external_startup_data=<(v8_use_external_sta
rtup_data)', |
| 116 ], | 132 ], |
| 117 'conditions': [ | 133 'conditions': [ |
| 118 # Note: When gyp merges lists, it appends them to the old value. | 134 # Note: When gyp merges lists, it appends them to the old value. |
| 119 ['OS=="mac"', { | 135 ['OS=="mac"', { |
| 120 # <(mac_product_name) can contain a space, so don't use FOO=<(FOO) | |
| 121 # form. | |
| 122 'action': [ | 136 'action': [ |
| 123 '--extra-variable', 'mac_product_name', '<(mac_product_name)', | 137 '--extra-variable', 'mac_product_name=<(mac_product_name)', |
| 138 ], |
| 139 }], |
| 140 ["test_isolation_mode == 'prepare'", { |
| 141 'outputs': [ |
| 142 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated.gen.json', |
| 143 ], |
| 144 }, { |
| 145 'outputs': [ |
| 146 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated', |
| 147 ], |
| 148 }], |
| 149 ['OS=="win"', { |
| 150 'action': [ |
| 151 '--config-variable', 'msvs_version=<(MSVS_VERSION)', |
| 152 ], |
| 153 }, { |
| 154 'action': [ |
| 155 '--config-variable', 'msvs_version=0', |
| 124 ], | 156 ], |
| 125 }], | 157 }], |
| 126 ], | 158 ], |
| 127 }, | 159 }, |
| 128 ], | 160 ], |
| 129 } | 161 } |
| OLD | NEW |