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

Side by Side Diff: ui/ozone/ozone.gyp

Issue 313963007: ozone: Implement PlatformObject<T> for platform-specific objects (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang-format Created 6 years, 6 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
OLDNEW
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 14 matching lines...) Expand all
25 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry', 25 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
26 '<(DEPTH)/ui/gfx/ozone/gfx_ozone.gyp:gfx_ozone', 26 '<(DEPTH)/ui/gfx/ozone/gfx_ozone.gyp:gfx_ozone',
27 '<(DEPTH)/skia/skia.gyp:skia', 27 '<(DEPTH)/skia/skia.gyp:skia',
28 '<@(external_ozone_platform_deps)', 28 '<@(external_ozone_platform_deps)',
29 '<@(internal_ozone_platform_deps)', 29 '<@(internal_ozone_platform_deps)',
30 ], 30 ],
31 'defines': [ 31 'defines': [
32 'OZONE_IMPLEMENTATION', 32 'OZONE_IMPLEMENTATION',
33 ], 33 ],
34 'variables': { 34 'variables': {
35 'platform_list_file': '<(SHARED_INTERMEDIATE_DIR)/ui/ozone/ozone_platfor m_list.cc', 35 'platform_list_cc_file': '<(INTERMEDIATE_DIR)/ui/ozone/platform_list.cc' ,
36 'platform_list_h_file': '<(SHARED_INTERMEDIATE_DIR)/ui/ozone/platform_li st.h',
37 'platform_list_txt_file': '<(SHARED_INTERMEDIATE_DIR)/ui/ozone/platform_ list.txt',
38 'constructor_list_cc_file': '<(INTERMEDIATE_DIR)/ui/ozone/constructor_li st.cc',
36 'ozone_platforms': [ 39 'ozone_platforms': [
37 '<@(external_ozone_platforms)', 40 '<@(external_ozone_platforms)',
38 '<@(internal_ozone_platforms)', 41 '<@(internal_ozone_platforms)',
39 ], 42 ],
40 }, 43 },
44 'include_dirs': [
45 '<(SHARED_INTERMEDIATE_DIR)',
46 ],
41 'sources': [ 47 'sources': [
42 '<(platform_list_file)', 48 '<(platform_list_cc_file)',
49 '<(platform_list_h_file)',
50 '<(constructor_list_cc_file)',
51
43 # common/chromeos files are excluded automatically when building with 52 # common/chromeos files are excluded automatically when building with
44 # chromeos=0, by exclusion rules in filename_rules.gypi due to the 53 # chromeos=0, by exclusion rules in filename_rules.gypi due to the
45 # 'chromeos' folder name. 54 # 'chromeos' folder name.
46 'common/chromeos/native_display_delegate_ozone.cc', 55 'common/chromeos/native_display_delegate_ozone.cc',
47 'common/chromeos/native_display_delegate_ozone.h', 56 'common/chromeos/native_display_delegate_ozone.h',
48 'common/chromeos/touchscreen_device_manager_ozone.cc', 57 'common/chromeos/touchscreen_device_manager_ozone.cc',
49 'common/chromeos/touchscreen_device_manager_ozone.h', 58 'common/chromeos/touchscreen_device_manager_ozone.h',
50 'ozone_platform.cc', 59 'ozone_platform.cc',
51 'ozone_platform.h', 60 'ozone_platform.h',
52 'ozone_switches.cc', 61 'ozone_switches.cc',
53 'ozone_switches.h', 62 'ozone_switches.h',
63 'platform_selection.cc',
64 'platform_selection.h',
54 '<@(external_ozone_platform_files)', 65 '<@(external_ozone_platform_files)',
55 ], 66 ],
56 'actions': [ 67 'actions': [
57 { 68 {
58 'action_name': 'generate_ozone_platform_list', 69 'action_name': 'generate_ozone_platform_list',
59 'variables': { 70 'variables': {
60 'generator_path': 'generate_ozone_platform_list.py', 71 'generator_path': 'generate_ozone_platform_list.py',
61 }, 72 },
62 'inputs': [ 73 'inputs': [
63 '<(generator_path)', 74 '<(generator_path)',
64 ], 75 ],
65 'outputs': [ 76 'outputs': [
66 '<(platform_list_file)', 77 '<(platform_list_cc_file)',
78 '<(platform_list_h_file)',
79 '<(platform_list_txt_file)',
67 ], 80 ],
68 'action': [ 81 'action': [
69 'python', 82 'python',
70 '<(generator_path)', 83 '<(generator_path)',
71 '--output_file=<(platform_list_file)', 84 '--output_cc=<(platform_list_cc_file)',
85 '--output_h=<(platform_list_h_file)',
86 '--output_txt=<(platform_list_txt_file)',
72 '--default=<(ozone_platform)', 87 '--default=<(ozone_platform)',
73 '<@(ozone_platforms)', 88 '<@(ozone_platforms)',
74 ], 89 ],
75 }, 90 },
91 {
92 'action_name': 'generate_constructor_list',
93 'variables': {
94 'generator_path': 'generate_constructor_list.py',
95 },
96 'inputs': [
97 '<(generator_path)',
98 '<(platform_list_txt_file)',
99 ],
100 'outputs': [
101 '<(constructor_list_cc_file)',
102 ],
103 'action': [
104 'python',
105 '<(generator_path)',
106 '--platform_list=<(platform_list_txt_file)',
107 '--output_cc=<(constructor_list_cc_file)',
108 '--namespace=ui',
109 '--typename=OzonePlatform',
110 '--include="ui/ozone/ozone_platform.h"'
111 ],
112 },
76 ], 113 ],
77 'conditions': [ 114 'conditions': [
78 ['use_udev == 0', { 115 ['use_udev == 0', {
79 'sources/': [ 116 'sources/': [
80 ['exclude', '_udev\\.(h|cc)$'], 117 ['exclude', '_udev\\.(h|cc)$'],
81 ], 118 ],
82 }], 119 }],
83 ['chromeos==1', { 120 ['chromeos==1', {
84 'dependencies': [ 121 'dependencies': [
85 '<(DEPTH)/ui/display/display.gyp:display_types', 122 '<(DEPTH)/ui/display/display.gyp:display_types',
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 'platform/dri/gbm.gypi', 161 'platform/dri/gbm.gypi',
125 ], 162 ],
126 }], 163 }],
127 ['<(ozone_platform_test) == 1', { 164 ['<(ozone_platform_test) == 1', {
128 'includes': [ 165 'includes': [
129 'platform/test/test.gypi', 166 'platform/test/test.gypi',
130 ], 167 ],
131 }], 168 }],
132 ], 169 ],
133 } 170 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698