OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//ui/ozone/ozone.gni") |
| 6 |
| 7 platform_list_file = "$target_gen_dir/ozone_platform_list.cc" |
| 8 |
| 9 component("ozone") { |
| 10 sources = [ |
| 11 platform_list_file, |
| 12 # common/chromeos files are excluded automatically when building with |
| 13 # chromeos=0, by exclusion rules in filename_rules.gypi due to the |
| 14 # "chromeos" folder name. |
| 15 "common/chromeos/native_display_delegate_ozone.cc", |
| 16 "common/chromeos/native_display_delegate_ozone.h", |
| 17 "ime/fake_input_method_context_ozone.cc", |
| 18 "ime/fake_input_method_context_ozone.h", |
| 19 "ime/input_method_context_factory_ozone.cc", |
| 20 "ime/input_method_context_factory_ozone.h", |
| 21 "ozone_platform.cc", |
| 22 "ozone_platform.h", |
| 23 "ozone_switches.cc", |
| 24 "ozone_switches.h", |
| 25 ] |
| 26 |
| 27 defines = [ "OZONE_IMPLEMENTATION" ] |
| 28 |
| 29 deps = [ |
| 30 ":generate_ozone_platform_list", |
| 31 "//base", |
| 32 "//skia", |
| 33 "//ui/base:ui_base", |
| 34 "//ui/events", |
| 35 "//ui/gfx", |
| 36 "//ui/gfx/geometry", |
| 37 "//ui/gfx/ozone", |
| 38 ] |
| 39 } |
| 40 |
| 41 # TODO(GYP) implement the ozone platforms. This should check the various |
| 42 # ozone_platform_*flags, and add deps and add to the ozone_platforms list for |
| 43 # the script below. |
| 44 ozone_platforms = "" |
| 45 |
| 46 action("generate_ozone_platform_list") { |
| 47 script = "generate_ozone_platform_list.py" |
| 48 outputs = [ platform_list_file ] |
| 49 |
| 50 args = [ |
| 51 "--output_file=" + rebase_path(platform_list_file, root_build_dir), |
| 52 "--default=$ozone_platform", |
| 53 ozone_platforms, |
| 54 ] |
| 55 } |
OLD | NEW |