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

Side by Side Diff: ui/ozone/BUILD.gn

Issue 409163004: ozone: Fix GN build for ozone_egl_demo, ozone_unittests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove media/BUILD.gn diffs Created 6 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 | Annotate | Revision Log
« no previous file with comments | « ui/gl/BUILD.gn ('k') | ui/ozone/demo/BUILD.gn » ('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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//ui/ozone/ozone.gni") 5 import("//ui/ozone/ozone.gni")
6 6
7 declare_args() { 7 # The list of platforms that will be built.
8 # The default platform for Ozone. 8 ozone_platforms = []
9 ozone_platform = "test" 9
10 # Extra dependencies to pull into ui/ozone for built platforms.
11 ozone_platform_deps = []
12
13 # Extra dependencies to pull into ozone_unittests for built platforms.
14 ozone_platform_test_deps = []
15
16 if (ozone_platform_egltest) {
17 ozone_platforms += [ "egltest" ]
18 ozone_platform_deps += [ "platform/egltest" ]
19 }
20
21 if (ozone_platform_test) {
22 ozone_platforms += [ "test" ]
23 ozone_platform_deps += [ "platform/test" ]
24 }
25
26 if (ozone_platform_caca) {
27 ozone_platforms += [ "caca" ]
28 ozone_platform_deps += [ "platform/caca" ]
29 }
30
31 if (ozone_platform_dri) {
32 ozone_platforms += [ "dri" ]
33 ozone_platform_deps += [ "platform/dri" ]
34 ozone_platform_test_deps += [ "platform/dri:dri_unittests" ]
35 }
36
37 if (ozone_platform_gbm) {
38 ozone_platforms += [ "gbm" ]
39 ozone_platform_deps += [ "platform/dri:gbm" ]
10 } 40 }
11 41
12 platform_list_cc_file = "$target_gen_dir/platform_list.cc" 42 platform_list_cc_file = "$target_gen_dir/platform_list.cc"
13 platform_list_h_file = "$target_gen_dir/platform_list.h" 43 platform_list_h_file = "$target_gen_dir/platform_list.h"
14 platform_list_txt_file = "$target_gen_dir/platform_list.txt" 44 platform_list_txt_file = "$target_gen_dir/platform_list.txt"
15 constructor_list_cc_file = "$target_gen_dir/constructor_list.cc" 45 constructor_list_cc_file = "$target_gen_dir/constructor_list.cc"
16 46
17 # GYP version: ui/ozone/ozone.gyp:ozone_base 47 # GYP version: ui/ozone/ozone.gyp:ozone_base
18 component("ozone_base") { 48 component("ozone_base") {
19 sources = [ 49 sources = [
(...skipping 24 matching lines...) Expand all
44 74
45 component("ozone") { 75 component("ozone") {
46 sources = [ 76 sources = [
47 platform_list_cc_file, 77 platform_list_cc_file,
48 platform_list_h_file, 78 platform_list_h_file,
49 constructor_list_cc_file, 79 constructor_list_cc_file,
50 80
51 # common/chromeos files are excluded automatically when building with 81 # common/chromeos files are excluded automatically when building with
52 # chromeos=0, by exclusion rules in filename_rules.gypi due to the 82 # chromeos=0, by exclusion rules in filename_rules.gypi due to the
53 # "chromeos" folder name. 83 # "chromeos" folder name.
84 "common/chromeos/display_mode_proxy.cc",
85 "common/chromeos/display_mode_proxy.h",
86 "common/chromeos/display_snapshot_proxy.cc",
87 "common/chromeos/display_snapshot_proxy.h",
88 "common/chromeos/display_util.cc",
89 "common/chromeos/display_util.h",
54 "common/chromeos/native_display_delegate_ozone.cc", 90 "common/chromeos/native_display_delegate_ozone.cc",
55 "common/chromeos/native_display_delegate_ozone.h", 91 "common/chromeos/native_display_delegate_ozone.h",
56 "common/chromeos/touchscreen_device_manager_ozone.cc", 92 "common/chromeos/touchscreen_device_manager_ozone.cc",
57 "common/chromeos/touchscreen_device_manager_ozone.h", 93 "common/chromeos/touchscreen_device_manager_ozone.h",
58 "common/gpu/ozone_gpu_message_generator.cc", 94 "common/gpu/ozone_gpu_message_generator.cc",
59 "common/gpu/ozone_gpu_message_generator.h", 95 "common/gpu/ozone_gpu_message_generator.h",
60 "ozone_platform.cc", 96 "common/gpu/ozone_gpu_message_params.cc",
61 "ozone_platform.h", 97 "common/gpu/ozone_gpu_message_params.h",
62 "ozone_switches.cc", 98 "common/gpu/ozone_gpu_messages.h",
63 "ozone_switches.h", 99 "public/ozone_platform.cc",
100 "public/ozone_platform.h",
101 "public/ozone_switches.cc",
102 "public/ozone_switches.h",
64 "platform_selection.cc", 103 "platform_selection.cc",
65 "platform_selection.h", 104 "platform_selection.h",
66 ] 105 ]
67 106
68 defines = [ "OZONE_IMPLEMENTATION" ] 107 defines = [ "OZONE_IMPLEMENTATION" ]
69 108
70 deps = [ 109 deps = [
71 ":generate_constructor_list", 110 ":generate_constructor_list",
72 ":generate_ozone_platform_list", 111 ":generate_ozone_platform_list",
73 ":ozone_base", 112 ":ozone_base",
74 "//base", 113 "//base",
75 "//ipc", 114 "//ipc",
76 "//skia", 115 "//skia",
77 "//ui/events", 116 "//ui/events",
78 "//ui/events/ozone:events_ozone", 117 "//ui/events/ozone:events_ozone",
79 "//ui/gfx", 118 "//ui/gfx",
80 "//ui/gfx/geometry", 119 "//ui/gfx/geometry",
81 "//ui/gfx/ipc", 120 "//ui/gfx/ipc",
82 # TODO(GYP) the GYP version has a way to add additional dependencies via 121 # TODO(GYP) the GYP version has a way to add additional dependencies via
83 # build flags. 122 # build flags.
84 ] 123 ] + ozone_platform_deps
85 124
86 if (is_chromeos) { 125 if (is_chromeos) {
87 deps += [ "//ui/dusplay/types" ] 126 deps += [ "//ui/dusplay/types" ]
88 } 127 }
89 } 128 }
90 129
91 # TODO(GYP) implement the ozone platforms. This should check the various
92 # ozone_platform_*flags, and add deps and add to the ozone_platforms list for
93 # the script below.
94 ozone_platforms = ""
95
96 # GYP version: ui/ozone/ozone.gyp:generate_ozone_platform_list 130 # GYP version: ui/ozone/ozone.gyp:generate_ozone_platform_list
97 action("generate_ozone_platform_list") { 131 action("generate_ozone_platform_list") {
98 script = "generate_ozone_platform_list.py" 132 script = "generate_ozone_platform_list.py"
99 outputs = [ 133 outputs = [
100 platform_list_cc_file, 134 platform_list_cc_file,
101 platform_list_h_file, 135 platform_list_h_file,
102 platform_list_txt_file 136 platform_list_txt_file
103 ] 137 ]
104 138
105 args = [ 139 args = [
106 "--output_cc=" + rebase_path(platform_list_cc_file, root_build_dir), 140 "--output_cc=" + rebase_path(platform_list_cc_file, root_build_dir),
107 "--output_h=" + rebase_path(platform_list_h_file, root_build_dir), 141 "--output_h=" + rebase_path(platform_list_h_file, root_build_dir),
108 "--output_txt=" + rebase_path(platform_list_txt_file, root_build_dir), 142 "--output_txt=" + rebase_path(platform_list_txt_file, root_build_dir),
109 "--default=$ozone_platform", 143 "--default=$ozone_platform",
110 ozone_platforms, 144 ] + ozone_platforms
111 ]
112 } 145 }
113 146
114 # GYP version: ui/ozone/ozone.gyp:generate_constructor_list 147 # GYP version: ui/ozone/ozone.gyp:generate_constructor_list
115 action("generate_constructor_list") { 148 action("generate_constructor_list") {
116 script = "generate_constructor_list.py" 149 script = "generate_constructor_list.py"
117 150
118 source_prereqs = [ 151 source_prereqs = [
119 platform_list_txt_file, 152 platform_list_txt_file,
120 ] 153 ]
121 outputs = [ 154 outputs = [
122 constructor_list_cc_file, 155 constructor_list_cc_file,
123 ] 156 ]
124 157
125 args = [ 158 args = [
126 "--platform_list=" + rebase_path(platform_list_txt_file, root_build_dir), 159 "--platform_list=" + rebase_path(platform_list_txt_file, root_build_dir),
127 "--output_cc=" + rebase_path(constructor_list_cc_file, root_build_dir), 160 "--output_cc=" + rebase_path(constructor_list_cc_file, root_build_dir),
128 "--namespace=ui", 161 "--namespace=ui",
129 "--typename=OzonePlatform", 162 "--typename=OzonePlatform",
130 "--include=ui/ozone/ozone_platform.h", 163 "--include=\"ui/ozone/public/ozone_platform.h\"",
131 ] 164 ]
132 165
133 deps = [ ":generate_ozone_platform_list" ] 166 deps = [ ":generate_ozone_platform_list" ]
134 } 167 }
135 168
136 # TODO(GYP) ozone_unittests 169 test("ozone_unittests") {
137 # TODO(GYP) platform_caca, dri, other test stuff. 170 sources = [
171 "run_all_unittests.cc",
172 ]
173
174 deps = [
175 "//base/test:test_support",
176 "//testing/gtest",
177 ] + ozone_platform_test_deps
178 }
OLDNEW
« no previous file with comments | « ui/gl/BUILD.gn ('k') | ui/ozone/demo/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698