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

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

Issue 44053005: Implement --ozone-platform flag to select OzonePlatform implementation at runtime (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years, 1 month 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
« no previous file with comments | « ui/ozone/generate_ozone_platform_list.py ('k') | ui/ozone/ozone_platform.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_platform_files': [], 9 'external_ozone_platform_files': [],
9 'external_ozone_platform_deps': [], 10 'external_ozone_platform_deps': [],
10 }, 11 },
11 'targets': [ 12 'targets': [
12 { 13 {
13 'target_name': 'ozone', 14 'target_name': 'ozone',
14 'type': '<(component)', 15 'type': '<(component)',
15 'dependencies': [ 16 'dependencies': [
16 '<(DEPTH)/base/base.gyp:base', 17 '<(DEPTH)/base/base.gyp:base',
17 '<(DEPTH)/ui/gfx/gfx.gyp:gfx', 18 '<(DEPTH)/ui/gfx/gfx.gyp:gfx',
18 '<(DEPTH)/ui/events/events.gyp:events', 19 '<(DEPTH)/ui/events/events.gyp:events',
19 '<(DEPTH)/skia/skia.gyp:skia', 20 '<(DEPTH)/skia/skia.gyp:skia',
20 '<@(external_ozone_platform_deps)', 21 '<@(external_ozone_platform_deps)',
21 ], 22 ],
22 'defines': [ 23 'defines': [
23 'OZONE_IMPLEMENTATION', 24 'OZONE_IMPLEMENTATION',
24 ], 25 ],
26 'variables': {
27 'platform_list_file': '<(SHARED_INTERMEDIATE_DIR)/ui/ozone/ozone_platfor m_list.cc',
28 'ozone_platforms': [
29 '<@(external_ozone_platforms)',
30 ],
31 },
25 'sources': [ 32 'sources': [
33 '<(platform_list_file)',
26 'ozone_platform.cc', 34 'ozone_platform.cc',
27 'ozone_platform.h', 35 'ozone_platform.h',
28 'ozone_switches.cc', 36 'ozone_switches.cc',
29 'ozone_switches.h', 37 'ozone_switches.h',
30 'platform/dri/ozone_platform_dri.cc', 38 'platform/dri/ozone_platform_dri.cc',
31 'platform/dri/ozone_platform_dri.h', 39 'platform/dri/ozone_platform_dri.h',
32 'platform/test/ozone_platform_test.cc', 40 'platform/test/ozone_platform_test.cc',
33 'platform/test/ozone_platform_test.h', 41 'platform/test/ozone_platform_test.h',
34 '<@(external_ozone_platform_files)', 42 '<@(external_ozone_platform_files)',
35 ], 43 ],
44 'actions': [
45 {
46 'action_name': 'generate_ozone_platform_list',
47 'variables': {
48 'generator_path': 'generate_ozone_platform_list.py',
49 },
50 'inputs': [
51 '<(generator_path)',
52 ],
53 'outputs': [
54 '<(platform_list_file)',
55 ],
56 'action': [
57 'python',
58 '<(generator_path)',
59 '--output_file=<(platform_list_file)',
60 '--default=<(ozone_platform)',
61 '<@(ozone_platforms)',
62 ],
63 },
64 ],
36 'conditions': [ 65 'conditions': [
37 ['ozone_platform != "dri"', { 66 ['<(ozone_platform_dri)==1', {
67 'variables': {
68 'ozone_platforms': [
69 'dri'
70 ]
71 }
72 }, { # ozone_platform_dri==0
38 'sources/': [ 73 'sources/': [
39 ['exclude', '^platform/dri/'], 74 ['exclude', '^platform/dri/'],
40 ] 75 ]
41 }], 76 }],
42 ['ozone_platform != "test"', { 77 ['<(ozone_platform_test)==1', {
78 'variables': {
79 'ozone_platforms': [
80 'test'
81 ],
82 }
83 }, { # ozone_platform_test==0
43 'sources/': [ 84 'sources/': [
44 ['exclude', '^platform/test/'], 85 ['exclude', '^platform/test/'],
45 ] 86 ]
46 }], 87 }],
47 ] 88 ]
48 }, 89 },
49 ], 90 ],
50 } 91 }
OLDNEW
« no previous file with comments | « ui/ozone/generate_ozone_platform_list.py ('k') | ui/ozone/ozone_platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698