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

Side by Side Diff: syzygy/integration_tests/integration_tests.gyp

Issue 2946063002: Python script to compile and link the integration tests using llvm's clang-cl (Closed)
Patch Set: Response to reviewer comments. Created 3 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
OLDNEW
1 # Copyright 2013 Google Inc. All Rights Reserved. 1 # Copyright 2013 Google Inc. All Rights Reserved.
2 # 2 #
3 # Licensed under the Apache License, Version 2.0 (the "License"); 3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License. 4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at 5 # You may obtain a copy of the License at
6 # 6 #
7 # http://www.apache.org/licenses/LICENSE-2.0 7 # http://www.apache.org/licenses/LICENSE-2.0
8 # 8 #
9 # Unless required by applicable law or agreed to in writing, software 9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS, 10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and 12 # See the License for the specific language governing permissions and
13 # limitations under the License. 13 # limitations under the License.
14 14
15 { 15 {
16 'variables': {
17 'integration_tests_files': [
18 'asan_interceptors_tests.cc',
19 'asan_interceptors_tests.h',
20 'asan_page_protection_tests.cc',
21 'asan_page_protection_tests.h',
22 'bb_entry_tests.cc',
23 'bb_entry_tests.h',
24 'behavior_tests.cc',
25 'behavior_tests.h',
26 'coverage_tests.cc',
27 'coverage_tests.h',
28 'deferred_free_tests.cc',
29 'deferred_free_tests.h',
30 'integration_tests_dll.cc',
31 'integration_tests_dll.def',
32 'integration_tests_dll.h',
33 'integration_tests_dll.rc',
34 'profile_tests.cc',
35 'profile_tests.h',
36 ]
37 },
16 'targets': [ 38 'targets': [
17 { 39 {
18 'target_name': 'integration_tests', 40 'target_name': 'integration_tests',
19 'type': 'executable', 41 'type': 'executable',
20 'sources': [ 42 'sources': [
21 'integration_tests.rc', 43 'integration_tests.rc',
22 'instrument_integration_test.cc', 44 'instrument_integration_test.cc',
23 '<(src)/syzygy/testing/run_all_unittests.cc', 45 '<(src)/syzygy/testing/run_all_unittests.cc',
24 ], 46 ],
25 'dependencies': [ 47 'dependencies': [
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 'action': [ 97 'action': [
76 '<(python_exe)', 98 '<(python_exe)',
77 '<(src)/syzygy/build/copy_laa.py', 99 '<(src)/syzygy/build/copy_laa.py',
78 '--input=$(OutDir)\\integration_tests.exe', 100 '--input=$(OutDir)\\integration_tests.exe',
79 '--output=$(OutDir)\\integration_tests_4g.exe', 101 '--output=$(OutDir)\\integration_tests_4g.exe',
80 '--overwrite', 102 '--overwrite',
81 ], 103 ],
82 }, 104 },
83 ], 105 ],
84 }, 106 },
107 {
108 'target_name': 'integration_tests_clang',
109 'type': 'none',
110 'msvs_cygwin_shell': 0,
111 'actions': [
112 {
113 'action_name': 'make_integration_tests_clang',
114 'inputs': ['<@(integration_tests_files)'],
115 'outputs': ['<(PRODUCT_DIR)/integration_tests_clang.exe'],
116 'action': [
117 'make_integration_tests_clang.py',
118 '--src-dir=<(src)',
119 '--release-dir=<(PRODUCT_DIR)',
120 '--input_files=<(_inputs)',
121 ],
122 },
123 ],
124 },
85 { 125 {
86 'target_name': 'integration_tests_dll', 126 'target_name': 'integration_tests_dll',
87 'type': 'loadable_module', 127 'type': 'loadable_module',
88 'sources': [ 128 'sources': ['<@(integration_tests_files)'],
89 'asan_check_tests.h',
90 'asan_interceptors_tests.cc',
91 'asan_interceptors_tests.h',
92 'asan_page_protection_tests.cc',
93 'asan_page_protection_tests.h',
94 'bb_entry_tests.cc',
95 'bb_entry_tests.h',
96 'behavior_tests.cc',
97 'behavior_tests.h',
98 'coverage_tests.cc',
99 'coverage_tests.h',
100 'deferred_free_tests.cc',
101 'deferred_free_tests.h',
102 'integration_tests_dll.cc',
103 'integration_tests_dll.def',
104 'integration_tests_dll.h',
105 'integration_tests_dll.rc',
106 'profile_tests.cc',
107 'profile_tests.h',
108 ],
109 'dependencies': [ 129 'dependencies': [
110 '<(src)/syzygy/pe/pe.gyp:export_dll', 130 '<(src)/syzygy/pe/pe.gyp:export_dll',
111 '<(src)/syzygy/version/version.gyp:syzygy_version', 131 '<(src)/syzygy/version/version.gyp:syzygy_version',
112 ], 132 ],
113 'msvs_settings': { 133 'msvs_settings': {
114 'VCLinkerTool': { 134 'VCLinkerTool': {
115 # Asan agent is compiled without large address spaces to allow a 135 # Asan agent is compiled without large address spaces to allow a
116 # memory optimization on the shadow memory. Agents should run in both 136 # memory optimization on the shadow memory. Agents should run in both
117 # modes, thus in the long term, we should remove this. 137 # modes, thus in the long term, we should remove this.
118 # Disable support for large address spaces. 138 # Disable support for large address spaces.
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 # Asan agent is compiled without large address spaces to allow a 231 # Asan agent is compiled without large address spaces to allow a
212 # memory optimization on the shadow memory. Agents should run in both 232 # memory optimization on the shadow memory. Agents should run in both
213 # modes, thus in the long term, we should remove this. 233 # modes, thus in the long term, we should remove this.
214 # Disable support for large address spaces. 234 # Disable support for large address spaces.
215 'LargeAddressAware': 1, 235 'LargeAddressAware': 1,
216 }, 236 },
217 }, 237 },
218 }, 238 },
219 ], 239 ],
220 } 240 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698