summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-10 21:11:56 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-10 21:11:56 +0000
commit7cb9b9d185985932741755f88d2889bc25362751 (patch)
treeb23ac9180ebefc5c2d5586df1e58ec9d1611477b
parent734cab5bd93abf2b491c6aa219c2f63fa79fcd1c (diff)
downloadchromium_src-7cb9b9d185985932741755f88d2889bc25362751.zip
chromium_src-7cb9b9d185985932741755f88d2889bc25362751.tar.gz
chromium_src-7cb9b9d185985932741755f88d2889bc25362751.tar.bz2
Include test_shell.gypi in webkit.gyp instead of maintaining a distinct
test_shell.gyp. This allows the removal of webkit.gyp:pull_in_test_shell, eliminating the circular relationship between webkit.gyp and test_shell.gyp. The expected semantics of building all of test_shell during a webkit.gyp:All build is performed are retained. This change depends on GYP r781 (in Chromium at r38526) for GYP suffix operator path section treatment. It also depends on Chromium r38519 and r38658 for common.gypi treatment of chromium_code. BUG=33186 TEST=Xcode no longer holds stale project files in memory Review URL: http://codereview.chromium.org/602006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38664 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--build/all.gyp5
-rwxr-xr-xchrome/chrome.gyp1
-rwxr-xr-xchrome/chrome_tests.gypi6
-rw-r--r--chrome/test/interactive_ui/interactive_ui_tests.gypi2
-rwxr-xr-xthird_party/ffmpeg/ffmpeg.gyp2
-rw-r--r--webkit/tools/test_shell/test_shell.gypi (renamed from webkit/tools/test_shell/test_shell.gyp)143
-rw-r--r--webkit/webkit.gyp8
7 files changed, 90 insertions, 77 deletions
diff --git a/build/all.gyp b/build/all.gyp
index dbec978..cdb5f07 100644
--- a/build/all.gyp
+++ b/build/all.gyp
@@ -37,7 +37,6 @@
'../third_party/WebKit/WebKit/chromium/WebKit.gyp:*',
'../third_party/zlib/zlib.gyp:*',
'../webkit/tools/pepper_test_plugin/pepper_test_plugin.gyp:*',
- '../webkit/tools/test_shell/test_shell.gyp:*',
'../webkit/webkit.gyp:*',
'util/build_util.gyp:*',
'temp_gyp/googleurl.gyp:*',
@@ -213,12 +212,12 @@
'../ipc/ipc.gyp:ipc_tests',
'../media/media.gyp:media_unittests',
'../printing/printing.gyp:printing_unittests',
- '../webkit/tools/test_shell/test_shell.gyp:npapi_layout_test_plugin',
+ '../webkit/webkit.gyp:npapi_layout_test_plugin',
# TODO(nsylvain) ui_tests.exe depends on test_shell_common.
# This should:
# 1) not be the case. OR.
# 2) be expressed in the ui tests dependencies.
- '../webkit/tools/test_shell/test_shell.gyp:test_shell_common',
+ '../webkit/webkit.gyp:test_shell_common',
'temp_gyp/googleurl.gyp:googleurl_unittests',
'../chrome_frame/chrome_frame.gyp:chrome_frame_net_tests',
'../chrome_frame/chrome_frame.gyp:chrome_frame_perftests',
diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp
index 4757960..a6f2110 100755
--- a/chrome/chrome.gyp
+++ b/chrome/chrome.gyp
@@ -1346,7 +1346,6 @@
'../third_party/npapi/npapi.gyp:*',
'../third_party/sqlite/sqlite.gyp:*',
'../third_party/zlib/zlib.gyp:*',
- '../webkit/tools/test_shell/test_shell.gyp:*',
'../webkit/webkit.gyp:*',
'../build/temp_gyp/googleurl.gyp:*',
diff --git a/chrome/chrome_tests.gypi b/chrome/chrome_tests.gypi
index 1520411..83bdf06 100755
--- a/chrome/chrome_tests.gypi
+++ b/chrome/chrome_tests.gypi
@@ -267,7 +267,7 @@
'../third_party/icu/icu.gyp:icuuc',
'../third_party/libxml/libxml.gyp:libxml',
# run time dependencies
- '../webkit/tools/test_shell/test_shell.gyp:npapi_layout_test_plugin',
+ '../webkit/webkit.gyp:npapi_layout_test_plugin',
],
'include_dirs': [
'..',
@@ -322,7 +322,7 @@
# http://code.google.com/p/chromium/issues/detail?id=18337
['target_arch!="x64" and target_arch!="arm"', {
'dependencies': [
- '../webkit/tools/test_shell/test_shell.gyp:npapi_test_plugin',
+ '../webkit/webkit.gyp:npapi_test_plugin',
],
}],
['OS=="linux"', {
@@ -453,7 +453,7 @@
'../google_update/google_update.gyp:google_update',
'../views/views.gyp:views',
# run time dependency
- '../webkit/tools/test_shell/test_shell.gyp:npapi_test_plugin',
+ '../webkit/webkit.gyp:npapi_test_plugin',
'<(allocator_target)',
],
'link_settings': {
diff --git a/chrome/test/interactive_ui/interactive_ui_tests.gypi b/chrome/test/interactive_ui/interactive_ui_tests.gypi
index d05f7fc..abbd2cf 100644
--- a/chrome/test/interactive_ui/interactive_ui_tests.gypi
+++ b/chrome/test/interactive_ui/interactive_ui_tests.gypi
@@ -65,7 +65,7 @@
['target_arch!="x64" and target_arch!="arm"', {
'dependencies': [
# run time dependency
- '<(DEPTH)/webkit/tools/test_shell/test_shell.gyp:npapi_test_plugin',
+ '<(DEPTH)/webkit/webkit.gyp:npapi_test_plugin',
],
}], # target_arch
['OS=="linux" and (toolkit_views==1 or chromeos==1)', {
diff --git a/third_party/ffmpeg/ffmpeg.gyp b/third_party/ffmpeg/ffmpeg.gyp
index d1a5708..ee063e7 100755
--- a/third_party/ffmpeg/ffmpeg.gyp
+++ b/third_party/ffmpeg/ffmpeg.gyp
@@ -728,7 +728,7 @@
},
}], ['OS=="mac"', {
# TODO(ajwong): These files are also copied in:
- # webkit/tools/test_shell/test_shell.gyp and
+ # webkit/tools/test_shell/test_shell.gypi and
# chrome/chrome.gyp
# Need to consolidate the copies in one place. (BUG=23602)
'variables': {
diff --git a/webkit/tools/test_shell/test_shell.gyp b/webkit/tools/test_shell/test_shell.gypi
index 60f2711..57c7864 100644
--- a/webkit/tools/test_shell/test_shell.gyp
+++ b/webkit/tools/test_shell/test_shell.gypi
@@ -4,7 +4,6 @@
{
'variables': {
- 'chromium_code': 1,
'test_shell_windows_resource_files': [
'resources/test_shell.rc',
'resources/pan_east.cur',
@@ -25,22 +24,25 @@
{
'target_name': 'test_shell_common',
'type': '<(library)',
+ 'variables': {
+ 'chromium_code': 1,
+ },
'dependencies': [
- '../../../app/app.gyp:app_base',
- '../../../base/base.gyp:base',
- '../../../base/base.gyp:base_i18n',
- '../../../media/media.gyp:media',
- '../../../net/net.gyp:net',
- '../../../skia/skia.gyp:skia',
- '../../../testing/gmock.gyp:gmock',
- '../../../testing/gtest.gyp:gtest',
- '../../../third_party/npapi/npapi.gyp:npapi',
- '../../../third_party/WebKit/WebCore/WebCore.gyp/WebCore.gyp:webcore',
- '../../../third_party/WebKit/WebKit/chromium/WebKit.gyp:webkit',
- '../../webkit.gyp:appcache',
- '../../webkit.gyp:database',
- '../../webkit.gyp:glue',
- '../../webkit.gyp:inspector_resources',
+ '<(DEPTH)/app/app.gyp:app_base',
+ '<(DEPTH)/base/base.gyp:base',
+ '<(DEPTH)/base/base.gyp:base_i18n',
+ '<(DEPTH)/media/media.gyp:media',
+ '<(DEPTH)/net/net.gyp:net',
+ '<(DEPTH)/skia/skia.gyp:skia',
+ '<(DEPTH)/testing/gmock.gyp:gmock',
+ '<(DEPTH)/testing/gtest.gyp:gtest',
+ '<(DEPTH)/third_party/npapi/npapi.gyp:npapi',
+ '<(DEPTH)/third_party/WebKit/WebCore/WebCore.gyp/WebCore.gyp:webcore',
+ '<(DEPTH)/third_party/WebKit/WebKit/chromium/WebKit.gyp:webkit',
+ '<(DEPTH)/webkit/webkit.gyp:appcache',
+ '<(DEPTH)/webkit/webkit.gyp:database',
+ '<(DEPTH)/webkit/webkit.gyp:glue',
+ '<(DEPTH)/webkit/webkit.gyp:inspector_resources',
'npapi_layout_test_plugin',
],
'msvs_guid': '77C32787-1B96-CB84-B905-7F170629F0AC',
@@ -123,11 +125,11 @@
'webwidget_host_win.cc',
],
'export_dependent_settings': [
- '../../../base/base.gyp:base',
- '../../../net/net.gyp:net',
- '../../../third_party/WebKit/WebCore/WebCore.gyp/WebCore.gyp:webcore',
- '../../../third_party/WebKit/WebKit/chromium/WebKit.gyp:webkit',
- '../../webkit.gyp:glue',
+ '<(DEPTH)/base/base.gyp:base',
+ '<(DEPTH)/net/net.gyp:net',
+ '<(DEPTH)/third_party/WebKit/WebCore/WebCore.gyp/WebCore.gyp:webcore',
+ '<(DEPTH)/third_party/WebKit/WebKit/chromium/WebKit.gyp:webkit',
+ '<(DEPTH)/webkit/webkit.gyp:glue',
],
'conditions': [
# http://code.google.com/p/chromium/issues/detail?id=18337
@@ -139,16 +141,11 @@
['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
'dependencies': [
'test_shell_resources',
- '../../../build/linux/system.gyp:gtk',
- '../../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
+ '<(DEPTH)/build/linux/system.gyp:gtk',
+ '<(DEPTH)/tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
],
# for: test_shell_gtk.cc
'cflags': ['-Wno-multichar'],
- }, { # else: OS!=linux
- 'sources/': [
- ['exclude', '_gtk\\.cc$'],
- ['exclude', '_x11\\.cc$'],
- ],
}],
['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
# See below TODO in the Windows branch.
@@ -159,12 +156,6 @@
},
],
}],
- ['OS!="mac"', {
- 'sources/': [
- ['exclude', 'mac/[^/]*\\.(cc|mm?)$'],
- ['exclude', '_mac\\.(cc|mm?)$'],
- ]
- }],
['OS=="win"', {
'msvs_disabled_warnings': [ 4800 ],
'link_settings': {
@@ -177,8 +168,8 @@
'.',
],
'dependencies': [
- '../../../breakpad/breakpad.gyp:breakpad_handler',
- '../../default_plugin/default_plugin.gyp:default_plugin',
+ '<(DEPTH)/breakpad/breakpad.gyp:breakpad_handler',
+ '<(DEPTH)/webkit/default_plugin/default_plugin.gyp:default_plugin',
],
# TODO(bradnelson):
# This should really be done in the 'npapi_layout_test_plugin'
@@ -196,7 +187,6 @@
],
}, { # else: OS!=win
'sources/': [
- ['exclude', '_win\\.cc$'],
['exclude', '_webtheme(control|engine)\.(cc|h)$'],
],
'sources!': [
@@ -248,11 +238,14 @@
{
'target_name': 'test_shell',
'type': 'executable',
+ 'variables': {
+ 'chromium_code': 1,
+ },
'mac_bundle': 1,
'msvs_guid': 'FA39524D-3067-4141-888D-28A86C66F2B9',
'dependencies': [
'test_shell_common',
- '../../../tools/imagediff/image_diff.gyp:image_diff',
+ '<(DEPTH)/tools/imagediff/image_diff.gyp:image_diff',
],
'defines': [
# Technically not a unit test but require functions available only to
@@ -277,11 +270,13 @@
'mac/Info.plist',
],
'xcode_settings': {
- 'INFOPLIST_FILE': 'mac/Info.plist',
+ 'INFOPLIST_FILE': '<(DEPTH)/webkit/tools/test_shell/mac/Info.plist',
},
'conditions': [
['OS=="win"', {
- 'dependencies': ['layout_test_helper'],
+ 'dependencies': [
+ 'layout_test_helper',
+ ],
'resource_include_dirs': [
'<(SHARED_INTERMEDIATE_DIR)/webkit',
],
@@ -301,19 +296,21 @@
'conditions': [
['linux_use_tcmalloc==1', {
'dependencies': [
- '../../../base/allocator/allocator.gyp:allocator',
+ '<(DEPTH)/base/allocator/allocator.gyp:allocator',
],
}],
],
'dependencies': [
- '../../../build/linux/system.gyp:gtk',
+ '<(DEPTH)/build/linux/system.gyp:gtk',
'test_shell_resources',
'test_shell_pak',
],
}],
['OS=="mac"', {
'product_name': 'TestShell',
- 'dependencies': ['layout_test_helper'],
+ 'dependencies': [
+ 'layout_test_helper',
+ ],
'variables': {
'repack_path': '../../../tools/data_pack/repack.py',
},
@@ -358,9 +355,9 @@
],
}, { # OS != "mac"
'dependencies': [
- '../../../net/net.gyp:net_resources',
- '../../webkit.gyp:webkit_resources',
- '../../webkit.gyp:webkit_strings',
+ '<(DEPTH)/net/net.gyp:net_resources',
+ '<(DEPTH)/webkit/webkit.gyp:webkit_resources',
+ '<(DEPTH)/webkit/webkit.gyp:webkit_strings',
]
}],
],
@@ -368,12 +365,15 @@
{
'target_name': 'test_shell_tests',
'type': 'executable',
+ 'variables': {
+ 'chromium_code': 1,
+ },
'msvs_guid': 'E6766F81-1FCD-4CD7-BC16-E36964A14867',
'dependencies': [
'test_shell_common',
- '../../../skia/skia.gyp:skia',
- '../../../testing/gmock.gyp:gmock',
- '../../../testing/gtest.gyp:gtest',
+ '<(DEPTH)/skia/skia.gyp:skia',
+ '<(DEPTH)/testing/gmock.gyp:gmock',
+ '<(DEPTH)/testing/gtest.gyp:gtest',
],
'sources': [
'../../../skia/ext/convolver_unittest.cc',
@@ -448,7 +448,7 @@
['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
'dependencies': [
'test_shell_pak',
- '../../../build/linux/system.gyp:gtk',
+ '<(DEPTH)/build/linux/system.gyp:gtk',
],
'sources!': [
# TODO(port)
@@ -458,7 +458,9 @@
['OS=="mac"', {
# mac tests load the resources from the built test_shell beside the
# test
- 'dependencies': ['test_shell'],
+ 'dependencies': [
+ 'test_shell',
+ ],
'sources!': [
# Disable the image decoder tests because we use CoreGraphics
# code on mac and these tests are for the Skia image-decoders.
@@ -483,7 +485,7 @@
'conditions': [
['linux_use_tcmalloc==1', {
'dependencies': [
- '../../../base/allocator/allocator.gyp:allocator',
+ '<(DEPTH)/base/allocator/allocator.gyp:allocator',
],
}],
],
@@ -493,6 +495,9 @@
{
'target_name': 'npapi_layout_test_plugin',
'type': 'loadable_module',
+ 'variables': {
+ 'chromium_code': 1,
+ },
'mac_bundle': 1,
'msvs_guid': 'BE6D5659-A8D5-4890-A42C-090DD10EF62C',
'sources': [
@@ -506,15 +511,15 @@
'../../..',
],
'dependencies': [
- '../../../third_party/npapi/npapi.gyp:npapi',
- '../../../third_party/WebKit/JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf',
+ '<(DEPTH)/third_party/npapi/npapi.gyp:npapi',
+ '<(DEPTH)/third_party/WebKit/JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf',
],
'msvs_disabled_warnings': [ 4996 ],
'mac_bundle_resources': [
'../npapi_layout_test_plugin/Info.r',
],
'xcode_settings': {
- 'INFOPLIST_FILE': '../npapi_layout_test_plugin/Info.plist',
+ 'INFOPLIST_FILE': '<(DEPTH)/webkit/tools/npapi_layout_test_plugin/Info.plist',
},
'conditions': [
['OS!="win"', {
@@ -540,10 +545,17 @@
# 'files': ['<(PRODUCT_DIR)/npapi_layout_test_plugin.dll'],
# },
# ],
+ 'variables': {
+ # This is not a relative pathname. Avoid pathname relativization
+ # by sticking it in a variable that isn't recognized as one
+ # containing pathnames, and by using the >(late) form of variable
+ # expansion.
+ 'winmm_lib': 'winmm.lib',
+ },
'link_settings': {
'libraries': [
- "winmm.lib",
- ],
+ '>(winmm_lib)',
+ ],
},
}],
['OS=="mac"', {
@@ -568,12 +580,15 @@
{
'target_name': 'npapi_test_plugin',
'type': 'loadable_module',
+ 'variables': {
+ 'chromium_code': 1,
+ },
'mac_bundle': 1,
'msvs_guid': '0D04AEC1-6B68-492C-BCCF-808DFD69ABC6',
'dependencies': [
- '../../../base/base.gyp:base',
- '../../../third_party/icu/icu.gyp:icuuc',
- '../../../third_party/npapi/npapi.gyp:npapi',
+ '<(DEPTH)/base/base.gyp:base',
+ '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
+ '<(DEPTH)/third_party/npapi/npapi.gyp:npapi',
],
'sources': [
'../../glue/plugins/test/npapi_constants.cc',
@@ -623,7 +638,7 @@
'../../..',
],
'xcode_settings': {
- 'INFOPLIST_FILE': '../../glue/plugins/test/Info.plist',
+ 'INFOPLIST_FILE': '<(DEPTH)/webkit/glue/plugins/test/Info.plist',
},
'conditions': [
['OS!="win"', {
@@ -704,6 +719,9 @@
# running of the layout tests
'target_name': 'layout_test_helper',
'type': 'executable',
+ 'variables': {
+ 'chromium_code': 1,
+ },
'sources': [
'win/layout_test_helper.cc',
],
@@ -717,6 +735,9 @@
# for the test shells run by the layout tests.
'target_name': 'layout_test_helper',
'type': 'executable',
+ 'variables': {
+ 'chromium_code': 1,
+ },
'sources': [
'mac/layout_test_helper.mm',
],
diff --git a/webkit/webkit.gyp b/webkit/webkit.gyp
index 15f7fac..a1a8d9a 100644
--- a/webkit/webkit.gyp
+++ b/webkit/webkit.gyp
@@ -7,6 +7,7 @@
'../third_party/WebKit/WebKit/chromium/features.gypi',
'../third_party/WebKit/WebKit/chromium/WebKit.gypi',
'../third_party/WebKit/WebCore/WebCore.gypi',
+ 'tools/test_shell/test_shell.gypi',
],
'variables': {
# We can't turn on warnings on Windows and Linux until we upstream the
@@ -38,13 +39,6 @@
},
'targets': [
{
- 'target_name': 'pull_in_test_shell',
- 'type': 'none',
- 'dependencies': [
- 'tools/test_shell/test_shell.gyp:*',
- ],
- },
- {
'target_name': 'pull_in_webkit_unit_tests',
'type': 'none',
'dependencies': [