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

Unified Diff: ui/ozone/BUILD.gn

Issue 285103002: Add GN build for parts of gpu and ozone. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/BUILD.gn ('k') | ui/ozone/ozone.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/BUILD.gn
diff --git a/ui/ozone/BUILD.gn b/ui/ozone/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..182a647b667108fe9d0d680f9172110271f709d7
--- /dev/null
+++ b/ui/ozone/BUILD.gn
@@ -0,0 +1,60 @@
+# Copyright 2014 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("//ui/ozone/ozone.gni")
+
+declare_args() {
+ # The default platform for Ozone.
+ ozone_platform = "test"
+}
+
+platform_list_file = "$target_gen_dir/ozone_platform_list.cc"
+
+component("ozone") {
+ sources = [
+ platform_list_file,
+ # common/chromeos files are excluded automatically when building with
+ # chromeos=0, by exclusion rules in filename_rules.gypi due to the
+ # "chromeos" folder name.
+ "common/chromeos/native_display_delegate_ozone.cc",
rjkroege 2014/05/15 16:08:54 so is nddOZ included when chromeos=0? (I can't rem
+ "common/chromeos/native_display_delegate_ozone.h",
+ "ime/fake_input_method_context_ozone.cc",
+ "ime/fake_input_method_context_ozone.h",
+ "ime/input_method_context_factory_ozone.cc",
+ "ime/input_method_context_factory_ozone.h",
+ "ozone_platform.cc",
+ "ozone_platform.h",
+ "ozone_switches.cc",
+ "ozone_switches.h",
+ ]
+
+ defines = [ "OZONE_IMPLEMENTATION" ]
+
+ deps = [
+ ":generate_ozone_platform_list",
+ "//base",
+ "//skia",
+ "//ui/base:ui_base",
+ "//ui/events",
+ "//ui/gfx",
+ "//ui/gfx/geometry",
+ "//ui/gfx/ozone",
+ ]
+}
+
+# TODO(GYP) implement the ozone platforms. This should check the various
+# ozone_platform_*flags, and add deps and add to the ozone_platforms list for
+# the script below.
+ozone_platforms = ""
+
+action("generate_ozone_platform_list") {
+ script = "generate_ozone_platform_list.py"
+ outputs = [ platform_list_file ]
+
+ args = [
+ "--output_file=" + rebase_path(platform_list_file, root_build_dir),
+ "--default=$ozone_platform",
+ ozone_platforms,
+ ]
+}
« no previous file with comments | « ui/gl/BUILD.gn ('k') | ui/ozone/ozone.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698