summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-04 22:42:46 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-04 22:42:46 +0000
commit167d52bbfbfc80f2232474eddfeb8bc587008d71 (patch)
tree9e77fbdef399cdc76b6bf8ca5531b950a76f4210 /base
parent573251378096bd1cfec87cc485fb1261c129ce2a (diff)
downloadchromium_src-167d52bbfbfc80f2232474eddfeb8bc587008d71.zip
chromium_src-167d52bbfbfc80f2232474eddfeb8bc587008d71.tar.gz
chromium_src-167d52bbfbfc80f2232474eddfeb8bc587008d71.tar.bz2
Create a base_static library with files that should not
be used from a dll (base.dll), and fix some incorrect dependencies. BUG=76996 TEST=none Review URL: http://codereview.chromium.org/6759047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80384 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/base.gyp43
-rw-r--r--base/base.gypi15
2 files changed, 49 insertions, 9 deletions
diff --git a/base/base.gyp b/base/base.gyp
index 0c2ac86..183749e 100644
--- a/base/base.gyp
+++ b/base/base.gyp
@@ -54,6 +54,48 @@
],
},
{
+ # This is the subset of files from base that should not be used with a
+ # dynamic library.
+ 'target_name': 'base_static',
+ 'type': '<(library)',
+ 'sources': [
+ 'base_switches.cc',
+ 'base_switches.h',
+ 'win/pe_image.cc',
+ 'win/pe_image.h',
+ ],
+ 'include_dirs': [
+ '..',
+ ],
+ },
+ {
+ # TODO(rvargas): Remove this when gyp finally supports a clean model.
+ # See bug 36232.
+ 'target_name': 'base_static_win64',
+ 'type': '<(library)',
+ 'sources': [
+ 'base_switches.cc',
+ 'base_switches.h',
+ 'win/pe_image.cc',
+ 'win/pe_image.h',
+ ],
+ 'include_dirs': [
+ '..',
+ ],
+ 'configurations': {
+ 'Common_Base': {
+ 'msvs_target_platform': 'x64',
+ },
+ },
+ 'defines': [
+ 'NACL_WIN64',
+ ],
+ # TODO(rvargas): Bug 78117. Remove this.
+ 'msvs_disabled_warnings': [
+ 4244,
+ ],
+ },
+ {
'target_name': 'base_unittests',
'type': 'executable',
'msvs_guid': '27A30967-4BBA-48D1-8522-CDE95F7B1CEC',
@@ -185,6 +227,7 @@
'dependencies': [
'base',
'base_i18n',
+ 'base_static',
'test_support_base',
'../testing/gmock.gyp:gmock',
'../testing/gtest.gyp:gtest',
diff --git a/base/base.gypi b/base/base.gypi
index e4d10ff..3c41a39 100644
--- a/base/base.gypi
+++ b/base/base.gypi
@@ -34,8 +34,6 @@
'base_paths_linux.cc',
'base_paths_win.cc',
'base_paths_win.h',
- 'base_switches.cc',
- 'base_switches.h',
'basictypes.h',
'bind.h',
'bind_helpers.h',
@@ -310,17 +308,15 @@
'version.h',
'vlog.cc',
'vlog.h',
- 'win/i18n.cc',
- 'win/i18n.h',
- 'win/object_watcher.cc',
- 'win/object_watcher.h',
- 'win/pe_image.cc',
'win/event_trace_consumer.h',
'win/event_trace_controller.cc',
'win/event_trace_controller.h',
'win/event_trace_provider.cc',
'win/event_trace_provider.h',
- 'win/pe_image.h',
+ 'win/i18n.cc',
+ 'win/i18n.h',
+ 'win/object_watcher.cc',
+ 'win/object_watcher.h',
'win/registry.cc',
'win/registry.h',
'win/scoped_bstr.cc',
@@ -418,6 +414,7 @@
'base_target': 1,
},
'dependencies': [
+ 'base_static',
'../third_party/modp_b64/modp_b64.gyp:modp_b64',
'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
],
@@ -538,7 +535,6 @@
'crypto/capi_util.cc',
'event_recorder.cc',
'file_version_info.cc',
- 'pe_image.cc',
'registry.cc',
'resource_util.cc',
'win_util.cc',
@@ -685,6 +681,7 @@
'base_target': 1,
},
'dependencies': [
+ 'base_static_win64',
'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
],
# TODO(gregoryd): direct_dependent_settings should be shared with the