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

Side by Side Diff: content/content.gyp

Issue 2321743002: Inline content_[tests/browser/android].gypi into GN build. (Closed)
Patch Set: gen file fix Created 4 years, 3 months 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 | « content/browser/tracing/tracing_resources.gyp ('k') | content/content_app.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 'chromium_code': 1, # Use higher warning level.
8 'chromium_enable_vtune_jit_for_v8%': 0, # enable the vtune support for V8 e ngine.
9 },
10 'target_defaults': {
11 'defines': ['CONTENT_IMPLEMENTATION'],
12 'conditions': [
13 # TODO(jschuh): Remove this after crbug.com/173851 gets fixed.
14 ['OS=="win" and target_arch=="x64"', {
15 'msvs_settings': {
16 'VCCLCompilerTool': {
17 'AdditionalOptions': ['/bigobj'],
18 },
19 },
20 }],
21 ],
22 },
23 'targets': [
24 {
25 # GN version: //content/public/common:features
26 'target_name': 'common_features',
27 'includes': [
28 '../build/buildflag_header.gypi',
29 '../third_party/webrtc/build/common.gypi',
30 ],
31 'conditions': [
32 # This conditional looks insane, but without it |rtc_use_h264| is not
33 # recognized as defined. Might have something to do with scopes. Moving
34 # the inclusion of third_party/webrtc/build/common.gypi to outside of
35 # 'targets' is not an option, then we get compile errors.
36 # TODO(hbos): crbug.com/584219
37 ['1==1', {
38 'variables': {
39 'buildflag_header_path': 'content/public/common/features.h',
40 'buildflag_flags': [
41 'RTC_USE_H264=<(rtc_use_h264)',
42 ],
43 },
44 }],
45 ],
46 },
47 {
48 # GN version: //content/public/common:feature_h264_with_openh264_ffmpeg
49 'target_name': 'feature_h264_with_openh264_ffmpeg',
50 'type': 'static_library',
51 'include_dirs': [ '<@(DEPTH)' ],
52 'dependencies': [
53 'common_features',
54 ],
55 'sources': [
56 'public/common/feature_h264_with_openh264_ffmpeg.cc',
57 'public/common/feature_h264_with_openh264_ffmpeg.h',
58 ],
59 },
60 {
61 # GN version: //content/public/app:browser_manifest
62 'target_name': 'content_app_browser_manifest',
63 'type': 'none',
64 'variables': {
65 'type': 'exe',
66 'name': 'content_browser',
67 'packaged_manifests': [
68 '<(PRODUCT_DIR)/Packages/user/manifest.json',
69 ],
70 'source_manifest': '<(DEPTH)/content/public/app/mojo/content_browser_man ifest.json',
71 },
72 'includes': [
73 '../services/shell/public/service_manifest.gypi',
74 ],
75 'dependencies': [
76 '../services/user/user.gyp:user_app_manifest',
77 ],
78 'hard_dependency': 1,
79 },
80 {
81 # GN version: //content/public/app:gpu_manifest
82 'target_name': 'content_app_gpu_manifest',
83 'type': 'none',
84 'variables': {
85 'type': 'exe',
86 'name': 'content_gpu',
87 'source_manifest': '<(DEPTH)/content/public/app/mojo/content_gpu_manifes t.json',
88 },
89 'includes': [
90 '../services/shell/public/service_manifest.gypi',
91 ],
92 'hard_dependency': 1,
93 },
94 {
95 # GN version: //content/public/app:renderer_manifest
96 'target_name': 'content_app_renderer_manifest',
97 'type': 'none',
98 'variables': {
99 'type': 'exe',
100 'name': 'content_renderer',
101 'source_manifest': '<(DEPTH)/content/public/app/mojo/content_renderer_ma nifest.json',
102 },
103 'includes': [
104 '../services/shell/public/service_manifest.gypi',
105 ],
106 'hard_dependency': 1,
107 },
108 {
109 # GN version: //content/public/app:utility_manifest
110 'target_name': 'content_app_utility_manifest',
111 'type': 'none',
112 'variables': {
113 'type': 'exe',
114 'name': 'content_utility',
115 'source_manifest': '<(DEPTH)/content/public/app/mojo/content_utility_man ifest.json',
116 },
117 'includes': [
118 '../services/shell/public/service_manifest.gypi',
119 ],
120 'hard_dependency': 1,
121 },
122 ],
123 'includes': [
124 '../build/win_precompile.gypi',
125 'content_resources.gypi',
126 ],
127 'conditions': [
128 ['OS == "win"', {
129 'targets': [
130 {
131 # GN: //content:sandbox_helper_win
132 'target_name': 'sandbox_helper_win',
133 'type': 'static_library',
134 'include_dirs': [
135 '..',
136 ],
137 'dependencies': [
138 '../sandbox/sandbox.gyp:sandbox',
139 ],
140 'sources': [
141 'app/sandbox_helper_win.cc',
142 'public/app/sandbox_helper_win.h',
143 ],
144 }
145 ],
146 }],
147 # In component mode, we build all of content as a single DLL.
148 # However, in the static mode, we need to build content as multiple
149 # targets in order to prevent dependencies from getting introduced
150 # upstream unnecessarily (e.g., content_renderer depends on allocator
151 # and chrome_exe depends on content_common but we don't want
152 # chrome_exe to have to depend on allocator).
153 ['component=="static_library"', {
154 'target_defines': [
155 'COMPILE_CONTENT_STATICALLY',
156 ],
157 'targets': [
158 {
159 # GN version: //content
160 'target_name': 'content',
161 'type': 'none',
162 'dependencies': [
163 'content_browser',
164 'content_child',
165 'content_common',
166 'content_gpu',
167 'content_ppapi_plugin',
168 'content_renderer',
169 'content_utility',
170 ],
171 'export_dependent_settings': [
172 'content_common',
173 ],
174 },
175 {
176 # GN version: //content/app:browser
177 'target_name': 'content_app_browser',
178 'type': 'static_library',
179 'variables': { 'enable_wexit_time_destructors': 1, },
180 'includes': [
181 'content_app.gypi',
182 ],
183 'dependencies': [
184 'content_common',
185 ],
186 'export_dependent_settings': [
187 'content_common',
188 ],
189 'conditions': [
190 ['chrome_multiple_dll', {
191 'defines': [
192 'CHROME_MULTIPLE_DLL_BROWSER',
193 ],
194 }],
195 ],
196 },
197 {
198 # GN version: //content/app:child
199 'target_name': 'content_app_child',
200 'type': 'static_library',
201 'variables': { 'enable_wexit_time_destructors': 1, },
202 'includes': [
203 'content_app.gypi',
204 ],
205 'dependencies': [
206 'content_common',
207 ],
208 'export_dependent_settings': [
209 'content_common',
210 ],
211 'conditions': [
212 ['chrome_multiple_dll', {
213 'defines': [
214 'CHROME_MULTIPLE_DLL_CHILD',
215 ],
216 }],
217 ],
218 },
219 {
220 # GN version: //content/app:both
221 'target_name': 'content_app_both',
222 'type': 'static_library',
223 'variables': { 'enable_wexit_time_destructors': 1, },
224 'includes': [
225 'content_app.gypi',
226 ],
227 'dependencies': [
228 'content_common',
229 ],
230 'export_dependent_settings': [
231 'content_common',
232 ],
233 },
234 {
235 # GN version: //content/browser and //content/public/browser
236 'target_name': 'content_browser',
237 'type': 'static_library',
238 'variables': { 'enable_wexit_time_destructors': 1, },
239 'includes': [
240 'content_browser.gypi',
241 # Disable LTO due to ELF section name out of range
242 # crbug.com/422251
243 '../build/android/disable_gcc_lto.gypi',
244 ],
245 'dependencies': [
246 'content_common',
247 'content_gpu',
248 'content_resources',
249 ],
250 'export_dependent_settings': [
251 'content_common',
252 ],
253 'conditions': [
254 ['java_bridge==1', {
255 'dependencies': [
256 'content_child',
257 ]
258 }],
259 ['OS=="android"', {
260 'dependencies': [
261 'content_utility',
262 ],
263 }],
264 # Shard this target into parts to work around linker limitations
265 # on link time code generation builds. See crbug.com/616946
266 ['OS=="win" and buildtype=="Official"', {
267 'msvs_shard': 5,
268 }],
269 ],
270 },
271 {
272 # GN version: //content/common and //content/public/common
273 'target_name': 'content_common',
274 'type': 'static_library',
275 'variables': { 'enable_wexit_time_destructors': 1, },
276 'dependencies': [
277 'content_resources',
278 ],
279 'includes': [
280 'content_common.gypi',
281 ],
282 # Disable c4267 warnings until we fix size_t to int truncations.
283 'msvs_disabled_warnings': [ 4267, ],
284 },
285 {
286 # GN version: //content/child and //content/public/child
287 'target_name': 'content_child',
288 'type': 'static_library',
289 'variables': { 'enable_wexit_time_destructors': 1, },
290 'includes': [
291 'content_child.gypi',
292 ],
293 'dependencies': [
294 'content_resources',
295 ],
296 # Disable c4267 warnings until we fix size_t to int truncations.
297 'msvs_disabled_warnings': [ 4267, ],
298 },
299 {
300 # GN version: //content/gpu
301 'target_name': 'content_gpu',
302 'type': 'static_library',
303 'variables': { 'enable_wexit_time_destructors': 1, },
304 'includes': [
305 'content_gpu.gypi',
306 ],
307 'dependencies': [
308 'content_child',
309 'content_common',
310 ],
311 },
312 {
313 # GN version: //content/ppapi_plugin
314 'target_name': 'content_ppapi_plugin',
315 'type': 'static_library',
316 'variables': { 'enable_wexit_time_destructors': 1, },
317 'includes': [
318 'content_ppapi_plugin.gypi',
319 ],
320 # Disable c4267 warnings until we fix size_t to int truncations.
321 'msvs_disabled_warnings': [ 4267, ],
322 },
323 {
324 # GN version: //content/renderer and //content/public/renderer
325 'target_name': 'content_renderer',
326 'type': 'static_library',
327 'variables': { 'enable_wexit_time_destructors': 1, },
328 'includes': [
329 'content_renderer.gypi',
330 '../third_party/webrtc/build/common.gypi',
331 ],
332 'dependencies': [
333 'common_features',
334 'content_child',
335 'content_common',
336 'content_gpu',
337 'content_resources',
338 ],
339 'export_dependent_settings': [
340 'content_common',
341 ],
342 'conditions': [
343 ['chromium_enable_vtune_jit_for_v8==1', {
344 'dependencies': [
345 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune',
346 ],
347 }],
348 ['rtc_use_h264==1', {
349 'dependencies': [
350 '../third_party/openh264/openh264.gyp:openh264_encoder',
351 '../third_party/webrtc/modules/modules.gyp:webrtc_h264',
352 ],
353 }],
354 ],
355 },
356 {
357 # GN version: //content/utility and //content/public/utility
358 'target_name': 'content_utility',
359 'type': 'static_library',
360 'variables': { 'enable_wexit_time_destructors': 1, },
361 'includes': [
362 'content_utility.gypi',
363 ],
364 'dependencies': [
365 'content_child',
366 'content_common',
367 'content_common_mojo_bindings.gyp:content_common_mojo_bindings',
368 ],
369 },
370 ],
371 },
372 { # component != static_library
373 'targets': [
374 {
375 # GN version: //content
376 'target_name': 'content',
377 'type': 'shared_library',
378 'variables': { 'enable_wexit_time_destructors': 1, },
379 'dependencies': [
380 'common_features',
381 'content_resources',
382 ],
383 'conditions': [
384 ['chromium_enable_vtune_jit_for_v8==1', {
385 'dependencies': [
386 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune',
387 ],
388 }],
389 ['rtc_use_h264==1', {
390 'dependencies': [
391 '../third_party/openh264/openh264.gyp:openh264_encoder',
392 '../third_party/webrtc/modules/modules.gyp:webrtc_h264',
393 ],
394 }],
395 ],
396 'includes': [
397 'content_app.gypi',
398 'content_browser.gypi',
399 'content_child.gypi',
400 'content_common.gypi',
401 'content_gpu.gypi',
402 'content_ppapi_plugin.gypi',
403 'content_renderer.gypi',
404 'content_utility.gypi',
405 '../third_party/webrtc/build/common.gypi',
406 ],
407 'msvs_settings': {
408 'VCLinkerTool': {
409 'conditions': [
410 ['incremental_chrome_dll==1', {
411 'UseLibraryDependencyInputs': "true",
412 }],
413 ],
414 },
415 },
416 },
417 {
418 # GN version: //content/app:browser
419 'target_name': 'content_app_browser',
420 'type': 'none',
421 'dependencies': ['content', 'content_browser'],
422 },
423 {
424 # GN version: //content/app:child
425 'target_name': 'content_app_child',
426 'type': 'none',
427 'dependencies': ['content', 'content_child'],
428 },
429 {
430 # GN version: //content/app:both
431 'target_name': 'content_app_both',
432 'type': 'none',
433 'dependencies': ['content'],
434 'export_dependent_settings': ['content'],
435 },
436 {
437 # GN version: //content/browser and //content/public/browser
438 'target_name': 'content_browser',
439 'type': 'none',
440 'dependencies': ['content'],
441 'export_dependent_settings': ['content'],
442 },
443 {
444 # GN version: //content/common and //content/public/common
445 'target_name': 'content_common',
446 'type': 'none',
447 'dependencies': [
448 'content',
449 'content_resources'
450 ],
451 # Disable c4267 warnings until we fix size_t to int truncations.
452 'msvs_disabled_warnings': [ 4267, ],
453 'export_dependent_settings': ['content'],
454 },
455 {
456 # GN Version: //content/child
457 'target_name': 'content_child',
458 'type': 'none',
459 'dependencies': ['content'],
460 },
461 {
462 # GN version: //content/gpu
463 'target_name': 'content_gpu',
464 'type': 'none',
465 'dependencies': ['content'],
466 },
467 {
468 # GN version: //content/ppapi_plugin
469 'target_name': 'content_ppapi_plugin',
470 'type': 'none',
471 'dependencies': ['content'],
472 # Disable c4267 warnings until we fix size_t to int truncations.
473 'msvs_disabled_warnings': [ 4267, ],
474 },
475 {
476 # GN version: //content/renderer and //content/public/renderer
477 'target_name': 'content_renderer',
478 'type': 'none',
479 'dependencies': ['content'],
480 'export_dependent_settings': ['content'],
481 },
482 {
483 # GN version: //content/utility
484 'target_name': 'content_utility',
485 'type': 'none',
486 'dependencies': ['content'],
487 'export_dependent_settings': ['content'],
488 },
489 ],
490 }],
491 ['OS == "android"', {
492 'targets': [
493 {
494 'target_name': 'common_aidl',
495 'type': 'none',
496 'variables': {
497 'aidl_interface_file': 'public/android/java/src/org/chromium/content /common/common.aidl',
498 'aidl_import_include': 'public/android/java/src',
499 },
500 'sources': [
501 'public/android/java/src/org/chromium/content/common/IChildProcessCa llback.aidl',
502 'public/android/java/src/org/chromium/content/common/IChildProcessSe rvice.aidl',
503 ],
504 'includes': [ '../build/java_aidl.gypi' ],
505 },
506 {
507 'target_name': 'content_java',
508 'type': 'none',
509 'dependencies': [
510 '../base/base.gyp:base',
511 '../device/battery/battery.gyp:device_battery_java',
512 '../device/bluetooth/bluetooth.gyp:device_bluetooth_java',
513 '../device/nfc/nfc.gyp:device_nfc_java',
514 '../device/usb/usb.gyp:device_usb_java',
515 '../device/vibration/vibration.gyp:device_vibration_java',
516 '../media/media.gyp:media_java',
517 '../mojo/mojo_base.gyp:mojo_system_java',
518 '../mojo/mojo_public.gyp:mojo_bindings_java',
519 '../net/net.gyp:net',
520 '../skia/skia.gyp:skia_mojo',
521 '../third_party/android_tools/android_tools.gyp:android_support_v13_ javalib',
522 '../third_party/WebKit/public/blink_headers.gyp:blink_headers_java',
523 '../ui/android/ui_android.gyp:ui_java',
524 '../ui/gfx/gfx.gyp:mojo_geometry_bindings',
525 '../ui/touch_selection/ui_touch_selection.gyp:selection_event_type_j ava',
526 '../ui/touch_selection/ui_touch_selection.gyp:touch_handle_orientati on_java',
527 'common_aidl',
528 'console_message_level_java',
529 'content_common',
530 'content_strings_grd',
531 'content_gamepad_mapping',
532 'device_sensors_consts_java',
533 'sensor_manager_android_java',
534 'gesture_event_type_java',
535 'invalidate_types_java',
536 'navigation_controller_java',
537 'popup_item_type_java',
538 'result_codes_java',
539 'readback_response_java',
540 'speech_recognition_error_java',
541 'top_controls_state_java',
542 'screen_orientation_values_java',
543 'accessibility_java',
544 ],
545 'variables': {
546 'java_in_dir': '../content/public/android/java',
547 'has_java_resources': 1,
548 'R_package': 'org.chromium.content',
549 'R_package_relpath': 'org/chromium/content',
550 },
551 'includes': [ '../build/java.gypi' ],
552 },
553 {
554 'target_name': 'console_message_level_java',
555 'type': 'none',
556 'variables': {
557 'source_file': 'public/common/console_message_level.h',
558 },
559 'includes': [ '../build/android/java_cpp_enum.gypi' ],
560 },
561 {
562 'target_name': 'content_strings_grd',
563 # The android_webview/Android.mk file depends on this target directly.
564 'android_unmangled_name': 1,
565 'type': 'none',
566 'variables': {
567 'grd_file': '../content/public/android/java/strings/android_content_ strings.grd',
568 },
569 'includes': [
570 '../build/java_strings_grd.gypi',
571 ],
572 },
573 {
574 'target_name': 'device_sensors_consts_java',
575 'type': 'none',
576 'variables': {
577 'source_file': 'browser/device_sensors/device_sensors_consts.h',
578 },
579 'includes': [ '../build/android/java_cpp_enum.gypi' ],
580 },
581 {
582 'target_name': 'sensor_manager_android_java',
583 'type': 'none',
584 'variables': {
585 'source_file': 'browser/device_sensors/sensor_manager_android.h',
586 },
587 'includes': [ '../build/android/java_cpp_enum.gypi' ],
588 },
589 {
590 'target_name': 'content_gamepad_mapping',
591 'type': 'none',
592 'variables': {
593 'source_file': 'browser/gamepad/gamepad_standard_mappings.h',
594 },
595 'includes': [ '../build/android/java_cpp_enum.gypi' ],
596 },
597 {
598 'target_name': 'gesture_event_type_java',
599 'type': 'none',
600 'variables': {
601 'source_file': 'browser/android/gesture_event_type.h',
602 },
603 'includes': [ '../build/android/java_cpp_enum.gypi' ],
604 },
605 {
606 'target_name': 'invalidate_types_java',
607 'type': 'none',
608 'variables': {
609 'source_file': 'public/browser/invalidate_type.h',
610 },
611 'includes': [ '../build/android/java_cpp_enum.gypi' ],
612 },
613 {
614 'target_name': 'navigation_controller_java',
615 'type': 'none',
616 'variables': {
617 'source_file': 'public/browser/navigation_controller.h',
618 },
619 'includes': [ '../build/android/java_cpp_enum.gypi' ],
620 },
621 {
622 'target_name': 'popup_item_type_java',
623 'type': 'none',
624 'variables': {
625 'source_file': 'browser/android/content_view_core_impl.cc',
626 },
627 'includes': [ '../build/android/java_cpp_enum.gypi' ],
628 },
629 {
630 'target_name': 'readback_response_java',
631 'type': 'none',
632 'variables': {
633 'source_file': 'public/browser/readback_types.h',
634 },
635 'includes': [ '../build/android/java_cpp_enum.gypi' ],
636 },
637 {
638 'target_name': 'result_codes_java',
639 'type': 'none',
640 'variables': {
641 'source_file': 'public/common/result_codes.h',
642 },
643 'includes': [ '../build/android/java_cpp_enum.gypi' ],
644 },
645 {
646 'target_name': 'speech_recognition_error_java',
647 'type': 'none',
648 'variables': {
649 'source_file': 'public/common/speech_recognition_error.h',
650 },
651 'includes': [ '../build/android/java_cpp_enum.gypi' ],
652 },
653 {
654 'target_name': 'top_controls_state_java',
655 'type': 'none',
656 'variables': {
657 'source_file': 'public/common/top_controls_state.h',
658 },
659 'includes': [ '../build/android/java_cpp_enum.gypi' ],
660 },
661 {
662 'target_name': 'screen_orientation_values_java',
663 'type': 'none',
664 'variables': {
665 'source_file': 'public/common/screen_orientation_values.h',
666 },
667 'includes': [ '../build/android/java_cpp_enum.gypi' ],
668 },
669 {
670 'target_name': 'accessibility_java',
671 'type': 'none',
672 'variables': {
673 'source_file': 'browser/accessibility/browser_accessibility_manager_ android.h',
674 },
675 'includes': [ '../build/android/java_cpp_enum.gypi' ],
676 },
677 {
678 'target_name': 'java_set_jni_headers',
679 'type': 'none',
680 'variables': {
681 'jni_gen_package': 'content',
682 'input_java_class': 'java/util/HashSet.class',
683 },
684 'includes': [ '../build/jar_file_jni_generator.gypi' ],
685 },
686 {
687 'target_name': 'content_jni_headers',
688 'type': 'none',
689 'dependencies': [
690 'java_set_jni_headers',
691 ],
692 'includes': [ 'content_jni.gypi' ],
693 },
694 {
695 'target_name': 'content_shell_assets_copy',
696 'type': 'none',
697 'dependencies': ['content_shell_and_tests.gyp:content_shell_pak'],
698 'variables': {
699 'src_files': ['<(PRODUCT_DIR)/content_shell.pak'],
700 'conditions': [
701 ['v8_use_external_startup_data==1', {
702 'dependencies': ['<(DEPTH)/v8/src/v8.gyp:v8_external_snapshot'],
703 'renaming_sources': [
704 '<(PRODUCT_DIR)/natives_blob.bin',
705 '<(PRODUCT_DIR)/snapshot_blob.bin',
706 ],
707 'renaming_destinations': [
708 'natives_blob_<(arch_suffix).bin',
709 'snapshot_blob_<(arch_suffix).bin',
710 ],
711 }],
712 ['icu_use_data_file_flag==1', {
713 'dependencies': ['<(DEPTH)/third_party/icu/icu.gyp:icudata'],
714 'src_files': ['<(PRODUCT_DIR)/icudtl.dat'],
715 }],
716 ],
717 'dest_path': '<(PRODUCT_DIR)/content_shell/assets',
718 'clear': 1,
719 },
720 'includes': [
721 '../build/android/copy_ex.gypi',
722 '../build/android/v8_external_startup_data_arch_suffix.gypi',
723 ],
724 },
725 ],
726 }], # OS == "android"
727 ],
728 }
OLDNEW
« no previous file with comments | « content/browser/tracing/tracing_resources.gyp ('k') | content/content_app.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698