OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 'external_ozone_platforms': [], | 8 'external_ozone_platforms': [], |
9 'external_ozone_platform_files': [], | 9 'external_ozone_platform_files': [], |
10 'external_ozone_platform_deps': [], | 10 'external_ozone_platform_deps': [], |
(...skipping 12 matching lines...) Expand all Loading... |
23 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry', | 23 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry', |
24 '<(DEPTH)/ui/gfx/ozone/gfx_ozone.gyp:gfx_ozone', | 24 '<(DEPTH)/ui/gfx/ozone/gfx_ozone.gyp:gfx_ozone', |
25 '<(DEPTH)/skia/skia.gyp:skia', | 25 '<(DEPTH)/skia/skia.gyp:skia', |
26 '<@(external_ozone_platform_deps)', | 26 '<@(external_ozone_platform_deps)', |
27 '<@(internal_ozone_platform_deps)', | 27 '<@(internal_ozone_platform_deps)', |
28 ], | 28 ], |
29 'defines': [ | 29 'defines': [ |
30 'OZONE_IMPLEMENTATION', | 30 'OZONE_IMPLEMENTATION', |
31 ], | 31 ], |
32 'variables': { | 32 'variables': { |
33 'platform_list_file': '<(SHARED_INTERMEDIATE_DIR)/ui/ozone/ozone_platfor
m_list.cc', | 33 'platform_list_cc_file': '<(INTERMEDIATE_DIR)/ui/ozone/platform_list.cc'
, |
| 34 'platform_list_h_file': '<(SHARED_INTERMEDIATE_DIR)/ui/ozone/platform_li
st.h', |
| 35 'platform_list_txt_file': '<(SHARED_INTERMEDIATE_DIR)/ui/ozone/platform_
list.txt', |
| 36 'constructor_list_cc_file': '<(INTERMEDIATE_DIR)/ui/ozone/constructor_li
st.cc', |
34 'ozone_platforms': [ | 37 'ozone_platforms': [ |
35 '<@(external_ozone_platforms)', | 38 '<@(external_ozone_platforms)', |
36 '<@(internal_ozone_platforms)', | 39 '<@(internal_ozone_platforms)', |
37 ], | 40 ], |
38 }, | 41 }, |
| 42 'include_dirs': [ |
| 43 '<(SHARED_INTERMEDIATE_DIR)', |
| 44 ], |
39 'sources': [ | 45 'sources': [ |
40 '<(platform_list_file)', | 46 '<(platform_list_cc_file)', |
| 47 '<(platform_list_h_file)', |
| 48 '<(constructor_list_cc_file)', |
| 49 |
41 # common/chromeos files are excluded automatically when building with | 50 # common/chromeos files are excluded automatically when building with |
42 # chromeos=0, by exclusion rules in filename_rules.gypi due to the | 51 # chromeos=0, by exclusion rules in filename_rules.gypi due to the |
43 # 'chromeos' folder name. | 52 # 'chromeos' folder name. |
44 'common/chromeos/native_display_delegate_ozone.cc', | 53 'common/chromeos/native_display_delegate_ozone.cc', |
45 'common/chromeos/native_display_delegate_ozone.h', | 54 'common/chromeos/native_display_delegate_ozone.h', |
46 'ozone_platform.cc', | 55 'ozone_platform.cc', |
47 'ozone_platform.h', | 56 'ozone_platform.h', |
48 'ozone_switches.cc', | 57 'ozone_switches.cc', |
49 'ozone_switches.h', | 58 'ozone_switches.h', |
| 59 'platform_selection.cc', |
| 60 'platform_selection.h', |
50 '<@(external_ozone_platform_files)', | 61 '<@(external_ozone_platform_files)', |
51 ], | 62 ], |
52 'actions': [ | 63 'actions': [ |
53 { | 64 { |
54 'action_name': 'generate_ozone_platform_list', | 65 'action_name': 'generate_ozone_platform_list', |
55 'variables': { | 66 'variables': { |
56 'generator_path': 'generate_ozone_platform_list.py', | 67 'generator_path': 'generate_ozone_platform_list.py', |
57 }, | 68 }, |
58 'inputs': [ | 69 'inputs': [ |
59 '<(generator_path)', | 70 '<(generator_path)', |
60 ], | 71 ], |
61 'outputs': [ | 72 'outputs': [ |
62 '<(platform_list_file)', | 73 '<(platform_list_cc_file)', |
| 74 '<(platform_list_h_file)', |
| 75 '<(platform_list_txt_file)', |
63 ], | 76 ], |
64 'action': [ | 77 'action': [ |
65 'python', | 78 'python', |
66 '<(generator_path)', | 79 '<(generator_path)', |
67 '--output_file=<(platform_list_file)', | 80 '--output_cc=<(platform_list_cc_file)', |
| 81 '--output_h=<(platform_list_h_file)', |
| 82 '--output_txt=<(platform_list_txt_file)', |
68 '--default=<(ozone_platform)', | 83 '--default=<(ozone_platform)', |
69 '<@(ozone_platforms)', | 84 '<@(ozone_platforms)', |
70 ], | 85 ], |
71 }, | 86 }, |
| 87 { |
| 88 'action_name': 'generate_constructor_list', |
| 89 'variables': { |
| 90 'generator_path': 'generate_constructor_list.py', |
| 91 }, |
| 92 'inputs': [ |
| 93 '<(generator_path)', |
| 94 '<(platform_list_txt_file)', |
| 95 ], |
| 96 'outputs': [ |
| 97 '<(constructor_list_cc_file)', |
| 98 ], |
| 99 'action': [ |
| 100 'python', |
| 101 '<(generator_path)', |
| 102 '--platform_list=<(platform_list_txt_file)', |
| 103 '--output_cc=<(constructor_list_cc_file)', |
| 104 '--namespace=ui', |
| 105 '--typename=OzonePlatform', |
| 106 '--include="ui/ozone/ozone_platform.h"' |
| 107 ], |
| 108 }, |
72 ], | 109 ], |
73 'conditions': [ | 110 'conditions': [ |
74 ['use_udev == 0', { | 111 ['use_udev == 0', { |
75 'sources/': [ | 112 'sources/': [ |
76 ['exclude', '_udev\\.(h|cc)$'], | 113 ['exclude', '_udev\\.(h|cc)$'], |
77 ], | 114 ], |
78 }], | 115 }], |
79 ['chromeos==1', { | 116 ['chromeos==1', { |
80 'dependencies': [ | 117 'dependencies': [ |
81 '<(DEPTH)/ui/display/display.gyp:display_types', | 118 '<(DEPTH)/ui/display/display.gyp:display_types', |
(...skipping 18 matching lines...) Expand all Loading... |
100 'platform/egltest/egltest.gypi', | 137 'platform/egltest/egltest.gypi', |
101 ], | 138 ], |
102 }], | 139 }], |
103 ['<(ozone_platform_test) == 1', { | 140 ['<(ozone_platform_test) == 1', { |
104 'includes': [ | 141 'includes': [ |
105 'platform/test/test.gypi', | 142 'platform/test/test.gypi', |
106 ], | 143 ], |
107 }], | 144 }], |
108 ], | 145 ], |
109 } | 146 } |
OLD | NEW |