| 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 import("//testing/test.gni") | 5 import("//testing/test.gni") |
| 6 | 6 |
| 7 defines = [ "GN_BUILD" ] | 7 defines = [ "GN_BUILD" ] |
| 8 | 8 |
| 9 static_library("gn_lib") { | 9 static_library("gn_lib") { |
| 10 configs += [ "//build/config:precompiled_headers" ] | 10 configs += [ "//build/config:precompiled_headers" ] |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 outfile, | 207 outfile, |
| 208 ] | 208 ] |
| 209 | 209 |
| 210 args = [ | 210 args = [ |
| 211 rebase_path("//", root_build_dir), | 211 rebase_path("//", root_build_dir), |
| 212 rebase_path(outfile, root_build_dir), | 212 rebase_path(outfile, root_build_dir), |
| 213 "TOOLS_GN_LAST_COMMIT_POSITION_H_", | 213 "TOOLS_GN_LAST_COMMIT_POSITION_H_", |
| 214 ] | 214 ] |
| 215 } | 215 } |
| 216 | 216 |
| 217 # Note for Windows debugging: GN is super-multithreaded and uses a lot of STL. |
| 218 # Iterator debugging on Windows does locking for every access, which ends up |
| 219 # slowing down debug runtime from 0:36 to 9:40. If you want to run debug builds |
| 220 # of GN over the large Chrome build, you will want to set the arg: |
| 221 # enable_iterator_debugging = false |
| 217 executable("gn") { | 222 executable("gn") { |
| 218 sources = [ | 223 sources = [ |
| 219 "gn_main.cc", | 224 "gn_main.cc", |
| 220 ] | 225 ] |
| 221 | 226 |
| 222 deps = [ | 227 deps = [ |
| 223 ":gn_lib", | 228 ":gn_lib", |
| 224 ":last_commit_position", | 229 ":last_commit_position", |
| 225 "//base", | 230 "//base", |
| 226 ] | 231 ] |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 } | 309 } |
| 305 | 310 |
| 306 executable("generate_test_gn_data") { | 311 executable("generate_test_gn_data") { |
| 307 sources = [ | 312 sources = [ |
| 308 "generate_test_gn_data.cc", | 313 "generate_test_gn_data.cc", |
| 309 ] | 314 ] |
| 310 deps = [ | 315 deps = [ |
| 311 "//base", | 316 "//base", |
| 312 ] | 317 ] |
| 313 } | 318 } |
| OLD | NEW |