OLD | NEW |
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 import("gn/shared_sources.gni") | 6 import("gn/shared_sources.gni") |
7 | 7 |
8 declare_args() { | 8 declare_args() { |
9 skia_enable_tools = !is_fuchsia && !is_component_build | 9 skia_enable_tools = !is_fuchsia && !is_component_build |
10 | 10 |
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 | 547 |
548 action("skia.h") { | 548 action("skia.h") { |
549 script = "gn/echo_headers.py" | 549 script = "gn/echo_headers.py" |
550 args = [ rebase_path("$target_gen_dir/skia.h", root_build_dir) ] + | 550 args = [ rebase_path("$target_gen_dir/skia.h", root_build_dir) ] + |
551 rebase_path(skia_h_headers, target_gen_dir) | 551 rebase_path(skia_h_headers, target_gen_dir) |
552 outputs = [ | 552 outputs = [ |
553 "$target_gen_dir/skia.h", | 553 "$target_gen_dir/skia.h", |
554 ] | 554 ] |
555 } | 555 } |
556 | 556 |
557 executable("fiddle") { | 557 if (target_cpu == "x64") { |
558 include_dirs = [ "$target_gen_dir" ] | 558 # Our bots only have 64-bit libOSMesa installed. |
559 libs = [] | 559 # TODO: worth fixing? |
560 if (is_linux) { | 560 executable("fiddle") { |
561 libs += [ "OSMesa" ] | 561 include_dirs = [ "$target_gen_dir" ] |
| 562 libs = [] |
| 563 if (is_linux) { |
| 564 libs += [ "OSMesa" ] |
| 565 } |
| 566 |
| 567 sources = [ |
| 568 "src/images/SkForceLinking.cpp", |
| 569 "tools/fiddle/draw.cpp", |
| 570 "tools/fiddle/fiddle_main.cpp", |
| 571 ] |
| 572 deps = [ |
| 573 ":skia", |
| 574 ":skia.h", |
| 575 ] |
562 } | 576 } |
563 | |
564 sources = [ | |
565 "src/images/SkForceLinking.cpp", | |
566 "tools/fiddle/draw.cpp", | |
567 "tools/fiddle/fiddle_main.cpp", | |
568 ] | |
569 deps = [ | |
570 ":skia", | |
571 ":skia.h", | |
572 ] | |
573 } | 577 } |
574 | 578 |
575 # Targets guarded by skia_enable_tools may use //third_party freely. | 579 # Targets guarded by skia_enable_tools may use //third_party freely. |
576 if (skia_enable_tools) { | 580 if (skia_enable_tools) { |
577 template("test_lib") { | 581 template("test_lib") { |
578 config(target_name + "_config") { | 582 config(target_name + "_config") { |
579 include_dirs = invoker.public_include_dirs | 583 include_dirs = invoker.public_include_dirs |
580 } | 584 } |
581 source_set(target_name) { | 585 source_set(target_name) { |
582 forward_variables_from(invoker, "*", [ "public_include_dirs" ]) | 586 forward_variables_from(invoker, "*", [ "public_include_dirs" ]) |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
835 sources = [ | 839 sources = [ |
836 "tools/SkShaper_primitive.cpp", | 840 "tools/SkShaper_primitive.cpp", |
837 "tools/using_skia_and_harfbuzz.cpp", | 841 "tools/using_skia_and_harfbuzz.cpp", |
838 ] | 842 ] |
839 deps = [ | 843 deps = [ |
840 ":skia", | 844 ":skia", |
841 ] | 845 ] |
842 testonly = true | 846 testonly = true |
843 } | 847 } |
844 } | 848 } |
OLD | NEW |