OLD | NEW |
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 # The list of platforms that will be built. | 7 # The list of platforms that will be built. |
8 ozone_platforms = [] | 8 ozone_platforms = [] |
9 | 9 |
10 # Extra dependencies to pull into ui/ozone for built platforms. | 10 # Extra dependencies to pull into ui/ozone for built platforms. |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 ] + ozone_platforms | 143 ] + ozone_platforms |
144 } | 144 } |
145 | 145 |
146 # GYP version: ui/ozone/ozone.gyp:generate_constructor_list | 146 # GYP version: ui/ozone/ozone.gyp:generate_constructor_list |
147 action("generate_constructor_list") { | 147 action("generate_constructor_list") { |
148 script = "generate_constructor_list.py" | 148 script = "generate_constructor_list.py" |
149 | 149 |
150 inputs = [ | 150 inputs = [ |
151 platform_list_txt_file, | 151 platform_list_txt_file, |
152 ] | 152 ] |
153 outputs = [ constructor_list_cc_file ] | 153 outputs = [ |
| 154 constructor_list_cc_file, |
| 155 ] |
154 | 156 |
155 args = [ | 157 args = [ |
156 "--platform_list=" + rebase_path(platform_list_txt_file, root_build_dir), | 158 "--platform_list=" + rebase_path(platform_list_txt_file, root_build_dir), |
157 "--output_cc=" + rebase_path(constructor_list_cc_file, root_build_dir), | 159 "--output_cc=" + rebase_path(constructor_list_cc_file, root_build_dir), |
158 "--namespace=ui", | 160 "--namespace=ui", |
159 "--typename=OzonePlatform", | 161 "--typename=OzonePlatform", |
160 "--include=\"ui/ozone/public/ozone_platform.h\"", | 162 "--include=\"ui/ozone/public/ozone_platform.h\"", |
161 ] | 163 ] |
162 | 164 |
163 deps = [ | 165 deps = [ |
164 ":generate_ozone_platform_list", | 166 ":generate_ozone_platform_list", |
165 ] | 167 ] |
166 } | 168 } |
167 | 169 |
168 test("ozone_unittests") { | 170 test("ozone_unittests") { |
169 sources = [ | 171 sources = [ |
170 "run_all_unittests.cc", | 172 "run_all_unittests.cc", |
171 ] | 173 ] |
172 | 174 |
173 deps = [ | 175 deps = [ |
174 "//base/test:test_support", | 176 "//base/test:test_support", |
175 "//testing/gtest", | 177 "//testing/gtest", |
176 ] + ozone_platform_test_deps | 178 ] + ozone_platform_test_deps |
177 } | 179 } |
OLD | NEW |