Skip to content

Commit

Permalink
Revert 86899 - Base: cleanup for base.dll. Move base_switches back to…
Browse files Browse the repository at this point in the history
… the

main project.

BUG=76996
TEST=none
Review URL: http://codereview.chromium.org/7053033

TBR=rvargas@google.com
Review URL: http://codereview.chromium.org/7076026

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86901 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
rvargas@google.com committed May 26, 2011
1 parent ced5faf commit 46fe10d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 26 deletions.
4 changes: 4 additions & 0 deletions base/base.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@
'target_name': 'base_static',
'type': 'static_library',
'sources': [
'base_switches.cc',
'base_switches.h',
'win/pe_image.cc',
'win/pe_image.h',
],
Expand All @@ -75,6 +77,8 @@
'target_name': 'base_static_win64',
'type': 'static_library',
'sources': [
'base_switches.cc',
'base_switches.h',
'win/pe_image.cc',
'win/pe_image.h',
],
Expand Down
25 changes: 12 additions & 13 deletions base/base.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -436,9 +434,13 @@
'base_target': 1,
},
'dependencies': [
'base_static',
'../third_party/modp_b64/modp_b64.gyp:modp_b64',
'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
],
'export_dependent_settings': [
'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
],
# TODO(gregoryd): direct_dependent_settings should be shared with the
# 64-bit target, but it doesn't work due to a bug in gyp
'direct_dependent_settings': {
Expand Down Expand Up @@ -518,21 +520,18 @@
],
},
}],
[ 'OS == "win"', {
'dependencies': ['base_static'],
},
{ # else OS != WIN
'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
'sources!': [
'third_party/purify/pure_api.c',
'event_recorder.cc',
'resource_util.cc',
],
[ 'OS != "win"', {
'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
'sources!': [
'third_party/purify/pure_api.c',
'event_recorder.cc',
'resource_util.cc',
],
},],
[ 'component=="shared_library"', {
'defines': [
'BASE_DLL',
'BASE_IMPLEMENTATION',
'BASE_IMPLEMENTATION=1',
],
'conditions': [
['OS=="win"', {
Expand Down
24 changes: 11 additions & 13 deletions base/base_switches.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,19 @@
#define BASE_BASE_SWITCHES_H_
#pragma once

#include "base/base_api.h"

namespace switches {

BASE_API extern const char kDebugOnStart[];
BASE_API extern const char kDisableBreakpad[];
BASE_API extern const char kEnableDCHECK[];
BASE_API extern const char kFullMemoryCrashReport[];
BASE_API extern const char kLocalePak[];
BASE_API extern const char kNoErrorDialogs[];
BASE_API extern const char kNoMessageBox[];
BASE_API extern const char kTestChildProcess[];
BASE_API extern const char kV[];
BASE_API extern const char kVModule[];
BASE_API extern const char kWaitForDebugger[];
extern const char kDebugOnStart[];
extern const char kDisableBreakpad[];
extern const char kEnableDCHECK[];
extern const char kFullMemoryCrashReport[];
extern const char kLocalePak[];
extern const char kNoErrorDialogs[];
extern const char kNoMessageBox[];
extern const char kTestChildProcess[];
extern const char kV[];
extern const char kVModule[];
extern const char kWaitForDebugger[];

} // namespace switches

Expand Down

0 comments on commit 46fe10d

Please sign in to comment.