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 'variables': { | |
6 'chromium_code': 1, | |
7 | |
8 # Define the common dependencies that contain all the actual | |
9 # Chromium functionality. This list gets pulled in below by | |
10 # the link of the actual chrome (or chromium) executable on | |
11 # Linux or Mac, and into chrome.dll on Windows. | |
12 # NOTE: Most new includes should go in the OS!="ios" condition below. | |
13 # | |
14 # GN version is the group //chrome:browser_dependencies | |
15 'chromium_browser_dependencies': [ | |
16 'common', | |
17 'browser', | |
18 '../components/sync.gyp:sync', | |
19 ], | |
20 # GN version is the group //chrome:child_dependencies | |
21 'chromium_child_dependencies': [ | |
22 'common', | |
23 '../components/sync.gyp:sync', | |
24 ], | |
25 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome', | |
26 'protoc_out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out', | |
27 'conditions': [ | |
28 ['OS!="ios"', { | |
29 'chromium_browser_dependencies': [ | |
30 'debugger', | |
31 '../ppapi/ppapi_internal.gyp:ppapi_host', | |
32 ], | |
33 'chromium_child_dependencies': [ | |
34 'child', | |
35 'gpu', | |
36 'renderer', | |
37 'utility', | |
38 '../content/content.gyp:content_gpu', | |
39 '../content/content.gyp:content_ppapi_plugin', | |
40 '../third_party/WebKit/public/blink_devtools.gyp:blink_devtools_fronte
nd_resources', | |
41 ], | |
42 'conditions': [ | |
43 ['enable_plugins==1 and disable_nacl==0', { | |
44 'chromium_child_dependencies': [ | |
45 '<(DEPTH)/components/nacl/renderer/plugin/plugin.gyp:nacl_trusted_
plugin', | |
46 ], | |
47 }], | |
48 ], | |
49 }], | |
50 ['enable_basic_printing==1 or enable_print_preview==1', { | |
51 'chromium_browser_dependencies': [ | |
52 '../printing/printing.gyp:printing', | |
53 ], | |
54 }], | |
55 ['enable_print_preview==1', { | |
56 'chromium_browser_dependencies': [ | |
57 'service', | |
58 ], | |
59 }], | |
60 ['OS=="win"', { | |
61 'platform_locale_settings_grd': | |
62 'app/resources/locale_settings_win.grd', | |
63 },], | |
64 ['OS=="linux"', { | |
65 'conditions': [ | |
66 ['chromeos==1', { | |
67 'platform_locale_settings_grd': | |
68 'app/resources/locale_settings_<(branding_path_component)os.
grd', | |
69 }, { # chromeos==0 | |
70 'platform_locale_settings_grd': | |
71 'app/resources/locale_settings_linux.grd', | |
72 }], | |
73 ], | |
74 },], | |
75 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "linux"', { | |
76 'platform_locale_settings_grd': | |
77 'app/resources/locale_settings_linux.grd', | |
78 },], | |
79 ['OS=="mac"', { | |
80 'tweak_info_plist_path': '../build/mac/tweak_info_plist.py', | |
81 'platform_locale_settings_grd': | |
82 'app/resources/locale_settings_mac.grd', | |
83 }], # OS=="mac" | |
84 ], # conditions | |
85 }, # variables | |
86 'includes': [ | |
87 # Place some targets in gypi files to reduce contention on this file. | |
88 # By using an include, we keep everything in a single xcodeproj file. | |
89 # Note on Win64 targets: targets that end with win64 be used | |
90 # on 64-bit Windows only. Targets that end with nacl_win64 should be used | |
91 # by Native Client only. | |
92 # NOTE: Most new includes should go in the OS!="ios" condition below. | |
93 '../build/chrome_settings.gypi', | |
94 '../build/util/version.gypi', | |
95 '../build/win_precompile.gypi', | |
96 'chrome_browser.gypi', | |
97 'chrome_browser_ui.gypi', | |
98 'chrome_common.gypi', | |
99 'chrome_installer_static.gypi', | |
100 'chrome_installer_util.gypi', | |
101 'chrome_features.gypi', | |
102 ], | |
103 'conditions': [ | |
104 ['OS!="ios"', { | |
105 'includes': [ | |
106 '../apps/apps.gypi', | |
107 'chrome_child.gypi', | |
108 'chrome_debugger.gypi', | |
109 'chrome_dll.gypi', | |
110 'chrome_exe.gypi', | |
111 'chrome_gpu.gypi', | |
112 'chrome_installer.gypi', | |
113 'chrome_renderer.gypi', | |
114 'chrome_tests.gypi', | |
115 'chrome_tests_unit.gypi', | |
116 'chrome_utility.gypi', | |
117 'policy_templates.gypi', | |
118 ], | |
119 'targets': [ | |
120 { | |
121 # GN version: //chrome/browser/extensions/default_extensions | |
122 'target_name': 'default_extensions', | |
123 'type': 'none', | |
124 'conditions': [ | |
125 ['OS=="win"', { | |
126 'copies': [ | |
127 { | |
128 'destination': '<(PRODUCT_DIR)/extensions', | |
129 'files': [ | |
130 'browser/extensions/default_extensions/external_extensions.j
son' | |
131 ] | |
132 } | |
133 ], | |
134 }] | |
135 ], | |
136 }, | |
137 ], | |
138 }], # OS!="ios" | |
139 ['OS=="mac"', { | |
140 'includes': [ | |
141 'app_shim/app_shim.gypi', | |
142 'browser/apps/app_shim/browser_app_shim.gypi', | |
143 ], | |
144 'targets': [ | |
145 { | |
146 'target_name': 'helper_app', | |
147 'type': 'executable', | |
148 'variables': { 'enable_wexit_time_destructors': 1, }, | |
149 'product_name': '<(mac_product_name) Helper', | |
150 'mac_bundle': 1, | |
151 'dependencies': [ | |
152 'chrome_dll_dependency_shim', | |
153 'infoplist_strings_tool', | |
154 'common_constants.gyp:version_header', | |
155 ], | |
156 'defines': [ | |
157 'HELPER_EXECUTABLE' | |
158 ], | |
159 'sources': [ | |
160 # chrome_exe_main_mac.c's main() is the entry point for | |
161 # the "chrome" (browser app) target. All it does is jump | |
162 # to chrome_dll's ChromeMain. This is appropriate for | |
163 # helper processes too, because the logic to discriminate | |
164 # between process types at run time is actually directed | |
165 # by the --type command line argument processed by | |
166 # ChromeMain. Sharing chrome_exe_main_mac.c with the | |
167 # browser app will suffice for now. | |
168 'app/chrome_exe_main_mac.c', | |
169 'app/helper-Info.plist', | |
170 ], | |
171 # TODO(mark): Come up with a fancier way to do this. It should only | |
172 # be necessary to list helper-Info.plist once, not the three times it | |
173 # is listed here. | |
174 'mac_bundle_resources!': [ | |
175 'app/helper-Info.plist', | |
176 ], | |
177 # TODO(mark): For now, don't put any resources into this app. Its | |
178 # resources directory will be a symbolic link to the browser app's | |
179 # resources directory. | |
180 'mac_bundle_resources/': [ | |
181 ['exclude', '.*'], | |
182 ], | |
183 'xcode_settings': { | |
184 'CHROMIUM_BUNDLE_ID': '<(mac_bundle_id)', | |
185 'CHROMIUM_SHORT_NAME': '<(branding)', | |
186 'CHROMIUM_STRIP_SAVE_FILE': 'app/app.saves', | |
187 'INFOPLIST_FILE': 'app/helper-Info.plist', | |
188 }, | |
189 'postbuilds': [ | |
190 { | |
191 # The helper doesn't have real localizations, it just has | |
192 # empty .lproj directories, which is enough to convince Cocoa | |
193 # that anything running out of the helper .app supports those | |
194 # languages. | |
195 'postbuild_name': 'Make Empty Localizations', | |
196 'variables': { | |
197 'locale_dirs': [ | |
198 '>!@(<(apply_locales_cmd) -d ZZLOCALE.lproj <(locales))', | |
199 ], | |
200 }, | |
201 'action': [ | |
202 'tools/build/mac/make_locale_dirs.sh', | |
203 '<@(locale_dirs)', | |
204 ], | |
205 }, | |
206 { | |
207 # The framework (chrome_dll) defines its load-time path | |
208 # (DYLIB_INSTALL_NAME_BASE) relative to the main executable | |
209 # (chrome). A different relative path needs to be used in | |
210 # helper_app. | |
211 'postbuild_name': 'Fix Framework Link', | |
212 'action': [ | |
213 'install_name_tool', | |
214 '-change', | |
215 '@executable_path/../Versions/<(version_full)/<(mac_product_name
) Framework.framework/<(mac_product_name) Framework', | |
216 '@executable_path/../../../<(mac_product_name) Framework.framewo
rk/<(mac_product_name) Framework', | |
217 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}' | |
218 ], | |
219 }, | |
220 { | |
221 # Modify the Info.plist as needed. The script explains why this | |
222 # is needed. This is also done in the chrome and chrome_dll | |
223 # targets. In this case, --breakpad=0, --keystone=0, and --scm=0 | |
224 # are used because Breakpad, Keystone, and SCM keys are | |
225 # never placed into the helper. | |
226 'postbuild_name': 'Tweak Info.plist', | |
227 'action': ['<(tweak_info_plist_path)', | |
228 '--plist=${TARGET_BUILD_DIR}/${INFOPLIST_PATH}', | |
229 '--breakpad=0', | |
230 '--keystone=0', | |
231 '--scm=0'], | |
232 }, | |
233 ], | |
234 'conditions': [ | |
235 ['mac_breakpad==1', { | |
236 'variables': { | |
237 # A real .dSYM is needed for dump_syms to operate on. | |
238 'mac_real_dsym': 1, | |
239 }, | |
240 'xcode_settings': { | |
241 # With mac_real_dsym set, strip_from_xcode won't be used. | |
242 # Specify CHROMIUM_STRIP_SAVE_FILE directly to Xcode. | |
243 'STRIPFLAGS': '-s $(CHROMIUM_STRIP_SAVE_FILE)', | |
244 }, | |
245 }], | |
246 ['component=="shared_library"', { | |
247 'xcode_settings': { | |
248 'LD_RUNPATH_SEARCH_PATHS': [ | |
249 # Get back from Chromium.app/Contents/Versions/V/ | |
250 # Helper.app/Contents/MacOS | |
251 '@loader_path/../../../../../../..', | |
252 ], | |
253 }, | |
254 }], | |
255 ], | |
256 }, # target helper_app | |
257 { | |
258 # A library containing the actual code for the app mode app, shared | |
259 # by unit tests. | |
260 # GN: //chrome/common:app_mode_app_support | |
261 'target_name': 'app_mode_app_support', | |
262 'type': 'static_library', | |
263 'variables': { 'enable_wexit_time_destructors': 1, }, | |
264 'product_name': 'app_mode_app_support', | |
265 'dependencies': [ | |
266 '../base/base.gyp:base', | |
267 'common_constants.gyp:common_constants', | |
268 ], | |
269 'sources': [ | |
270 'common/mac/app_mode_chrome_locator.h', | |
271 'common/mac/app_mode_chrome_locator.mm', | |
272 'common/mac/app_mode_common.h', | |
273 'common/mac/app_mode_common.mm', | |
274 ], | |
275 'include_dirs': [ | |
276 '..', | |
277 ], | |
278 }, # target app_mode_app_support | |
279 { | |
280 # Convenience target to build a disk image. | |
281 'target_name': 'build_app_dmg', | |
282 # Don't place this in the 'all' list; most won't want it. | |
283 # In GYP, booleans are 0/1, not True/False. | |
284 'suppress_wildcard': 1, | |
285 'type': 'none', | |
286 'dependencies': [ | |
287 'chrome', | |
288 ], | |
289 'variables': { | |
290 'build_app_dmg_script_path': 'tools/build/mac/build_app_dmg', | |
291 'pkg_dmg_script_path': 'installer/mac/pkg-dmg', | |
292 | |
293 'conditions': [ | |
294 # This duplicates the output path from build_app_dmg. | |
295 ['branding=="Chrome"', { | |
296 'dmg_name': 'GoogleChrome.dmg', | |
297 }, { # else: branding!="Chrome" | |
298 'dmg_name': 'Chromium.dmg', | |
299 }], | |
300 ], | |
301 }, | |
302 'actions': [ | |
303 { | |
304 'inputs': [ | |
305 '<(build_app_dmg_script_path)', | |
306 '<(pkg_dmg_script_path)', | |
307 '<(PRODUCT_DIR)/<(mac_product_name).app', | |
308 ], | |
309 'outputs': [ | |
310 '<(PRODUCT_DIR)/<(dmg_name)', | |
311 ], | |
312 'action_name': 'build_app_dmg', | |
313 'action': ['<(build_app_dmg_script_path)', '<@(branding)'], | |
314 }, | |
315 ], # 'actions' | |
316 }, | |
317 { | |
318 'target_name': 'infoplist_strings_tool', | |
319 'type': 'executable', | |
320 'variables': { 'enable_wexit_time_destructors': 1, }, | |
321 'dependencies': [ | |
322 'chrome_resources.gyp:chrome_strings', | |
323 '../base/base.gyp:base', | |
324 '../base/base.gyp:base_i18n', | |
325 '../ui/base/ui_base.gyp:ui_data_pack', | |
326 ], | |
327 'include_dirs': [ | |
328 '<(grit_out_dir)', | |
329 ], | |
330 'sources': [ | |
331 'tools/mac_helpers/infoplist_strings_util.mm', | |
332 ], | |
333 }, | |
334 ], # targets | |
335 }], # OS=="mac" | |
336 ['OS=="linux"', | |
337 { 'targets': [ | |
338 { | |
339 # GN version: //chrome:linux_symbols | |
340 'target_name': 'linux_symbols', | |
341 'type': 'none', | |
342 'conditions': [ | |
343 ['linux_dump_symbols==1', { | |
344 'actions': [ | |
345 { | |
346 'action_name': 'dump_symbols', | |
347 'inputs': [ | |
348 '<(DEPTH)/build/linux/dump_app_syms.py', | |
349 '<(PRODUCT_DIR)/dump_syms', | |
350 '<(PRODUCT_DIR)/chrome', | |
351 ], | |
352 'outputs': [ | |
353 '<(PRODUCT_DIR)/chrome.breakpad.<(target_arch)', | |
354 ], | |
355 'action': ['python', | |
356 '<(DEPTH)/build/linux/dump_app_syms.py', | |
357 '<(PRODUCT_DIR)/dump_syms', | |
358 '<(linux_strip_binary)', | |
359 '<(PRODUCT_DIR)/chrome', | |
360 '<@(_outputs)'], | |
361 'message': 'Dumping breakpad symbols to <(_outputs)', | |
362 'process_outputs_as_sources': 1, | |
363 }, | |
364 ], | |
365 'dependencies': [ | |
366 'chrome', | |
367 '../breakpad/breakpad.gyp:dump_syms#host', | |
368 ], | |
369 }], | |
370 ], | |
371 }, | |
372 ], | |
373 }], # OS=="linux" | |
374 ['OS=="win"', | |
375 { 'targets': [ | |
376 { | |
377 # For historical reasons, chrome/chrome.sln has been the entry point | |
378 # for new Chrome developers. To assist development, include several | |
379 # core unittests that are otherwise only accessible side-by-side with | |
380 # chrome via all/all.sln. | |
381 'target_name': 'test_targets', | |
382 'type': 'none', | |
383 'dependencies': [ | |
384 '../base/base.gyp:base_unittests', | |
385 '../content/content_shell_and_tests.gyp:content_browsertests', | |
386 '../content/content_shell_and_tests.gyp:content_shell', | |
387 '../content/content_shell_and_tests.gyp:content_unittests', | |
388 '../net/net.gyp:net_unittests', | |
389 '../ui/base/ui_base_tests.gyp:ui_base_unittests', | |
390 ], | |
391 }, | |
392 { | |
393 # GN version: //chrome:chrome_version_resources | |
394 'target_name': 'chrome_version_resources', | |
395 'type': 'none', | |
396 'variables': { | |
397 'output_dir': 'chrome_version', | |
398 'template_input_path': 'app/chrome_version.rc.version', | |
399 'branding_path': 'app/theme/<(branding_path_component)/BRANDING', | |
400 }, | |
401 'direct_dependent_settings': { | |
402 'include_dirs': [ | |
403 '<(SHARED_INTERMEDIATE_DIR)/<(output_dir)', | |
404 ], | |
405 }, | |
406 'sources': [ | |
407 'app/chrome_exe.ver', | |
408 'app/chrome_dll.ver', | |
409 'app/nacl64_exe.ver', | |
410 'app/other.ver', | |
411 ], | |
412 'includes': [ | |
413 'version_resource_rules.gypi', | |
414 ], | |
415 }, | |
416 { | |
417 'target_name': 'sb_sigutil', | |
418 'type': 'executable', | |
419 'dependencies': [ | |
420 '../base/base.gyp:base', | |
421 '../crypto/crypto.gyp:crypto', | |
422 'safe_browsing_proto', | |
423 ], | |
424 'sources': [ | |
425 'common/safe_browsing/binary_feature_extractor.cc', | |
426 'common/safe_browsing/binary_feature_extractor.h', | |
427 'common/safe_browsing/binary_feature_extractor_win.cc', | |
428 'common/safe_browsing/pe_image_reader_win.cc', | |
429 'common/safe_browsing/pe_image_reader_win.h', | |
430 'tools/safe_browsing/sb_sigutil.cc', | |
431 ], | |
432 'msvs_settings': { | |
433 'VCLinkerTool': { | |
434 'AdditionalDependencies': [ | |
435 'wintrust.lib', | |
436 ], | |
437 }, | |
438 }, | |
439 }, | |
440 ], # 'targets' | |
441 'includes': [ | |
442 'chrome_watcher/chrome_watcher.gypi', | |
443 'chrome_process_finder.gypi', | |
444 ], | |
445 }], # OS=="win" | |
446 ['chromeos==1', { | |
447 'includes': [ 'chrome_browser_chromeos.gypi' ], | |
448 }], # chromeos==1 | |
449 ['OS=="android"', | |
450 { | |
451 'targets': [ | |
452 { | |
453 # GN: //chrome/android:chrome_java | |
454 'target_name': 'chrome_java', | |
455 'type': 'none', | |
456 'dependencies': [ | |
457 'activity_type_ids_java', | |
458 'chrome_locale_paks', | |
459 'chrome_resources.gyp:chrome_strings', | |
460 'chrome_strings_grd', | |
461 'chrome_version_java', | |
462 'content_setting_java', | |
463 'content_settings_type_java', | |
464 'connectivity_check_result_java', | |
465 'data_use_ui_message_enum_java', | |
466 'document_tab_model_info_proto_java', | |
467 'infobar_action_type_java', | |
468 'most_visited_tile_type_java', | |
469 'page_info_connection_type_java', | |
470 'policy_auditor_java', | |
471 'profile_account_management_metrics_java', | |
472 'resource_id_java', | |
473 'shortcut_source_java', | |
474 'signin_metrics_enum_java', | |
475 'tab_load_status_java', | |
476 'website_settings_action_java', | |
477 '../base/base.gyp:base', | |
478 '../base/base.gyp:base_build_config_gen', | |
479 '../build/android/java_google_api_keys.gyp:google_api_keys_java', | |
480 '../chrome/android/chrome_apk.gyp:custom_tabs_service_aidl', | |
481 '../components/components.gyp:app_restrictions_resources', | |
482 '../components/components.gyp:autocomplete_match_java', | |
483 '../components/components.gyp:autocomplete_match_type_java', | |
484 '../components/components.gyp:bookmarks_java', | |
485 '../components/components.gyp:browsing_data_utils_java', | |
486 '../components/components.gyp:dom_distiller_core_java', | |
487 '../components/components.gyp:gcm_driver_java', | |
488 '../components/components.gyp:infobar_delegate_java', | |
489 '../components/components.gyp:instance_id_driver_java', | |
490 '../components/components.gyp:invalidation_java', | |
491 '../components/components.gyp:investigated_scenario_java', | |
492 '../components/components.gyp:ntp_tiles_enums_java', | |
493 '../components/components.gyp:ntp_tiles_java', | |
494 '../components/components.gyp:navigation_interception_java', | |
495 '../components/components.gyp:offline_page_model_enums_java', | |
496 '../components/components.gyp:policy_java', | |
497 '../components/components.gyp:precache_java', | |
498 '../components/components.gyp:safe_json_java', | |
499 '../components/components.gyp:security_state_enums_java', | |
500 '../components/components.gyp:signin_core_browser_java', | |
501 '../components/components.gyp:variations_java', | |
502 '../components/components.gyp:web_contents_delegate_android_java', | |
503 '../components/components.gyp:web_restrictions_java_browser', | |
504 '../components/components_strings.gyp:components_strings', | |
505 '../components/url_formatter/url_formatter.gyp:url_formatter_java', | |
506 '../content/content.gyp:content_java', | |
507 '../media/media.gyp:media_java', | |
508 '../mojo/mojo_public.gyp:mojo_bindings_java', | |
509 '../mojo/mojo_public.gyp:mojo_public_java', | |
510 '../printing/printing.gyp:printing_java', | |
511 '../components/sync.gyp:sync_java', | |
512 '../third_party/WebKit/public/blink.gyp:android_mojo_bindings_java', | |
513 '../third_party/android_data_chart/android_data_chart.gyp:android_da
ta_chart_java', | |
514 '../third_party/android_media/android_media.gyp:android_media_java', | |
515 '../third_party/android_protobuf/android_protobuf.gyp:protobuf_nano_
javalib', | |
516 '../third_party/android_swipe_refresh/android_swipe_refresh.gyp:andr
oid_swipe_refresh_java', | |
517 '../third_party/android_tools/android_tools.gyp:android_support_v7_a
ppcompat_javalib', | |
518 '../third_party/android_tools/android_tools.gyp:android_support_v7_m
ediarouter_javalib', | |
519 '../third_party/android_tools/android_tools.gyp:android_support_v7_r
ecyclerview_javalib', | |
520 '../third_party/android_tools/android_tools.gyp:android_support_v13_
javalib', | |
521 '../third_party/android_tools/android_tools.gyp:google_play_services
_javalib', | |
522 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalid
ation_javalib', | |
523 '../third_party/gif_player/gif_player.gyp:gif_player_java', | |
524 '../third_party/jsr-305/jsr-305.gyp:jsr_305_javalib', | |
525 '../third_party/leakcanary/leakcanary.gyp:leakcanary_java', | |
526 '../ui/android/ui_android.gyp:ui_java', | |
527 ], | |
528 'variables': { | |
529 'variables': { | |
530 'android_branding_res_dirs%': ['<(java_in_dir)/res_chromium'], | |
531 }, | |
532 'jar_excluded_classes': [ | |
533 '*/BuildConfig.class', | |
534 ], | |
535 'java_in_dir': '../chrome/android/java', | |
536 'has_java_resources': 1, | |
537 'R_package': 'org.chromium.chrome', | |
538 'R_package_relpath': 'org/chromium/chrome', | |
539 # Include channel-specific resources and xml string files generated | |
540 # from generated_resources.grd | |
541 'res_extra_dirs': [ | |
542 '<@(android_branding_res_dirs)', | |
543 '<(SHARED_INTERMEDIATE_DIR)/chrome/java/res', | |
544 '<(SHARED_INTERMEDIATE_DIR)/components/strings/java/res', | |
545 ], | |
546 'res_extra_files': [ | |
547 '<!@(find <(android_branding_res_dirs) -type f)', | |
548 '<!@pymod_do_main(grit_info <@(grit_defines) --outputs "<(SHARED_I
NTERMEDIATE_DIR)/chrome" app/generated_resources.grd)', | |
549 ], | |
550 }, | |
551 'includes': [ | |
552 '../build/java.gypi', | |
553 ], | |
554 }, | |
555 { | |
556 # GN: //chrome/android:chrome_strings_grd | |
557 'target_name': 'chrome_strings_grd', | |
558 'type': 'none', | |
559 'variables': { | |
560 'grd_file': '../chrome/android/java/strings/android_chrome_strings.g
rd', | |
561 }, | |
562 'includes': [ | |
563 '../build/java_strings_grd.gypi', | |
564 ], | |
565 }, | |
566 { | |
567 # GN: //chrome/android:chrome_locale_paks | |
568 'target_name': 'chrome_locale_paks', | |
569 'type': 'none', | |
570 'variables': { | |
571 'package_name': 'chrome_locale_paks', | |
572 'locale_pak_files': [ '<@(chrome_android_pak_locale_resources)' ], | |
573 }, | |
574 'includes': [ | |
575 'chrome_android_paks.gypi', | |
576 '../build/android/locale_pak_resources.gypi', | |
577 ], | |
578 }, | |
579 { | |
580 # GN: //chrome:content_setting_javagen | |
581 'target_name': 'content_setting_java', | |
582 'type': 'none', | |
583 'variables': { | |
584 'source_file': '../components/content_settings/core/common/content_s
ettings.h', | |
585 }, | |
586 'includes': [ '../build/android/java_cpp_enum.gypi' ], | |
587 }, | |
588 { | |
589 # GN: //chrome:content_settings_type_javagen | |
590 'target_name': 'content_settings_type_java', | |
591 'type': 'none', | |
592 'variables': { | |
593 'source_file': '../components/content_settings/core/common/content_s
ettings_types.h', | |
594 }, | |
595 'includes': [ '../build/android/java_cpp_enum.gypi' ], | |
596 }, | |
597 { | |
598 # GN: //chrome:page_info_connection_type_javagen | |
599 'target_name': 'page_info_connection_type_java', | |
600 'type': 'none', | |
601 'variables': { | |
602 'source_file': 'browser/ui/android/website_settings_popup_android.h'
, | |
603 }, | |
604 'includes': [ '../build/android/java_cpp_enum.gypi' ], | |
605 }, | |
606 { | |
607 # GN: //chrome:signin_metrics_enum_javagen | |
608 'target_name': 'signin_metrics_enum_java', | |
609 'type': 'none', | |
610 'variables': { | |
611 'source_file': '../components/signin/core/browser/signin_metrics.h', | |
612 }, | |
613 'includes': [ '../build/android/java_cpp_enum.gypi' ], | |
614 }, | |
615 { | |
616 # GN: //chrome:website_settings_action_javagen | |
617 'target_name': 'website_settings_action_java', | |
618 'type': 'none', | |
619 'variables': { | |
620 'source_file': 'browser/ui/website_settings/website_settings.h', | |
621 }, | |
622 'includes': [ '../build/android/java_cpp_enum.gypi' ], | |
623 }, | |
624 { | |
625 # GN: //chrome:data_use_ui_message_enum_javagen | |
626 'target_name': 'data_use_ui_message_enum_java', | |
627 'type': 'none', | |
628 'variables': { | |
629 'source_file': 'browser/android/data_usage/data_use_tab_ui_manager_a
ndroid.cc', | |
630 }, | |
631 'includes': [ '../build/android/java_cpp_enum.gypi' ], | |
632 }, | |
633 ], # 'targets' | |
634 'includes': [ | |
635 'chrome_android.gypi', | |
636 ]}, # 'includes' | |
637 ], # OS=="android" | |
638 ['OS!="android" and OS!="ios"', { | |
639 'includes': [ 'policy.gypi', ], | |
640 }], | |
641 ['enable_extensions==1', { | |
642 'includes': [ | |
643 'chrome_browser_extensions.gypi', | |
644 ], | |
645 }], | |
646 ['enable_print_preview==1', { | |
647 'targets': [ | |
648 { | |
649 # GN version: //chrome/service | |
650 'target_name': 'service', | |
651 'type': 'static_library', | |
652 'variables': { 'enable_wexit_time_destructors': 1, }, | |
653 'dependencies': [ | |
654 'chrome_resources.gyp:chrome_strings', | |
655 'common', | |
656 '../base/base.gyp:base', | |
657 '../components/components.gyp:cloud_devices_common', | |
658 '../google_apis/google_apis.gyp:google_apis', | |
659 '../jingle/jingle.gyp:notifier', | |
660 '../mojo/mojo_edk.gyp:mojo_system_impl', | |
661 '../net/net.gyp:net', | |
662 '../printing/printing.gyp:printing', | |
663 '../skia/skia.gyp:skia', | |
664 ], | |
665 'sources': [ | |
666 # Note: sources list duplicated in GN build. | |
667 'service/cloud_print/cdd_conversion_win.cc', | |
668 'service/cloud_print/cdd_conversion_win.h', | |
669 'service/cloud_print/cloud_print_auth.cc', | |
670 'service/cloud_print/cloud_print_auth.h', | |
671 'service/cloud_print/cloud_print_connector.cc', | |
672 'service/cloud_print/cloud_print_connector.h', | |
673 'service/cloud_print/cloud_print_message_handler.cc', | |
674 'service/cloud_print/cloud_print_message_handler.h', | |
675 'service/cloud_print/cloud_print_proxy.cc', | |
676 'service/cloud_print/cloud_print_proxy.h', | |
677 'service/cloud_print/cloud_print_proxy_backend.cc', | |
678 'service/cloud_print/cloud_print_proxy_backend.h', | |
679 'service/cloud_print/cloud_print_service_helpers.cc', | |
680 'service/cloud_print/cloud_print_service_helpers.h', | |
681 'service/cloud_print/cloud_print_token_store.cc', | |
682 'service/cloud_print/cloud_print_token_store.h', | |
683 'service/cloud_print/cloud_print_url_fetcher.cc', | |
684 'service/cloud_print/cloud_print_url_fetcher.h', | |
685 'service/cloud_print/cloud_print_wipeout.cc', | |
686 'service/cloud_print/cloud_print_wipeout.h', | |
687 'service/cloud_print/connector_settings.cc', | |
688 'service/cloud_print/connector_settings.h', | |
689 'service/cloud_print/job_status_updater.cc', | |
690 'service/cloud_print/job_status_updater.h', | |
691 'service/cloud_print/print_system.cc', | |
692 'service/cloud_print/print_system.h', | |
693 'service/cloud_print/print_system_win.cc', | |
694 'service/cloud_print/printer_job_handler.cc', | |
695 'service/cloud_print/printer_job_handler.h', | |
696 'service/cloud_print/printer_job_queue_handler.cc', | |
697 'service/cloud_print/printer_job_queue_handler.h', | |
698 'service/net/service_url_request_context_getter.cc', | |
699 'service/net/service_url_request_context_getter.h', | |
700 'service/service_ipc_server.cc', | |
701 'service/service_ipc_server.h', | |
702 'service/service_main.cc', | |
703 'service/service_process.cc', | |
704 'service/service_process.h', | |
705 'service/service_process_prefs.cc', | |
706 'service/service_process_prefs.h', | |
707 ], | |
708 'include_dirs': [ | |
709 '..', | |
710 ], | |
711 'conditions': [ | |
712 ['use_cups==1 and chromeos==0', { | |
713 'dependencies': [ | |
714 '../printing/printing.gyp:cups', | |
715 ], | |
716 'sources': [ | |
717 'service/cloud_print/print_system_cups.cc', | |
718 ], | |
719 }], | |
720 ['OS=="win"', { | |
721 'sources': [ | |
722 'service/service_utility_process_host.cc', | |
723 'service/service_utility_process_host.h', | |
724 ], | |
725 }], | |
726 ['chromeos==1 or (OS!="win" and use_cups!=1)', { | |
727 'sources': [ | |
728 'service/cloud_print/print_system_dummy.cc', | |
729 ], | |
730 }], | |
731 ], | |
732 }, | |
733 ], | |
734 }], | |
735 ], # 'conditions' | |
736 } | |
OLD | NEW |