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 declare_args() { | 7 declare_args() { |
8 # The default platform for Ozone. | 8 # The default platform for Ozone. |
9 ozone_platform = "test" | 9 ozone_platform = "test" |
10 } | 10 } |
11 | 11 |
12 platform_list_file = "$target_gen_dir/ozone_platform_list.cc" | 12 platform_list_file = "$target_gen_dir/ozone_platform_list.cc" |
13 | 13 |
14 component("ozone") { | 14 component("ozone") { |
15 sources = [ | 15 sources = [ |
16 platform_list_file, | 16 platform_list_file, |
17 # common/chromeos files are excluded automatically when building with | 17 # common/chromeos files are excluded automatically when building with |
18 # chromeos=0, by exclusion rules in filename_rules.gypi due to the | 18 # chromeos=0, by exclusion rules in filename_rules.gypi due to the |
19 # "chromeos" folder name. | 19 # "chromeos" folder name. |
20 "common/chromeos/native_display_delegate_ozone.cc", | 20 "common/chromeos/native_display_delegate_ozone.cc", |
21 "common/chromeos/native_display_delegate_ozone.h", | 21 "common/chromeos/native_display_delegate_ozone.h", |
22 "ime/fake_input_method_context_ozone.cc", | |
23 "ime/fake_input_method_context_ozone.h", | |
24 "ime/input_method_context_factory_ozone.cc", | |
25 "ime/input_method_context_factory_ozone.h", | |
26 "ozone_platform.cc", | 22 "ozone_platform.cc", |
27 "ozone_platform.h", | 23 "ozone_platform.h", |
28 "ozone_switches.cc", | 24 "ozone_switches.cc", |
29 "ozone_switches.h", | 25 "ozone_switches.h", |
30 ] | 26 ] |
31 | 27 |
32 defines = [ "OZONE_IMPLEMENTATION" ] | 28 defines = [ "OZONE_IMPLEMENTATION" ] |
33 | 29 |
34 deps = [ | 30 deps = [ |
35 ":generate_ozone_platform_list", | 31 ":generate_ozone_platform_list", |
(...skipping 15 matching lines...) Expand all Loading... |
51 action("generate_ozone_platform_list") { | 47 action("generate_ozone_platform_list") { |
52 script = "generate_ozone_platform_list.py" | 48 script = "generate_ozone_platform_list.py" |
53 outputs = [ platform_list_file ] | 49 outputs = [ platform_list_file ] |
54 | 50 |
55 args = [ | 51 args = [ |
56 "--output_file=" + rebase_path(platform_list_file, root_build_dir), | 52 "--output_file=" + rebase_path(platform_list_file, root_build_dir), |
57 "--default=$ozone_platform", | 53 "--default=$ozone_platform", |
58 ozone_platforms, | 54 ozone_platforms, |
59 ] | 55 ] |
60 } | 56 } |
OLD | NEW |