OLD | NEW |
---|---|
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_common_source_files': [ | |
18 'asan_interceptors_tests.cc', | |
19 'asan_page_protection_tests.cc', | |
20 'deferred_free_tests.cc', | |
21 'integration_tests_dll.cc', | |
22 ], | |
23 'integration_tests_other_files': [ | |
24 'asan_interceptors_tests.h', | |
25 'asan_page_protection_tests.h', | |
26 'bb_entry_tests.h', | |
27 'bb_entry_tests.cc', | |
28 'behavior_tests.h', | |
29 'behavior_tests.cc', | |
30 'coverage_tests.h', | |
31 'coverage_tests.cc', | |
32 'deferred_free_tests.h', | |
33 'integration_tests_dll.def', | |
34 'integration_tests_dll.h', | |
35 'integration_tests_dll.rc', | |
36 'profile_tests.h', | |
37 'profile_tests.cc', | |
38 ] | |
39 }, | |
16 'targets': [ | 40 'targets': [ |
17 { | 41 { |
18 'target_name': 'integration_tests', | 42 'target_name': 'integration_tests', |
19 'type': 'executable', | 43 'type': 'executable', |
20 'sources': [ | 44 'sources': [ |
21 'integration_tests.rc', | 45 'integration_tests.rc', |
22 'instrument_integration_test.cc', | 46 'instrument_integration_test.cc', |
23 '<(src)/syzygy/testing/run_all_unittests.cc', | 47 '<(src)/syzygy/testing/run_all_unittests.cc', |
24 ], | 48 ], |
25 'dependencies': [ | 49 'dependencies': [ |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
76 '<(python_exe)', | 100 '<(python_exe)', |
77 '<(src)/syzygy/build/copy_laa.py', | 101 '<(src)/syzygy/build/copy_laa.py', |
78 '--input=$(OutDir)\\integration_tests.exe', | 102 '--input=$(OutDir)\\integration_tests.exe', |
79 '--output=$(OutDir)\\integration_tests_4g.exe', | 103 '--output=$(OutDir)\\integration_tests_4g.exe', |
80 '--overwrite', | 104 '--overwrite', |
81 ], | 105 ], |
82 }, | 106 }, |
83 ], | 107 ], |
84 }, | 108 }, |
85 { | 109 { |
110 'target_name': 'integration_tests_clang_dll', | |
111 'type': 'none', | |
112 'msvs_cygwin_shell': 0, | |
113 'actions': [ | |
114 { | |
115 'action_name': 'make_integration_tests_clang', | |
116 'inputs': ['<@(integration_tests_common_source_files)'], | |
117 'outputs': ['<(PRODUCT_DIR)/integration_tests_clang_dll.dll'], | |
118 'action': [ | |
119 'make_integration_tests_clang.py', | |
Sébastien Marchand
2017/07/07 17:31:11
You need sys.executable before that
Sébastien Marchand
2017/07/07 17:31:59
Well, in fact you need:
'<(python_exe)
njanevsk
2017/07/07 18:47:52
Done.
njanevsk
2017/07/07 18:47:53
Done.
| |
120 '--output-dir=<(PRODUCT_DIR)', | |
121 '--input-files=<(_inputs)', | |
Sébastien Marchand
2017/07/07 17:41:38
This doesn't work, this gives the following comman
njanevsk
2017/07/07 18:47:52
The code works. The problem was in the python scri
| |
122 '--target-name=integration_tests_clang_dll', | |
123 ], | |
124 }, | |
125 ], | |
126 }, | |
127 { | |
86 'target_name': 'integration_tests_dll', | 128 'target_name': 'integration_tests_dll', |
87 'type': 'loadable_module', | 129 'type': 'loadable_module', |
88 'sources': [ | 130 'sources': [ |
89 'asan_check_tests.h', | 131 '<@(integration_tests_common_source_files)', |
90 'asan_interceptors_tests.cc', | 132 '<@(integration_tests_other_files)' |
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 ], | 133 ], |
109 'dependencies': [ | 134 'dependencies': [ |
110 '<(src)/syzygy/pe/pe.gyp:export_dll', | 135 '<(src)/syzygy/pe/pe.gyp:export_dll', |
111 '<(src)/syzygy/version/version.gyp:syzygy_version', | 136 '<(src)/syzygy/version/version.gyp:syzygy_version', |
112 ], | 137 ], |
113 'msvs_settings': { | 138 'msvs_settings': { |
114 'VCLinkerTool': { | 139 'VCLinkerTool': { |
115 # Asan agent is compiled without large address spaces to allow a | 140 # Asan agent is compiled without large address spaces to allow a |
116 # memory optimization on the shadow memory. Agents should run in both | 141 # memory optimization on the shadow memory. Agents should run in both |
117 # modes, thus in the long term, we should remove this. | 142 # modes, thus in the long term, we should remove this. |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
211 # Asan agent is compiled without large address spaces to allow a | 236 # Asan agent is compiled without large address spaces to allow a |
212 # memory optimization on the shadow memory. Agents should run in both | 237 # memory optimization on the shadow memory. Agents should run in both |
213 # modes, thus in the long term, we should remove this. | 238 # modes, thus in the long term, we should remove this. |
214 # Disable support for large address spaces. | 239 # Disable support for large address spaces. |
215 'LargeAddressAware': 1, | 240 'LargeAddressAware': 1, |
216 }, | 241 }, |
217 }, | 242 }, |
218 }, | 243 }, |
219 ], | 244 ], |
220 } | 245 } |
OLD | NEW |