OLD | NEW |
| (Empty) |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 { | |
6 'variables': { | |
7 'setup_third_party_cmd': ['python', 'setup_third_party.py'], | |
8 'webkit_client_api_dest': '<(SHARED_INTERMEDIATE_DIR)/webkit/third_party/Web
Kit/Source/WebKit/chromium/public', | |
9 'platform_api_dest': '<(SHARED_INTERMEDIATE_DIR)/webkit/third_party/WebKit/S
ource/Platform/chromium/public', | |
10 'mac_webcoresupport_dest': '<(SHARED_INTERMEDIATE_DIR)/webkit/third_party/We
bKit/Source/WebKit/mac/WebCoreSupport', | |
11 }, | |
12 'targets': [ | |
13 { | |
14 # This target is only invoked when we are building chromium inside | |
15 # of a WebKit checkout. In this case, we will have chromium files | |
16 # that include WebKit headers via third_party/WebKit/Source/... ; | |
17 # that directory doesn't exist in a chromium-inside-webkit | |
18 # checkout, and so we need to create sets of forwarding headers. | |
19 # | |
20 # In addition, we can hit limits on the include paths on windows | |
21 # with a regular forwarding header due to the deep directory | |
22 # hierarchies, and so rather than using #includes that are relative | |
23 # to the directory containing the generated header, the generated files | |
24 # use #includes that are relative to <(DEPTH). | |
25 'target_name': 'third_party_headers', | |
26 'type': 'none', | |
27 'direct_dependent_settings': { | |
28 'include_dirs': [ | |
29 '<(SHARED_INTERMEDIATE_DIR)/webkit', | |
30 '<(DEPTH)', | |
31 ], | |
32 }, | |
33 'actions': [ | |
34 { | |
35 'action_name': 'third_party_webkit_client_api_forwarding_headers', | |
36 'inputs': [ | |
37 '<!@(<(setup_third_party_cmd) inputs <(DEPTH)/public)', | |
38 'setup_third_party.py', | |
39 ], | |
40 'outputs': [ | |
41 "<!@(<(setup_third_party_cmd) outputs <(DEPTH)/public '<(webkit_clie
nt_api_dest)')", | |
42 ], | |
43 'action': [ | |
44 '<@(setup_third_party_cmd)', | |
45 'setup_headers', | |
46 '<(DEPTH)/public', | |
47 '<(webkit_client_api_dest)', | |
48 '<(DEPTH)', | |
49 ], | |
50 'message': 'Generating forwarding headers for third_party/WebKit/Sourc
e/WebKit/chromium/public', | |
51 }, | |
52 { | |
53 'action_name': 'third_party_platform_api_forwarding_headers', | |
54 'inputs': [ | |
55 '<!@(<(setup_third_party_cmd) inputs <(DEPTH)/../../Platform/chromiu
m/public)', | |
56 'setup_third_party.py', | |
57 ], | |
58 'outputs': [ | |
59 "<!@(<(setup_third_party_cmd) outputs <(DEPTH)/../../Platform/chromi
um/public '<(platform_api_dest)')", | |
60 ], | |
61 'action': [ | |
62 '<@(setup_third_party_cmd)', | |
63 'setup_headers', | |
64 '<(DEPTH)/../../Platform/chromium/public', | |
65 '<(platform_api_dest)', | |
66 '<(DEPTH)', | |
67 ], | |
68 'message': 'Generating forwarding headers for third_party/WebKit/Sourc
e/Platform/chromium/public', | |
69 }, | |
70 ], | |
71 'conditions': [ | |
72 ['OS=="mac"', { | |
73 'actions': [ | |
74 { | |
75 'action_name': 'third_party_mac_forwarding_headers', | |
76 'inputs': [ | |
77 '<!@(<(setup_third_party_cmd) inputs <(DEPTH)/../mac/WebCoreSupp
ort)', | |
78 'setup_third_party.py', | |
79 ], | |
80 'outputs': [ | |
81 "<!@(<(setup_third_party_cmd) outputs <(DEPTH)/../mac/WebCoreSup
port '<(mac_webcoresupport_dest)')", | |
82 ], | |
83 'action': [ | |
84 '<@(setup_third_party_cmd)', | |
85 'setup_headers', | |
86 '<(DEPTH)/../mac/WebCoreSupport', | |
87 '<(mac_webcoresupport_dest)', | |
88 '<(DEPTH)', | |
89 ], | |
90 'message': 'Generating forwarding headers for third_party/WebKit/S
ource/WebKit/mac/WebCoreSupport', | |
91 }, | |
92 ], | |
93 }], | |
94 ], | |
95 }, | |
96 ], | |
97 } | |
OLD | NEW |