Skip to content

Commit

Permalink
re-land r100988 (gpy refactoring for content dll).
Browse files Browse the repository at this point in the history
TBR=darin
BUG=
TEST=

Review URL: http://codereview.chromium.org/7889027

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101011 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
dpranke@chromium.org committed Sep 14, 2011
1 parent 212a2e4 commit 476035d
Show file tree
Hide file tree
Showing 11 changed files with 199 additions and 97 deletions.
177 changes: 168 additions & 9 deletions content/content.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,178 @@
{
'variables': {
'chromium_code': 1, # Use higher warning level.
'directxsdk_exists': '<!(python <(DEPTH)/build/dir_exists.py ../third_party/directxsdk)',
},
'includes': [
'../build/win_precompile.gypi',
'content_app.gypi',
'content_browser.gypi',
'content_common.gypi',
'content_gpu.gypi',
'content_plugin.gypi',
'content_ppapi_plugin.gypi',
'content_renderer.gypi',
'content_shell.gypi',
'content_tests.gypi',
'content_utility.gypi',
'content_worker.gypi',
],
'conditions': [
# In component mode, we build all of content as a single DLL.
# However, in the static mode, we need to build content as multiple
# targets in order to prevent dependencies from getting introduced
# upstream unnecessarily (e.g., content_renderer depends on allocator
# and chrome_exe depends on content_common but we don't want
# chrome_exe to have to depend on allocator).
# TODO(dpranke): Uncomment: ['component == "static_library"', {
['1 == 1', {
'target_defaults': {
'defines': [
'CONTENT_IMPLEMENTATION',
],
},
'targets': [
{'target_name': 'content',
'type': 'none',
'dependencies': [
'content_app',
'content_browser',
'content_common',
'content_gpu',
'content_plugin',
'content_ppapi_plugin',
'content_renderer',
'content_utility',
'content_worker',
],
},
{'target_name': 'content_app',
'type': 'static_library',
'includes': [
'content_app.gypi',
],
'dependencies': [
'content_common',
],
},
{'target_name': 'content_browser',
'type': 'static_library',
'includes': [
'content_browser.gypi',
],
'dependencies': [
'content_common',
],
},
{'target_name': 'content_common',
'type': 'static_library',
'includes': [
'content_common.gypi',
],
},
{'target_name': 'content_gpu',
'type': 'static_library',
'includes': [
'content_gpu.gypi',
],
'dependencies': [
'content_common',
],
},
{'target_name': 'content_plugin',
'type': 'static_library',
'includes': [
'content_plugin.gypi',
],
'dependencies': [
'content_common',
],
},
{'target_name': 'content_ppapi_plugin',
'type': 'static_library',
'includes': [
'content_ppapi_plugin.gypi',
],
},
{'target_name': 'content_renderer',
'type': 'static_library',
'includes': [
'content_renderer.gypi',
],
'dependencies': [
'content_common',
],
},
{'target_name': 'content_utility',
'type': 'static_library',
'includes': [
'content_utility.gypi',
],
'dependencies': [
'content_common',
],
},
{'target_name': 'content_worker',
'type': 'static_library',
'includes': [
'content_worker.gypi',
],
'dependencies': [
'content_common',
],
},
],
},
{ # component != static_library
'target_defaults': {
'defines': [
'CONTENT_IMPLEMENTATION',
],
},
'targets': [
{'target_name': 'content',
'type': 'shared_library',
'includes': [
'content_app.gypi',
'content_browser.gypi',
'content_common.gypi',
'content_gpu.gypi',
'content_plugin.gypi',
'content_ppapi_plugin.gypi',
'content_renderer.gypi',
'content_utility.gypi',
'content_worker.gypi',
],
},
{'target_name': 'content_app',
'type': 'none',
'dependencies': ['content', 'content_browser'],
},
{'target_name': 'content_browser',
'type': 'none',
'dependencies': ['content'],
},
{'target_name': 'content_common',
'type': 'none',
'dependencies': ['content'],
},
{'target_name': 'content_gpu',
'type': 'none',
'dependencies': ['content'],
},
{'target_name': 'content_plugin',
'type': 'none',
'dependencies': ['content'],
},
{'target_name': 'content_ppapi_plugin',
'type': 'none',
'dependencies': ['content'],
},
{'target_name': 'content_renderer',
'type': 'none',
'dependencies': ['content'],
},
{'target_name': 'content_utility',
'type': 'none',
'dependencies': ['content'],
},
{'target_name': 'content_worker',
'type': 'none',
'dependencies': ['content'],
},
],
},
],
],
}
9 changes: 1 addition & 8 deletions content/content_app.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,11 @@
# found in the LICENSE file.

{
'targets': [
{
'target_name': 'content_app',
'type': 'static_library',
# TODO(dpranke): Fix indentation
'include_dirs': [
'..',
],
'dependencies': [
'content_browser',
'content_common',
'../base/base.gyp:base',
'../base/base.gyp:base_i18n',
'../crypto/crypto.gyp:crypto',
Expand All @@ -33,6 +28,4 @@
],
}],
],
},
],
}
8 changes: 1 addition & 7 deletions content/content_browser.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@
# found in the LICENSE file.

{
'targets': [
{
'target_name': 'content_browser',
'type': 'static_library',
# TODO(dpranke): Fix indentation.
'dependencies': [
'content_common',
'../crypto/crypto.gyp:crypto',
'../net/net.gyp:net',
'../net/net.gyp:http_server',
Expand Down Expand Up @@ -629,6 +625,4 @@
],
}],
],
},
],
}
30 changes: 1 addition & 29 deletions content/content_common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
# found in the LICENSE file.

{
'targets': [
{
'target_name': 'content_common',
'type': 'static_library',
# TODO(dpranke): Fix indentation.
'dependencies': [
'../base/base.gyp:base',
'../gpu/gpu.gyp:gpu_ipc',
Expand Down Expand Up @@ -324,29 +321,4 @@
},
}],
],
},
],

'conditions': [
['target_arch=="arm"', {
'targets': [
{
'target_name': 'omx_video_decode_accelerator_unittest',
'type': 'executable',
'dependencies': [
'content_common',
'../testing/gtest.gyp:gtest',
],
'include_dirs': [
'<(DEPTH)/third_party/angle/include',
'<(DEPTH)/third_party/openmax/il',
],
'sources': [
'common/gpu/media/omx_video_decode_accelerator_unittest.cc',
],
}
],
},
],
],
}
11 changes: 1 addition & 10 deletions content/content_gpu.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,8 @@
# found in the LICENSE file.

{
'variables': {
'directxsdk_exists': '<!(python <(DEPTH)/build/dir_exists.py ../third_party/directxsdk)',
}, # variables
'targets': [
{
'target_name': 'content_gpu',
'type': 'static_library',
# TODO(dpranke): Fix indentation.
'dependencies': [
'content_common',
'../base/base.gyp:base',
'../skia/skia.gyp:skia',
'../ui/gfx/gl/gl.gyp:gl',
Expand Down Expand Up @@ -92,6 +85,4 @@
],
}],
],
},
],
}
8 changes: 1 addition & 7 deletions content/content_plugin.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@
# found in the LICENSE file.

{
'targets': [
{
'target_name': 'content_plugin',
'type': 'static_library',
# TODO(dpranke): Fix indentation.
'dependencies': [
'content_common',
'../skia/skia.gyp:skia',
'../third_party/npapi/npapi.gyp:npapi',
'../webkit/support/webkit_support.gyp:glue',
Expand Down Expand Up @@ -64,6 +60,4 @@
},
}],
],
},
],
}
7 changes: 1 addition & 6 deletions content/content_ppapi_plugin.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
# found in the LICENSE file.

{
'targets': [
{
'target_name': 'content_ppapi_plugin',
'type': 'static_library',
# TODO(dpranke): Fix indentation.
'dependencies': [
'../base/base.gyp:base',
'../ppapi/ppapi_internal.gyp:ppapi_proxy',
Expand Down Expand Up @@ -37,6 +34,4 @@
},
}],
],
},
],
}
8 changes: 1 addition & 7 deletions content/content_renderer.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@
# found in the LICENSE file.

{
'targets': [
{
'target_name': 'content_renderer',
'type': 'static_library',
# TODO(dpranke): Fix indentation.
'dependencies': [
'content_common',
'../jingle/jingle.gyp:jingle_glue',
'../net/net.gyp:net',
'../ppapi/ppapi_internal.gyp:ppapi_proxy',
Expand Down Expand Up @@ -251,6 +247,4 @@
],
}],
],
},
],
}
22 changes: 22 additions & 0 deletions content/content_tests.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -172,4 +172,26 @@
],
},
],
'conditions': [
['target_arch=="arm"', {
'targets': [
{
'target_name': 'omx_video_decode_accelerator_unittest',
'type': 'executable',
'dependencies': [
'content',
'../testing/gtest.gyp:gtest',
],
'include_dirs': [
'<(DEPTH)/third_party/angle/include',
'<(DEPTH)/third_party/openmax/il',
],
'sources': [
'common/gpu/media/omx_video_decode_accelerator_unittest.cc',
],
}
],
},
],
],
}
Loading

0 comments on commit 476035d

Please sign in to comment.