OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 gyp_file = "gn.gyp" | 5 gyp_file = "gn.gyp" |
6 | 6 |
| 7 # Not defined when doing a pure GYP build, this lets the code key off of |
| 8 # GN-specific features (the last change target). |
| 9 defines = [ "GN_BUILD" ] |
| 10 |
7 static_library("gn_lib") { | 11 static_library("gn_lib") { |
8 sources = [ | 12 sources = [ |
9 "args.cc", | 13 "args.cc", |
10 "args.h", | 14 "args.h", |
11 "binary_target_generator.cc", | 15 "binary_target_generator.cc", |
12 "binary_target_generator.h", | 16 "binary_target_generator.h", |
13 "build_settings.cc", | 17 "build_settings.cc", |
14 "build_settings.h", | 18 "build_settings.h", |
15 "command_args.cc", | 19 "command_args.cc", |
16 "command_desc.cc", | 20 "command_desc.cc", |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 "toolchain_manager.h", | 147 "toolchain_manager.h", |
144 "trace.cc", | 148 "trace.cc", |
145 "trace.h", | 149 "trace.h", |
146 "value.cc", | 150 "value.cc", |
147 "value.h", | 151 "value.h", |
148 "value_extractors.cc", | 152 "value_extractors.cc", |
149 "value_extractors.h", | 153 "value_extractors.h", |
150 "variables.cc", | 154 "variables.cc", |
151 "variables.h", | 155 "variables.h", |
152 ] | 156 ] |
| 157 |
153 deps = [ | 158 deps = [ |
154 "//base", | 159 "//base", |
155 "//base/third_party/dynamic_annotations", | 160 "//base/third_party/dynamic_annotations", |
| 161 "//build/util:last_change", |
156 ] | 162 ] |
157 } | 163 } |
158 | 164 |
159 executable("gn") { | 165 executable("gn") { |
160 sources = [ | 166 sources = [ |
161 "gn_main.cc", | 167 "gn_main.cc", |
162 ] | 168 ] |
| 169 |
163 deps = [ | 170 deps = [ |
164 ":gn_lib", | 171 ":gn_lib", |
165 ] | 172 ] |
166 } | 173 } |
167 | 174 |
168 test("gn_unittests") { | 175 test("gn_unittests") { |
169 sources = [ | 176 sources = [ |
170 "escape_unittest.cc", | 177 "escape_unittest.cc", |
171 "file_template_unittest.cc", | 178 "file_template_unittest.cc", |
172 "filesystem_utils_unittest.cc", | 179 "filesystem_utils_unittest.cc", |
(...skipping 22 matching lines...) Expand all Loading... |
195 "//base:run_all_unittests", | 202 "//base:run_all_unittests", |
196 "//base:test_support_base", | 203 "//base:test_support_base", |
197 "//testing:gtest", | 204 "//testing:gtest", |
198 ] | 205 ] |
199 } | 206 } |
200 | 207 |
201 executable("generate_test_gn_data") { | 208 executable("generate_test_gn_data") { |
202 sources = [ "generate_test_gn_data.cc" ] | 209 sources = [ "generate_test_gn_data.cc" ] |
203 deps = [ "//base" ] | 210 deps = [ "//base" ] |
204 } | 211 } |
OLD | NEW |