diff options
author | pkotwicz <pkotwicz@chromium.org> | 2015-10-15 11:07:09 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-15 18:08:14 +0000 |
commit | 11f0177394eedc116c54e786d65b8c5dc7d72440 (patch) | |
tree | 35734b241350c0fc4e7c51edd3a655bee08a7187 /build | |
parent | a9daf22e6c22c653ae88e3255894a3b253ccd2cd (diff) | |
download | chromium_src-11f0177394eedc116c54e786d65b8c5dc7d72440.zip chromium_src-11f0177394eedc116c54e786d65b8c5dc7d72440.tar.gz chromium_src-11f0177394eedc116c54e786d65b8c5dc7d72440.tar.bz2 |
Attempt #3: Make both_gn_and_gyp compile on Android
BUG=504082
Review URL: https://codereview.chromium.org/1407723003
Cr-Commit-Position: refs/heads/master@{#354303}
Diffstat (limited to 'build')
-rw-r--r-- | build/all.gyp | 2 | ||||
-rw-r--r-- | build/gn_migration.gypi | 272 |
2 files changed, 136 insertions, 138 deletions
diff --git a/build/all.gyp b/build/all.gyp index 8eabf88..c87fc2d 100644 --- a/build/all.gyp +++ b/build/all.gyp @@ -498,7 +498,7 @@ ], 'conditions': [ # TODO(GYP): make gn_migration.gypi work unconditionally. - ['OS=="mac" or OS=="win" or (OS=="linux" and target_arch=="x64" and chromecast==0)', { + ['OS=="mac" or OS=="win" or (OS=="android" and chromecast==0) or (OS=="linux" and target_arch=="x64" and chromecast==0)', { 'includes': [ 'gn_migration.gypi', ], diff --git a/build/gn_migration.gypi b/build/gn_migration.gypi index 0d5a7a5..6ce0cd4 100644 --- a/build/gn_migration.gypi +++ b/build/gn_migration.gypi @@ -37,25 +37,12 @@ '../base/base.gyp:base_i18n_perftests', '../base/base.gyp:base_perftests', '../base/base.gyp:base_unittests', - '../base/base.gyp:build_utf8_validator_tables#host', '../base/base.gyp:check_example', '../cc/cc_tests.gyp:cc_perftests', '../cc/cc_tests.gyp:cc_unittests', '../cc/blink/cc_blink_tests.gyp:cc_blink_unittests', - '../chrome/chrome.gyp:chrome', - '../chrome/chrome.gyp:browser_tests', - '../chrome/chrome.gyp:chrome_app_unittests', - '../chrome/chrome.gyp:chromedriver', - '../chrome/chrome.gyp:chromedriver_tests', - '../chrome/chrome.gyp:chromedriver_unittests', - '../chrome/chrome.gyp:interactive_ui_tests', '../chrome/chrome.gyp:load_library_perf_tests', - '../chrome/chrome.gyp:performance_browser_tests', - '../chrome/chrome.gyp:sync_integration_tests', - '../chrome/chrome.gyp:sync_performance_tests', '../chrome/chrome.gyp:unit_tests', - '../chrome/tools/profile_reset/jtl_compiler.gyp:jtl_compiler', - '../cloud_print/cloud_print.gyp:cloud_print_unittests', '../components/components.gyp:network_hints_browser', '../components/components.gyp:policy_templates', '../components/components_tests.gyp:components_browsertests', @@ -67,144 +54,45 @@ '../content/content_shell_and_tests.gyp:content_gl_benchmark', '../content/content_shell_and_tests.gyp:content_gl_tests', '../content/content_shell_and_tests.gyp:content_perftests', - '../content/content_shell_and_tests.gyp:content_shell', '../content/content_shell_and_tests.gyp:content_unittests', - '../courgette/courgette.gyp:courgette', - '../courgette/courgette.gyp:courgette_fuzz', - '../courgette/courgette.gyp:courgette_minimal_tool', - '../courgette/courgette.gyp:courgette_unittests', '../crypto/crypto.gyp:crypto_unittests', - '../extensions/extensions_tests.gyp:extensions_browsertests', - '../extensions/extensions_tests.gyp:extensions_unittests', '../device/device_tests.gyp:device_unittests', '../gin/gin.gyp:gin_v8_snapshot_fingerprint', - '../gin/gin.gyp:gin_shell', - '../gin/gin.gyp:gin_unittests', - '../google_apis/gcm/gcm.gyp:gcm_unit_tests', - '../google_apis/gcm/gcm.gyp:mcs_probe', - '../google_apis/google_apis.gyp:google_apis_unittests', '../gpu/gpu.gyp:angle_unittests', '../gpu/gpu.gyp:gl_tests', '../gpu/gpu.gyp:gpu_perftests', '../gpu/gpu.gyp:gpu_unittests', - '../gpu/gles2_conform_support/gles2_conform_support.gyp:gles2_conform_support', # TODO(GYP) crbug.com/471920 - '../gpu/gles2_conform_support/gles2_conform_test.gyp:gles2_conform_test', # TODO(GYP) crbug.com/471920 - '../gpu/khronos_glcts_support/khronos_glcts_test.gyp:khronos_glcts_test', # TODO(GYP) crbug.com/471903 to make this complete. - '../ipc/ipc.gyp:ipc_perftests', '../ipc/ipc.gyp:ipc_tests', '../ipc/mojo/ipc_mojo.gyp:ipc_mojo_unittests', - '../jingle/jingle.gyp:jingle_unittests', - '../media/media.gyp:ffmpeg_regression_tests', # TODO(GYP) this should be conditional on media_use_ffmpeg '../media/media.gyp:media_perftests', '../media/media.gyp:media_unittests', '../media/midi/midi.gyp:midi_unittests', - '../media/cast/cast.gyp:cast_benchmarks', - '../media/cast/cast.gyp:cast_unittests', - '../media/cast/cast.gyp:generate_barcode_video', - '../media/cast/cast.gyp:generate_timecode_audio', - '../mojo/mojo.gyp:mojo', '../mojo/mojo_base.gyp:mojo_application_base', - '../mojo/mojo_base.gyp:mojo_common_unittests', - '../net/net.gyp:crash_cache', - '../net/net.gyp:crl_set_dump', - '../net/net.gyp:dns_fuzz_stub', '../net/net.gyp:dump_cache', - '../net/net.gyp:gdig', - '../net/net.gyp:get_server_time', - '../net/net.gyp:hpack_example_generator', - '../net/net.gyp:hpack_fuzz_mutator', - '../net/net.gyp:hpack_fuzz_wrapper', '../net/net.gyp:net_perftests', '../net/net.gyp:net_unittests', - '../net/net.gyp:net_watcher', # TODO(GYP): This should be conditional on use_v8_in_net - '../net/net.gyp:run_testserver', - '../net/net.gyp:stress_cache', - '../net/net.gyp:tld_cleanup', - '../ppapi/ppapi_internal.gyp:ppapi_example_audio', - '../ppapi/ppapi_internal.gyp:ppapi_example_audio_input', - '../ppapi/ppapi_internal.gyp:ppapi_example_c_stub', - '../ppapi/ppapi_internal.gyp:ppapi_example_cc_stub', - '../ppapi/ppapi_internal.gyp:ppapi_example_compositor', - '../ppapi/ppapi_internal.gyp:ppapi_example_crxfs', - '../ppapi/ppapi_internal.gyp:ppapi_example_enumerate_devices', - '../ppapi/ppapi_internal.gyp:ppapi_example_file_chooser', - '../ppapi/ppapi_internal.gyp:ppapi_example_flash_topmost', - '../ppapi/ppapi_internal.gyp:ppapi_example_gamepad', - '../ppapi/ppapi_internal.gyp:ppapi_example_gles2', - '../ppapi/ppapi_internal.gyp:ppapi_example_gles2_spinning_cube', - '../ppapi/ppapi_internal.gyp:ppapi_example_graphics_2d', - '../ppapi/ppapi_internal.gyp:ppapi_example_ime', - '../ppapi/ppapi_internal.gyp:ppapi_example_input', - '../ppapi/ppapi_internal.gyp:ppapi_example_media_stream_audio', - '../ppapi/ppapi_internal.gyp:ppapi_example_media_stream_video', - '../ppapi/ppapi_internal.gyp:ppapi_example_mouse_cursor', - '../ppapi/ppapi_internal.gyp:ppapi_example_mouse_lock', - '../ppapi/ppapi_internal.gyp:ppapi_example_paint_manager', - '../ppapi/ppapi_internal.gyp:ppapi_example_post_message', - '../ppapi/ppapi_internal.gyp:ppapi_example_printing', - '../ppapi/ppapi_internal.gyp:ppapi_example_scaling', - '../ppapi/ppapi_internal.gyp:ppapi_example_scroll', - '../ppapi/ppapi_internal.gyp:ppapi_example_simple_font', - '../ppapi/ppapi_internal.gyp:ppapi_example_threading', - '../ppapi/ppapi_internal.gyp:ppapi_example_url_loader', - '../ppapi/ppapi_internal.gyp:ppapi_example_url_loader_file', - '../ppapi/ppapi_internal.gyp:ppapi_example_vc', - '../ppapi/ppapi_internal.gyp:ppapi_example_video_decode', - '../ppapi/ppapi_internal.gyp:ppapi_example_video_decode_dev', - '../ppapi/ppapi_internal.gyp:ppapi_example_video_effects', - '../ppapi/ppapi_internal.gyp:ppapi_example_video_encode', - '../ppapi/ppapi_internal.gyp:ppapi_tests', - '../ppapi/ppapi_internal.gyp:ppapi_perftests', - '../ppapi/ppapi_internal.gyp:ppapi_unittests', - '../ppapi/tools/ppapi_tools.gyp:pepper_hash_for_uma', '../printing/printing.gyp:printing_unittests', '../skia/skia_tests.gyp:skia_unittests', - '../skia/skia.gyp:filter_fuzz_stub', - '../skia/skia.gyp:image_operations_bench', '../sql/sql.gyp:sql_unittests', - '../sync/sync.gyp:run_sync_testserver', '../sync/sync.gyp:sync_unit_tests', - '../sync/tools/sync_tools.gyp:sync_client', - '../sync/tools/sync_tools.gyp:sync_listen_notifications', '../testing/gmock.gyp:gmock_main', '../third_party/WebKit/Source/platform/blink_platform_tests.gyp:blink_heap_unittests', '../third_party/WebKit/Source/platform/blink_platform_tests.gyp:blink_platform_unittests', '../third_party/WebKit/Source/web/web_tests.gyp:webkit_unit_tests', '../third_party/WebKit/Source/wtf/wtf_tests.gyp:wtf_unittests', - '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_unittests', - '../third_party/codesighs/codesighs.gyp:codesighs', - '../third_party/codesighs/codesighs.gyp:maptsvdifftool', '../third_party/leveldatabase/leveldatabase.gyp:env_chromium_unittests', - '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber_unittests', '../third_party/libaddressinput/libaddressinput.gyp:libaddressinput_unittests', - '../third_party/mojo/mojo_edk_tests.gyp:mojo_system_unittests', - '../third_party/mojo/mojo_edk_tests.gyp:mojo_public_bindings_unittests', - '../third_party/mojo/mojo_edk_tests.gyp:mojo_public_environment_unittests', - '../third_party/mojo/mojo_edk_tests.gyp:mojo_public_system_perftests', - '../third_party/mojo/mojo_edk_tests.gyp:mojo_public_system_unittests', - '../third_party/mojo/mojo_edk_tests.gyp:mojo_public_utility_unittests', '../third_party/openh264/tests/openh264_unittests.gyp:*', - '../third_party/pdfium/samples/samples.gyp:pdfium_diff', - '../third_party/pdfium/samples/samples.gyp:pdfium_test', '../third_party/smhasher/smhasher.gyp:pmurhash', - '../tools/gn/gn.gyp:gn', - '../tools/gn/gn.gyp:generate_test_gn_data', - '../tools/gn/gn.gyp:gn_unittests', - '../tools/imagediff/image_diff.gyp:image_diff', - '../tools/perf/clear_system_cache/clear_system_cache.gyp:clear_system_cache', '../tools/telemetry/telemetry.gyp:bitmaptools#host', '../ui/accessibility/accessibility.gyp:accessibility_unittests', - '../ui/app_list/app_list.gyp:app_list_unittests', '../ui/base/ui_base_tests.gyp:ui_base_unittests', - '../ui/compositor/compositor.gyp:compositor_unittests', '../ui/display/display.gyp:display_unittests', '../ui/events/events.gyp:events_unittests', '../ui/gfx/gfx_tests.gyp:gfx_unittests', '../ui/gl/gl_tests.gyp:gl_unittests', - '../ui/message_center/message_center.gyp:message_center_unittests', '../ui/snapshot/snapshot.gyp:snapshot_unittests', '../ui/touch_selection/ui_touch_selection.gyp:ui_touch_selection_unittests', - '../ui/views/examples/examples.gyp:views_examples_with_content_exe', '../url/url.gyp:url_unittests', '../v8/tools/gyp/v8.gyp:v8_snapshot', '../v8/tools/gyp/v8.gyp:postmortem-metadata', @@ -288,10 +176,13 @@ ['OS=="android"', { 'dependencies': [ '../base/base.gyp:chromium_android_linker', - '../breakpad/breakpad.gyp:dump_syms', + '../breakpad/breakpad.gyp:dump_syms#host', + '../breakpad/breakpad.gyp:symupload#host', + '../breakpad/breakpad.gyp:minidump_dump#host', + '../breakpad/breakpad.gyp:minidump_stackwalk#host', '../build/android/rezip.gyp:rezip_apk_jar', #"//clank" TODO(GYP) - conditional somehow? - '../tools/android/heap_profiler/heap_profiler_unittests_apk', + '../tools/android/heap_profiler/heap_profiler.gyp:heap_profiler_unittests_apk', '../tools/imagediff/image_diff.gyp:image_diff#host', '../tools/telemetry/telemetry.gyp:bitmaptools#host', @@ -328,37 +219,137 @@ #"//ui/message_center:test_support", ], 'dependencies!': [ - '../breakpad/breakpad.gyp:symupload', - '../chrome/chrome.gyp:browser_tests', + # TODO(GYP): All of these targets need to be ported over. + '../chrome/chrome.gyp:unit_tests', + '../url/url.gyp:url_unittests', + ], + }], + ['OS=="android" and chromecast==0', { + 'dependencies': [ + '../chrome/android/chrome_apk.gyp:chrome_public_apk', + '../chrome/android/chrome_apk.gyp:chrome_public_test_apk', + '../chrome/chrome.gyp:chromedriver_webview_shell_apk', + '../third_party/custom_tabs_client/custom_tabs_client.gyp:custom_tabs_client_example_apk', + ], + }], + ['OS!="android"', { + 'dependencies': [ + '../base/base.gyp:build_utf8_validator_tables#host', + '../chrome/chrome.gyp:chrome_app_unittests', '../chrome/chrome.gyp:chromedriver', - '../chrome/chrome.gyp:chromedriver_unitests', + '../chrome/chrome.gyp:chromedriver_tests', + '../chrome/chrome.gyp:chromedriver_unittests', + '../cloud_print/cloud_print.gyp:cloud_print_unittests', + '../content/content_shell_and_tests.gyp:content_shell', + '../courgette/courgette.gyp:courgette', + '../courgette/courgette.gyp:courgette_fuzz', + '../courgette/courgette.gyp:courgette_minimal_tool', + '../courgette/courgette.gyp:courgette_unittests', + '../gin/gin.gyp:gin_unittests', + '../gpu/gles2_conform_support/gles2_conform_support.gyp:gles2_conform_support', # TODO(GYP) crbug.com/471920 + '../google_apis/gcm/gcm.gyp:gcm_unit_tests', + '../google_apis/gcm/gcm.gyp:mcs_probe', + '../google_apis/google_apis.gyp:google_apis_unittests', + '../jingle/jingle.gyp:jingle_unittests', + '../media/cast/cast.gyp:cast_benchmarks', + '../media/cast/cast.gyp:cast_unittests', + '../media/cast/cast.gyp:generate_barcode_video', + '../media/cast/cast.gyp:generate_timecode_audio', + '../mojo/mojo.gyp:mojo', + '../net/net.gyp:crash_cache', + '../net/net.gyp:crl_set_dump', + '../net/net.gyp:dns_fuzz_stub', + '../net/net.gyp:gdig', + '../net/net.gyp:get_server_time', + '../net/net.gyp:hpack_example_generator', + '../net/net.gyp:hpack_fuzz_mutator', + '../net/net.gyp:hpack_fuzz_wrapper', + '../net/net.gyp:net_watcher', # TODO(GYP): This should be conditional on use_v8_in_net + '../net/net.gyp:run_testserver', + '../net/net.gyp:stress_cache', + '../net/net.gyp:tld_cleanup', + '../ppapi/ppapi_internal.gyp:ppapi_example_audio', + '../ppapi/ppapi_internal.gyp:ppapi_example_audio_input', + '../ppapi/ppapi_internal.gyp:ppapi_example_c_stub', + '../ppapi/ppapi_internal.gyp:ppapi_example_cc_stub', + '../ppapi/ppapi_internal.gyp:ppapi_example_compositor', + '../ppapi/ppapi_internal.gyp:ppapi_example_crxfs', + '../ppapi/ppapi_internal.gyp:ppapi_example_enumerate_devices', + '../ppapi/ppapi_internal.gyp:ppapi_example_file_chooser', + '../ppapi/ppapi_internal.gyp:ppapi_example_flash_topmost', + '../ppapi/ppapi_internal.gyp:ppapi_example_gamepad', + '../ppapi/ppapi_internal.gyp:ppapi_example_gles2', + '../ppapi/ppapi_internal.gyp:ppapi_example_gles2_spinning_cube', + '../ppapi/ppapi_internal.gyp:ppapi_example_graphics_2d', + '../ppapi/ppapi_internal.gyp:ppapi_example_ime', + '../ppapi/ppapi_internal.gyp:ppapi_example_input', + '../ppapi/ppapi_internal.gyp:ppapi_example_media_stream_audio', + '../ppapi/ppapi_internal.gyp:ppapi_example_media_stream_video', + '../ppapi/ppapi_internal.gyp:ppapi_example_mouse_cursor', + '../ppapi/ppapi_internal.gyp:ppapi_example_mouse_lock', + '../ppapi/ppapi_internal.gyp:ppapi_example_paint_manager', + '../ppapi/ppapi_internal.gyp:ppapi_example_post_message', + '../ppapi/ppapi_internal.gyp:ppapi_example_printing', + '../ppapi/ppapi_internal.gyp:ppapi_example_scaling', + '../ppapi/ppapi_internal.gyp:ppapi_example_scroll', + '../ppapi/ppapi_internal.gyp:ppapi_example_simple_font', + '../ppapi/ppapi_internal.gyp:ppapi_example_threading', + '../ppapi/ppapi_internal.gyp:ppapi_example_url_loader', + '../ppapi/ppapi_internal.gyp:ppapi_example_url_loader_file', + '../ppapi/ppapi_internal.gyp:ppapi_example_vc', + '../ppapi/ppapi_internal.gyp:ppapi_example_video_decode', + '../ppapi/ppapi_internal.gyp:ppapi_example_video_decode_dev', + '../ppapi/ppapi_internal.gyp:ppapi_example_video_effects', + '../ppapi/ppapi_internal.gyp:ppapi_example_video_encode', + '../ppapi/ppapi_internal.gyp:ppapi_tests', + '../ppapi/ppapi_internal.gyp:ppapi_perftests', + '../ppapi/ppapi_internal.gyp:ppapi_unittests', + '../sync/sync.gyp:run_sync_testserver', + '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_unittests', + '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber_unittests', + '../third_party/mojo/mojo_edk_tests.gyp:mojo_system_unittests', + '../third_party/mojo/mojo_edk_tests.gyp:mojo_public_bindings_unittests', + '../third_party/mojo/mojo_edk_tests.gyp:mojo_public_environment_unittests', + '../third_party/mojo/mojo_edk_tests.gyp:mojo_public_system_perftests', + '../third_party/mojo/mojo_edk_tests.gyp:mojo_public_system_unittests', + '../third_party/mojo/mojo_edk_tests.gyp:mojo_public_utility_unittests', + '../tools/imagediff/image_diff.gyp:image_diff', + '../ui/app_list/app_list.gyp:app_list_unittests', + '../ui/compositor/compositor.gyp:compositor_unittests', + ], + }], + ['OS!="android" and chromecast==0', { + 'dependencies': [ + '../chrome/chrome.gyp:browser_tests', + '../chrome/chrome.gyp:chrome', '../chrome/chrome.gyp:interactive_ui_tests', '../chrome/chrome.gyp:performance_browser_tests', '../chrome/chrome.gyp:sync_integration_tests', - '../chrome/chrome.gyp:unit_tests', + '../chrome/chrome.gyp:sync_performance_tests', + '../chrome/tools/profile_reset/jtl_compiler.gyp:jtl_compiler', '../extensions/extensions_tests.gyp:extensions_browsertests', '../extensions/extensions_tests.gyp:extensions_unittests', - '../google_apis/gcm/gcm.gyp:gcm_unit_tests', - '../ipc/ipc.gyp:ipc_tests', - '../jingle/jingle.gyp:jingle_unittests', - '../net/net.gyp:net_unittests', - #"//ppapi/examples", + '../gin/gin.gyp:gin_shell', + '../gpu/gles2_conform_support/gles2_conform_test.gyp:gles2_conform_test', # TODO(GYP) crbug.com/471920 + '../gpu/khronos_glcts_support/khronos_glcts_test.gyp:khronos_glcts_test', # TODO(GYP) crbug.com/471903 to make this complete. + '../ipc/ipc.gyp:ipc_perftests', + '../media/media.gyp:ffmpeg_regression_tests', # TODO(GYP) this should be conditional on media_use_ffmpeg + '../mojo/mojo_base.gyp:mojo_common_unittests', + '../ppapi/tools/ppapi_tools.gyp:pepper_hash_for_uma', + '../skia/skia.gyp:filter_fuzz_stub', + '../skia/skia.gyp:image_operations_bench', + '../sync/tools/sync_tools.gyp:sync_client', + '../sync/tools/sync_tools.gyp:sync_listen_notifications', + '../third_party/codesighs/codesighs.gyp:codesighs', + '../third_party/codesighs/codesighs.gyp:maptsvdifftool', + '../third_party/pdfium/samples/samples.gyp:pdfium_diff', '../third_party/pdfium/samples/samples.gyp:pdfium_test', + '../tools/gn/gn.gyp:generate_test_gn_data', '../tools/gn/gn.gyp:gn', '../tools/gn/gn.gyp:gn_unittests', - '../tools/imagediff/image_diff.gyp:image_diff', - '../tools/gn/gn.gyp:gn', - '../tools/gn/gn.gyp:gn_unittests', - '../ui/app_list/app_list.gyp:app_list_unittests', - '../url/url.gyp:url_unittests', - ], - }], - ['OS=="android" and chromecast==0', { - 'dependencies': [ - '../chrome/chrome.gyp:chrome_public_apk', - '../chrome/chrome.gyp:chrome_public_test_apk', - '../chrome/chrome.gyp:chromedriver_webview_shell_apk', - '../third_party/custom_tabs_client/custom_tabs_client.gyp:custom_tabs_client_example_apk', + '../tools/perf/clear_system_cache/clear_system_cache.gyp:clear_system_cache', + '../ui/message_center/message_center.gyp:message_center_unittests', + '../ui/views/examples/examples.gyp:views_examples_with_content_exe', ], }], ['OS=="android" or OS=="linux"', { @@ -379,7 +370,7 @@ '../rlz/rlz.gyp:rlz_unittests', ], }], - ['OS=="android" or OS=="linux" or os_bsd==1', { + ['OS=="linux" or os_bsd==1', { 'dependencies': [ '../breakpad/breakpad.gyp:core-2-minidump', '../breakpad/breakpad.gyp:microdump_stackwalk', @@ -718,6 +709,13 @@ '../components/components.gyp:policy_win64', ] }], + ['OS=="android"', { + 'dependencies': [ + # TODO(GYP): All of these targets need to be ported over. + '../chrome/chrome.gyp:unit_tests', + '../url/url.gyp:url_unittests', + ], + }], ], }, ] |