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

Side by Side Diff: BUILD.gn

Issue 2205903004: GN: get echo-headers sources via exec_script (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: still needed for Mac Created 4 years, 4 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
« no previous file with comments | « no previous file | gn/echo_headers.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 Google Inc. 1 # Copyright 2016 Google Inc.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 declare_args() { 6 declare_args() {
7 } 7 }
8 8
9 skia_public_includes = [ 9 skia_public_includes = [
10 "include/android", 10 "include/android",
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 "src/ports/SkImageGeneratorCG.cpp", 278 "src/ports/SkImageGeneratorCG.cpp",
279 ] 279 ]
280 libs += [ "ApplicationServices.framework" ] 280 libs += [ "ApplicationServices.framework" ]
281 } 281 }
282 282
283 if (is_fuchsia) { 283 if (is_fuchsia) {
284 sources += [ "src/ports/SkFontMgr_empty_factory.cpp" ] 284 sources += [ "src/ports/SkFontMgr_empty_factory.cpp" ]
285 } 285 }
286 } 286 }
287 287
288 skia_h_headers = exec_script("gyp/find.py",
289 [ "*.h" ] + rebase_path(skia_public_includes),
290 "list lines",
291 []) -
292 [
293 rebase_path("include/gpu/gl/GrGLConfig_chrome.h"),
294 rebase_path("include/gpu/vk/GrVkBackendContext.h"),
295 rebase_path("include/gpu/vk/GrVkDefines.h"),
296 rebase_path("include/gpu/vk/GrVkInterface.h"),
297 rebase_path("include/gpu/vk/GrVkTypes.h"),
298 rebase_path("include/ports/SkFontMgr_fontconfig.h"),
299 ]
300
288 action("skia.h") { 301 action("skia.h") {
289 script = "gn/echo_headers.py" 302 script = "gn/echo_headers.py"
290 args = [ rebase_path("$target_gen_dir/skia.h", root_build_dir) ] + 303 args = [ rebase_path("$target_gen_dir/skia.h", root_build_dir) ] +
291 rebase_path(skia_public_includes, root_build_dir) 304 rebase_path(skia_h_headers, root_build_dir)
292 inputs = [ ".git/logs/HEAD" ] # ~~> Run any time GIT state changes.
293 outputs = [ 305 outputs = [
294 "$target_gen_dir/skia.h", 306 "$target_gen_dir/skia.h",
295 ] 307 ]
296 } 308 }
297 309
298 executable("fiddle") { 310 executable("fiddle") {
299 include_dirs = [ "$target_gen_dir" ] 311 include_dirs = [ "$target_gen_dir" ]
300 libs = [] 312 libs = []
301 if (is_linux) { 313 if (is_linux) {
302 libs += [ "OSMesa" ] 314 libs += [ "OSMesa" ]
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 "tools/sk_tool_utils_font.cpp", 406 "tools/sk_tool_utils_font.cpp",
395 "tools/timer/Timer.cpp", 407 "tools/timer/Timer.cpp",
396 ] 408 ]
397 deps = [ 409 deps = [
398 ":flags", 410 ":flags",
399 ] 411 ]
400 } 412 }
401 413
402 gm_sources = exec_script("gyp/find.py", 414 gm_sources = exec_script("gyp/find.py",
403 [ 415 [
416 "*.c*",
404 rebase_path("gm"), 417 rebase_path("gm"),
405 "*.c*",
406 ], 418 ],
407 "list lines", 419 "list lines",
408 []) 420 [])
409 test_lib("gm") { 421 test_lib("gm") {
410 public_include_dirs = [ "gm" ] 422 public_include_dirs = [ "gm" ]
411 sources = gm_sources 423 sources = gm_sources
412 deps = [ 424 deps = [
413 ":gpu_tool_utils", 425 ":gpu_tool_utils",
414 ":skia", 426 ":skia",
415 ":tool_utils", 427 ":tool_utils",
416 ] 428 ]
417 } 429 }
418 430
419 bench_sources = exec_script("gyp/find.py", 431 bench_sources = exec_script("gyp/find.py",
420 [ 432 [
433 "*.c*",
421 rebase_path("bench"), 434 rebase_path("bench"),
422 "*.c*",
423 ], 435 ],
424 "list lines", 436 "list lines",
425 []) 437 [])
426 438
427 test_lib("bench") { 439 test_lib("bench") {
428 public_include_dirs = [ "bench" ] 440 public_include_dirs = [ "bench" ]
429 sources = bench_sources 441 sources = bench_sources
430 sources -= [ 442 sources -= [
431 rebase_path("bench/nanobench.cpp"), 443 rebase_path("bench/nanobench.cpp"),
432 rebase_path("bench/nanobenchAndroid.cpp"), 444 rebase_path("bench/nanobenchAndroid.cpp"),
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 ":flags", 495 ":flags",
484 ":gm", 496 ":gm",
485 ":gpu_tool_utils", 497 ":gpu_tool_utils",
486 ":skia", 498 ":skia",
487 ":tool_utils", 499 ":tool_utils",
488 "//third_party/jsoncpp", 500 "//third_party/jsoncpp",
489 ] 501 ]
490 testonly = true 502 testonly = true
491 } 503 }
492 } 504 }
OLDNEW
« no previous file with comments | « no previous file | gn/echo_headers.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698