OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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, # Use higher warning level. | 7 'chromium_code': 1, # Use higher warning level. |
8 'directxsdk_exists': '<!(python <(DEPTH)/build/dir_exists.py ../third_party/ directxsdk)', | 8 'directxsdk_exists': '<!(python <(DEPTH)/build/dir_exists.py ../third_party/ directxsdk)', |
9 'conditions': [ | |
10 ['inside_chromium_build==0', { | |
11 'webkit_src_dir': '../../../..', | |
12 },{ | |
13 'webkit_src_dir': '../third_party/WebKit', | |
14 }], | |
15 ], | |
9 }, | 16 }, |
10 'includes': [ | 17 'includes': [ |
11 '../build/win_precompile.gypi', | 18 '../build/win_precompile.gypi', |
12 'content_shell.gypi', | 19 'content_shell.gypi', |
13 'content_tests.gypi', | |
14 ], | 20 ], |
15 'target_defaults': { | 21 'target_defaults': { |
16 'defines': ['CONTENT_IMPLEMENTATION'], | 22 'defines': ['CONTENT_IMPLEMENTATION'], |
17 }, | 23 }, |
18 'conditions': [ | 24 'conditions': [ |
25 ['inside_chromium_build==1', { | |
26 'includes': [ | |
27 'content_tests.gypi', | |
28 ] | |
29 }], | |
19 # In component mode, we build all of content as a single DLL. | 30 # In component mode, we build all of content as a single DLL. |
20 # However, in the static mode, we need to build content as multiple | 31 # However, in the static mode, we need to build content as multiple |
21 # targets in order to prevent dependencies from getting introduced | 32 # targets in order to prevent dependencies from getting introduced |
22 # upstream unnecessarily (e.g., content_renderer depends on allocator | 33 # upstream unnecessarily (e.g., content_renderer depends on allocator |
23 # and chrome_exe depends on content_common but we don't want | 34 # and chrome_exe depends on content_common but we don't want |
24 # chrome_exe to have to depend on allocator). | 35 # chrome_exe to have to depend on allocator). |
25 ['component=="static_library"', { | 36 ['component=="static_library"', { |
26 'target_defines': [ | 37 'target_defines': [ |
27 'COMPILE_CONTENT_STATICALLY', | 38 'COMPILE_CONTENT_STATICALLY', |
28 ], | 39 ], |
(...skipping 14 matching lines...) Expand all Loading... | |
43 }, | 54 }, |
44 {'target_name': 'content_app', | 55 {'target_name': 'content_app', |
45 'type': 'static_library', | 56 'type': 'static_library', |
46 'variables': { 'enable_wexit_time_destructors': 1, }, | 57 'variables': { 'enable_wexit_time_destructors': 1, }, |
47 'includes': [ | 58 'includes': [ |
48 'content_app.gypi', | 59 'content_app.gypi', |
49 ], | 60 ], |
50 'dependencies': [ | 61 'dependencies': [ |
51 'content_common', | 62 'content_common', |
52 ], | 63 ], |
64 'conditions': [ | |
jam
2012/05/21 21:44:10
instead of duplicating this everywhere, can't we p
jochen (gone - plz use gerrit)
2012/05/21 22:00:34
I moved it to target_defaults
| |
65 ['inside_chromium_build==0', { | |
66 'dependencies': [ | |
67 '../webkit/support/setup_third_party.gyp:third_party_headers', | |
68 ], | |
69 }], | |
70 ], | |
53 }, | 71 }, |
54 {'target_name': 'content_browser', | 72 {'target_name': 'content_browser', |
55 'type': 'static_library', | 73 'type': 'static_library', |
56 'variables': { 'enable_wexit_time_destructors': 1, }, | 74 'variables': { 'enable_wexit_time_destructors': 1, }, |
57 'includes': [ | 75 'includes': [ |
58 'content_browser.gypi', | 76 'content_browser.gypi', |
59 ], | 77 ], |
60 'dependencies': [ | 78 'dependencies': [ |
61 'content_common', | 79 'content_common', |
62 ], | 80 ], |
81 'conditions': [ | |
82 ['inside_chromium_build==0', { | |
83 'dependencies': [ | |
84 '../webkit/support/setup_third_party.gyp:third_party_headers', | |
85 ], | |
86 }], | |
87 ], | |
63 }, | 88 }, |
64 {'target_name': 'content_common', | 89 {'target_name': 'content_common', |
65 'type': 'static_library', | 90 'type': 'static_library', |
66 'variables': { 'enable_wexit_time_destructors': 1, }, | 91 'variables': { 'enable_wexit_time_destructors': 1, }, |
67 'includes': [ | 92 'includes': [ |
68 'content_common.gypi', | 93 'content_common.gypi', |
69 ], | 94 ], |
70 'dependencies': [ | 95 'dependencies': [ |
71 'content_resources.gyp:content_resources', | 96 'content_resources.gyp:content_resources', |
72 ], | 97 ], |
98 'conditions': [ | |
99 ['inside_chromium_build==0', { | |
100 'dependencies': [ | |
101 '../webkit/support/setup_third_party.gyp:third_party_headers', | |
102 ], | |
103 }], | |
104 ], | |
73 }, | 105 }, |
74 {'target_name': 'content_gpu', | 106 {'target_name': 'content_gpu', |
75 'type': 'static_library', | 107 'type': 'static_library', |
76 'variables': { 'enable_wexit_time_destructors': 1, }, | 108 'variables': { 'enable_wexit_time_destructors': 1, }, |
77 'includes': [ | 109 'includes': [ |
78 'content_gpu.gypi', | 110 'content_gpu.gypi', |
79 ], | 111 ], |
80 'dependencies': [ | 112 'dependencies': [ |
81 'content_common', | 113 'content_common', |
82 ], | 114 ], |
115 'conditions': [ | |
116 ['inside_chromium_build==0', { | |
117 'dependencies': [ | |
118 '../webkit/support/setup_third_party.gyp:third_party_headers', | |
119 ], | |
120 }], | |
121 ], | |
83 }, | 122 }, |
84 {'target_name': 'content_plugin', | 123 {'target_name': 'content_plugin', |
85 'type': 'static_library', | 124 'type': 'static_library', |
86 'variables': { 'enable_wexit_time_destructors': 1, }, | 125 'variables': { 'enable_wexit_time_destructors': 1, }, |
87 'includes': [ | 126 'includes': [ |
88 'content_plugin.gypi', | 127 'content_plugin.gypi', |
89 ], | 128 ], |
90 'dependencies': [ | 129 'dependencies': [ |
91 'content_common', | 130 'content_common', |
92 ], | 131 ], |
132 'conditions': [ | |
133 ['inside_chromium_build==0', { | |
134 'dependencies': [ | |
135 '../webkit/support/setup_third_party.gyp:third_party_headers', | |
136 ], | |
137 }], | |
138 ], | |
93 }, | 139 }, |
94 {'target_name': 'content_ppapi_plugin', | 140 {'target_name': 'content_ppapi_plugin', |
95 'type': 'static_library', | 141 'type': 'static_library', |
96 'variables': { 'enable_wexit_time_destructors': 1, }, | 142 'variables': { 'enable_wexit_time_destructors': 1, }, |
97 'includes': [ | 143 'includes': [ |
98 'content_ppapi_plugin.gypi', | 144 'content_ppapi_plugin.gypi', |
99 ], | 145 ], |
146 'conditions': [ | |
147 ['inside_chromium_build==0', { | |
148 'dependencies': [ | |
149 '../webkit/support/setup_third_party.gyp:third_party_headers', | |
150 ], | |
151 }], | |
152 ], | |
100 }, | 153 }, |
101 {'target_name': 'content_renderer', | 154 {'target_name': 'content_renderer', |
102 'type': 'static_library', | 155 'type': 'static_library', |
103 'variables': { 'enable_wexit_time_destructors': 1, }, | 156 'variables': { 'enable_wexit_time_destructors': 1, }, |
104 'includes': [ | 157 'includes': [ |
105 'content_renderer.gypi', | 158 'content_renderer.gypi', |
106 ], | 159 ], |
107 'dependencies': [ | 160 'dependencies': [ |
108 'content_common', | 161 'content_common', |
109 'content_resources.gyp:content_resources', | 162 'content_resources.gyp:content_resources', |
110 ], | 163 ], |
164 'conditions': [ | |
165 ['inside_chromium_build==0', { | |
166 'dependencies': [ | |
167 '../webkit/support/setup_third_party.gyp:third_party_headers', | |
168 ], | |
169 }], | |
170 ], | |
111 }, | 171 }, |
112 {'target_name': 'content_utility', | 172 {'target_name': 'content_utility', |
113 'type': 'static_library', | 173 'type': 'static_library', |
114 'variables': { 'enable_wexit_time_destructors': 1, }, | 174 'variables': { 'enable_wexit_time_destructors': 1, }, |
115 'includes': [ | 175 'includes': [ |
116 'content_utility.gypi', | 176 'content_utility.gypi', |
117 ], | 177 ], |
118 'dependencies': [ | 178 'dependencies': [ |
119 'content_common', | 179 'content_common', |
120 ], | 180 ], |
181 'conditions': [ | |
182 ['inside_chromium_build==0', { | |
183 'dependencies': [ | |
184 '../webkit/support/setup_third_party.gyp:third_party_headers', | |
185 ], | |
186 }], | |
187 ], | |
121 }, | 188 }, |
122 {'target_name': 'content_worker', | 189 {'target_name': 'content_worker', |
123 'type': 'static_library', | 190 'type': 'static_library', |
124 'variables': { 'enable_wexit_time_destructors': 1, }, | 191 'variables': { 'enable_wexit_time_destructors': 1, }, |
125 'includes': [ | 192 'includes': [ |
126 'content_worker.gypi', | 193 'content_worker.gypi', |
127 ], | 194 ], |
128 'dependencies': [ | 195 'dependencies': [ |
129 'content_common', | 196 'content_common', |
130 ], | 197 ], |
198 'conditions': [ | |
199 ['inside_chromium_build==0', { | |
200 'dependencies': [ | |
201 '../webkit/support/setup_third_party.gyp:third_party_headers', | |
202 ], | |
203 }], | |
204 ], | |
131 }, | 205 }, |
132 ], | 206 ], |
133 }, | 207 }, |
134 { # component != static_library | 208 { # component != static_library |
135 'targets': [ | 209 'targets': [ |
136 {'target_name': 'content', | 210 {'target_name': 'content', |
137 'type': 'shared_library', | 211 'type': 'shared_library', |
138 'variables': { 'enable_wexit_time_destructors': 1, }, | 212 'variables': { 'enable_wexit_time_destructors': 1, }, |
139 'dependencies': [ | 213 'dependencies': [ |
140 'content_resources.gyp:content_resources', | 214 'content_resources.gyp:content_resources', |
141 ], | 215 ], |
142 'conditions': [ | 216 'conditions': [ |
143 ['OS=="mac"', { | 217 ['OS=="mac"', { |
144 'dependencies': [ | 218 'dependencies': [ |
145 '<(DEPTH)/third_party/mach_override/mach_override.gyp:mach_override ', | 219 '<(DEPTH)/third_party/mach_override/mach_override.gyp:mach_override ', |
146 ], | 220 ], |
147 }], | 221 }], |
222 ['inside_chromium_build==0', { | |
223 'dependencies': [ | |
224 '../webkit/support/setup_third_party.gyp:third_party_headers', | |
225 ], | |
226 }], | |
148 ], | 227 ], |
149 'includes': [ | 228 'includes': [ |
150 'content_app.gypi', | 229 'content_app.gypi', |
151 'content_browser.gypi', | 230 'content_browser.gypi', |
152 'content_common.gypi', | 231 'content_common.gypi', |
153 'content_gpu.gypi', | 232 'content_gpu.gypi', |
154 'content_plugin.gypi', | 233 'content_plugin.gypi', |
155 'content_ppapi_plugin.gypi', | 234 'content_ppapi_plugin.gypi', |
156 'content_renderer.gypi', | 235 'content_renderer.gypi', |
157 'content_utility.gypi', | 236 'content_utility.gypi', |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
211 }, | 290 }, |
212 { | 291 { |
213 'target_name': 'content_jni_headers', | 292 'target_name': 'content_jni_headers', |
214 'type': 'none', | 293 'type': 'none', |
215 'includes': [ 'content_jni.gypi' ], | 294 'includes': [ 'content_jni.gypi' ], |
216 }, | 295 }, |
217 ], | 296 ], |
218 }], # OS == "android" | 297 }], # OS == "android" |
219 ], | 298 ], |
220 } | 299 } |
OLD | NEW |