Reland #317760 - add gn_all, gyp_all targets

In order to be able to make sure we are building the same list of targets
in both the GYP and GN builds, this patch adds new 'gn_all' and 'gyp_all'
targets.

Eventually, we should make sure that if one builds 'gn_all', then building
'gyp_all', 'All', or 'all' then has nothing to do. We're not there yet, but this
is a start.

The 'gn_all' target replaces the //:root target in the GN builds.

TBR=brettw@chromium.org
BUG=461019
CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:android_chromium_gn_compile_dbg,android_chromium_gn_compile_rel;tryserver.chromium.win:win8_chromium_gn_rel,win8_chromium_gn_dbg;tryserver.chromium.mac:mac_chromium_gn_rel,mac_chromium_gn_dbg

Review URL: https://codereview.chromium.org/953463003

Cr-Original-Commit-Position: refs/heads/master@{#317893}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e2ef382dd208417056acbd579620a428fa1b7af4
This commit is contained in:
dpranke 2015-02-24 13:42:18 -08:00 коммит произвёл Commit bot
Родитель 3ca7cb2951
Коммит ba58479a44
2 изменённых файлов: 158 добавлений и 1 удалений

153
all.gyp
Просмотреть файл

@ -467,8 +467,159 @@
}, # target_name: chromium_builder_tests
],
'conditions': [
['OS!="ios"', {
# TODO(GYP) - make gyp_all and gn_all work on iOS and Android also.
['OS!="ios" and OS!="android"', {
'targets': [
{
'target_name': 'gyp_all',
'type': 'none',
'dependencies': [
':gn_all',
'../chrome/chrome.gyp:chromedriver_unittests',
'../components/components_tests.gyp:components_browsertests',
# '../components/nacl.gyp:nacl_loader_unittests', # TODO(GYP)
# '../remoting/remoting.gyp:remoting_unittests', # TODO(GYP)
'../ui/compositor/compositor.gyp:compositor_unittests',
],
'conditions': [
['OS!="android"', {
'dependencies': [
# '../device/device_tests.gyp:device_unittests', # TODO(GYP)
# '../google_apis/google_apis.gyp:google_apis_unittests', # TODO(GYP)
],
}],
],
},
{
'target_name': 'gn_all',
'type': 'none',
'dependencies': [
'../base/base.gyp:base_unittests',
'../cc/cc_tests.gyp:cc_unittests',
'../chrome/chrome.gyp:chrome',
'../chrome/chrome.gyp:browser_tests',
'../chrome/chrome.gyp:interactive_ui_tests',
'../chrome/chrome.gyp:sync_integration_tests',
'../chrome/chrome.gyp:unit_tests',
'../components/components_tests.gyp:components_unittests',
'../content/content_shell_and_tests.gyp:content_shell',
'../content/content_shell_and_tests.gyp:content_browsertests',
'../content/content_shell_and_tests.gyp:content_perftests',
'../content/content_shell_and_tests.gyp:content_unittests',
'../crypto/crypto.gyp:crypto_unittests',
'../extensions/extensions_tests.gyp:extensions_browsertests',
'../extensions/extensions_tests.gyp:extensions_unittests',
'../google_apis/gcm/gcm.gyp:gcm_unit_tests',
'../gpu/gpu.gyp:gpu_unittests',
'../ipc/ipc.gyp:ipc_tests',
'../ipc/mojo/ipc_mojo.gyp:ipc_mojo_unittests',
'../jingle/jingle.gyp:jingle_unittests',
'../media/media.gyp:media_unittests',
'../media/cast/cast.gyp:cast_unittests',
'../mojo/mojo.gyp:mojo',
'../mojo/mojo_base.gyp:mojo_common_unittests',
'../net/net.gyp:net_unittests',
'../ppapi/ppapi_internal.gyp:ppapi_tests',
'../printing/printing.gyp:printing_unittests',
'../sql/sql.gyp:sql_unittests',
'../skia/skia_tests.gyp:skia_unittests',
'../sync/sync.gyp:sync_unit_tests',
# TODO(GYP): the Blink test targets should be public, but
# currently aren't. all_blink puls them in, though
# "//third_party/WebKit/Source/platform:heap_unittests",
# "//third_party/WebKit/Source/platform:platform_unittests",
# "//third_party/WebKit/Source/wtf:wtf_unittests",
'../third_party/WebKit/public/all.gyp:all_blink',
'../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_unittests',
# TODO(GYP): Needed only w/ cld_version==1. What configs set that?
'../third_party/cld/cld.gyp:cld',
# TODO(GYP): This is needed only w/ use_system_fontconfig==0. What configs set that?
#'../third_party/fontconfig/fontconfig.gyp:fontconfig',
# TODO(GYP): This will be pulled in automatically when enable_webrtc==true.
# For now pull it in manually so that it doesn't regress.
'../third_party/libsrtp/libsrtp.gyp:libsrtp',
'../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/pdfium/samples/samples.gyp:pdfium_test',
# TODO(GYP): Verify that this is no longer needed.
'../third_party/smhasher/smhasher.gyp:pmurhash',
# TODO(GYP): This will be pulled in automatically when enable_webrtc==true.
# For now pull it in manually so that it doesn't regress.
'../third_party/usrsctp/usrsctp.gyp:usrsctplib',
'../tools/gn/gn.gyp:gn',
'../tools/gn/gn.gyp:gn_unittests',
'../tools/imagediff/image_diff.gyp:image_diff#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/display/display.gyp:display_unittests',
'../ui/events/events.gyp:events_unittests',
'../ui/gfx/gfx_tests.gyp:gfx_unittests',
'../ui/touch_selection/ui_touch_selection.gyp:ui_touch_selection_unittests',
'../url/url.gyp:url_unittests',
],
'conditions': [
['OS!="win"', {
'dependencies': [
'../breakpad/breakpad.gyp:symupload#host',
],
}],
['use_x11==1', {
'dependencies': [
'../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
],
}],
['toolkit_views==1', {
'dependencies': [
'../ui/views/views.gyp:views_unittests',
],
}],
['use_aura==1', {
'dependencies': [
'../ui/wm/wm.gyp:wm_unittests',
],
}],
['use_ozone==1', {
'dependencies': [
'../ui/ozone/ozone.gyp:ozone',
],
}],
['OS=="win" or OS=="mac" or OS=="android"', {
'dependencies': [
'../rlz/rlz.gyp:rlz_lib',
],
}],
['OS=="android"', {
'dependencies': [
'../chrome/chrome.gyp:chrome_shell_apk',
'../content/content_shell_and_tests.gyp:content_shell_apk',
],
'dependencies!': [
'../url/url.gyp:url_unittests',
],
}],
['OS=="linux"', {
'dependencies': [
'../dbus/dbus.gyp:dbus_unittests',
'../sandbox/sandbox.gyp:sandbox_linux_unittests',
],
}],
],
},
{
'target_name': 'blink_tests',
'type': 'none',

Просмотреть файл

@ -53,6 +53,8 @@
# use_qualified_include (optional)
# If set, output_dir is not added to include_dirs.
#
# configs (optional)
# List of additional configs to be applied to the generated target.
# deps (optional)
# inputs (optional)
# List of additional files, required for grit to process source file.
@ -438,6 +440,10 @@ template("grit") {
public_configs += invoker.public_configs
}
if (defined(invoker.configs)) {
configs += invoker.configs
}
if (defined(invoker.visibility)) {
visibility = invoker.visibility
}