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_platform_files': [], | 8 'external_ozone_platform_files': [], |
9 'external_ozone_platform_deps': [], | 9 'external_ozone_platform_deps': [], |
10 }, | 10 }, |
11 'targets': [ | 11 'targets': [ |
12 { | 12 { |
13 'target_name': 'ozone', | 13 'target_name': 'ozone', |
14 'type': '<(component)', | 14 'type': '<(component)', |
15 'dependencies': [ | 15 'dependencies': [ |
16 '<(DEPTH)/base/base.gyp:base', | 16 '<(DEPTH)/base/base.gyp:base', |
17 '<(DEPTH)/ui/gfx/gfx.gyp:gfx', | 17 '<(DEPTH)/ui/gfx/gfx.gyp:gfx', |
18 '<(DEPTH)/skia/skia.gyp:skia', | 18 '<(DEPTH)/skia/skia.gyp:skia', |
19 '<@(external_ozone_platform_deps)', | 19 '<@(external_ozone_platform_deps)', |
20 ], | 20 ], |
21 'defines': [ | 21 'defines': [ |
22 'OZONE_IMPLEMENTATION', | 22 'OZONE_IMPLEMENTATION', |
23 ], | 23 ], |
24 'variables': { | |
25 'platform_list_file': '<(SHARED_INTERMEDIATE_DIR)/ui/base/ozone/ozone_pl atform_list.cc', | |
26 }, | |
24 'sources': [ | 27 'sources': [ |
28 '<(platform_list_file)', | |
25 'ozone_platform.cc', | 29 'ozone_platform.cc', |
26 'ozone_platform.h', | 30 'ozone_platform.h', |
27 'ozone_switches.cc', | 31 'ozone_switches.cc', |
28 'ozone_switches.h', | 32 'ozone_switches.h', |
29 'platform/dri/ozone_platform_dri.cc', | 33 'platform/dri/ozone_platform_dri.cc', |
30 'platform/dri/ozone_platform_dri.h', | 34 'platform/dri/ozone_platform_dri.h', |
31 'platform/test/ozone_platform_test.cc', | 35 'platform/test/ozone_platform_test.cc', |
32 'platform/test/ozone_platform_test.h', | 36 'platform/test/ozone_platform_test.h', |
33 '<@(external_ozone_platform_files)', | 37 '<@(external_ozone_platform_files)', |
34 ], | 38 ], |
39 'actions': [ | |
40 { | |
41 'action_name': 'generate_ozone_platform_list', | |
42 'variables': { | |
43 'generator_path': 'generate_ozone_platform_list.py', | |
44 }, | |
45 'inputs': [ | |
46 '<(generator_path)', | |
47 ], | |
48 'outputs': [ | |
49 '<(platform_list_file)', | |
50 ], | |
51 'action': [ | |
52 'python', | |
53 '<(generator_path)', | |
54 '--output_file=<(platform_list_file)', | |
55 '--default=<(ozone_platform)', | |
56 '<@(ozone_platforms)', | |
57 ], | |
58 }, | |
59 ], | |
35 'conditions': [ | 60 'conditions': [ |
36 ['ozone_platform != "dri"', { | 61 ['<(ozone_platform_dri)==1', { |
62 'variables': { | |
63 'ozone_platforms': [ | |
64 'dri' | |
65 ] | |
66 } | |
67 }, { # ozone_platform_dri==0 | |
kalyank
2013/10/25 21:09:30
If ozone is enabled, we always enable ozone_platfo
spang
2013/10/25 21:14:14
Yes, because everything from common.gypi is a defa
| |
37 'sources/': [ | 68 'sources/': [ |
38 ['exclude', '^platform/dri/'], | 69 ['exclude', '^platform/dri/'], |
39 ] | 70 ] |
40 }], | 71 }], |
41 ['ozone_platform != "test"', { | 72 ['<(ozone_platform_test)==1', { |
73 'variables': { | |
74 'ozone_platforms': [ | |
75 'test' | |
76 ], | |
77 } | |
78 }, { # ozone_platform_test==0 | |
42 'sources/': [ | 79 'sources/': [ |
43 ['exclude', '^platform/test/'], | 80 ['exclude', '^platform/test/'], |
44 ] | 81 ] |
45 }], | 82 }], |
46 ] | 83 ] |
47 }, | 84 }, |
48 ], | 85 ], |
49 } | 86 } |
OLD | NEW |