Add remaining trivial targets for the Linux GN build
This patch adds a whole bunch of small targets that
had either already been done but weren't mentioned
in the 'gn_all' group, or needed to be done.
In theory this should produce no change on any platform
other than Linux, except for one small windows target.
[email protected]
[email protected]
BUG=432959
CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:android_chromium_gn_compile_dbg,android_chromium_gn_compile_rel;tryserver.chromium.win:win8_chromium_gn_rel,win8_chromium_gn_dbg;tryserver.chromium.mac:mac_chromium_gn_rel,mac_chromium_gn_dbg
Review URL: https://codereview.chromium.org/975123003
Cr-Commit-Position: refs/heads/master@{#319580}
diff --git a/gpu/BUILD.gn b/gpu/BUILD.gn
index 830464e9..7c9d732 100644
--- a/gpu/BUILD.gn
+++ b/gpu/BUILD.gn
@@ -34,6 +34,7 @@
# gpu/skia_bindings/skia_bindings.gyp:gpu_skia_bindings => //gpu/skia_bindings
import("//testing/test.gni")
+import("//build/config/ui.gni")
component("gpu") {
public_deps = [
@@ -282,3 +283,25 @@
"//third_party/angle:translator_static",
]
}
+
+if (is_linux && !is_chromeos && target_cpu != "arm" && use_x11) {
+ executable("compositor_model_bench") {
+ sources = [
+ "tools/compositor_model_bench/compositor_model_bench.cc",
+ "tools/compositor_model_bench/forward_render_model.cc",
+ "tools/compositor_model_bench/render_model_utils.cc",
+ "tools/compositor_model_bench/render_models.cc",
+ "tools/compositor_model_bench/render_tree.cc",
+ "tools/compositor_model_bench/shaders.cc",
+ ]
+
+ libs = [ "GL" ]
+
+ configs += [ "//build/config/linux:x11" ]
+
+ deps = [
+ "//base",
+ "//ui/gl",
+ ]
+ }
+}