summaryrefslogtreecommitdiffstats
path: root/gpu/tools
diff options
context:
space:
mode:
authortfarina <tfarina@chromium.org>2015-03-25 13:06:59 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-25 20:07:54 +0000
commit8944e6f2b74d80aba842b29e41de404f1ad2efab (patch)
tree13589efb461dbfc9e04184e70635f001dc9d8426 /gpu/tools
parent764a6e3d09a5e9043f72db15cca606d4e5467941 (diff)
downloadchromium_src-8944e6f2b74d80aba842b29e41de404f1ad2efab.zip
chromium_src-8944e6f2b74d80aba842b29e41de404f1ad2efab.tar.gz
chromium_src-8944e6f2b74d80aba842b29e41de404f1ad2efab.tar.bz2
Have compositor_model_bench target near its source files.
It is more traditional (and recommended) to have GN targets closer to the source files it builds. BUG=432959 TEST=gn gen out-gn && ninja -C out-gn compositor_model_bench R=sievers@chromium.org, dpranke@chromium.org Review URL: https://codereview.chromium.org/1032193002 Cr-Commit-Position: refs/heads/master@{#322226}
Diffstat (limited to 'gpu/tools')
-rw-r--r--gpu/tools/compositor_model_bench/BUILD.gn28
-rw-r--r--gpu/tools/tools.gyp2
2 files changed, 29 insertions, 1 deletions
diff --git a/gpu/tools/compositor_model_bench/BUILD.gn b/gpu/tools/compositor_model_bench/BUILD.gn
new file mode 100644
index 0000000..8eadc6b
--- /dev/null
+++ b/gpu/tools/compositor_model_bench/BUILD.gn
@@ -0,0 +1,28 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//build/config/ui.gni")
+
+if (is_linux && !is_chromeos && target_cpu != "arm" && use_x11) {
+ # GYP version: //gpu/tools/tools.gyp:compositor_model_bench
+ executable("compositor_model_bench") {
+ sources = [
+ "compositor_model_bench.cc",
+ "forward_render_model.cc",
+ "render_model_utils.cc",
+ "render_models.cc",
+ "render_tree.cc",
+ "shaders.cc",
+ ]
+
+ libs = [ "GL" ]
+
+ configs += [ "//build/config/linux:x11" ]
+
+ deps = [
+ "//base",
+ "//ui/gl",
+ ]
+ }
+}
diff --git a/gpu/tools/tools.gyp b/gpu/tools/tools.gyp
index 4ea41b7..342a769 100644
--- a/gpu/tools/tools.gyp
+++ b/gpu/tools/tools.gyp
@@ -12,7 +12,7 @@
['OS == "linux" and target_arch != "arm" and use_x11==1', {
'targets': [
{
- # GN: //gpu:compositor_model_bench
+ # GN version: //gpu/tools/compositor_model_bench
'target_name': 'compositor_model_bench',
'type': 'executable',
'dependencies': [