summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-03 00:59:23 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-03 00:59:23 +0000
commit016498e87cb7aa827bf53856ee4822966cac821c (patch)
tree73ef8c279d681a8ed80a1769082a59416fb2279b
parent48737d2776fe57409cefb27e6bec25ac2fa7d125 (diff)
downloadchromium_src-016498e87cb7aa827bf53856ee4822966cac821c.zip
chromium_src-016498e87cb7aa827bf53856ee4822966cac821c.tar.gz
chromium_src-016498e87cb7aa827bf53856ee4822966cac821c.tar.bz2
scons: excise more scons references from the code base
I got to undo some hacks, too! TEST=compiles Review URL: http://codereview.chromium.org/5535003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68119 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--base/base_paths_linux.cc2
-rw-r--r--base/debug/stack_trace_posix.cc4
-rw-r--r--breakpad/breakpad.gyp2
-rw-r--r--build/common.gypi74
-rw-r--r--build/linux/system.gyp1
-rw-r--r--chrome_frame/crash_reporting/crash_reporting.gyp2
-rw-r--r--gpu/gpu.gyp2
-rw-r--r--ipc/ipc_message_impl_macros.h2
-rw-r--r--ipc/ipc_message_macros.h2
-rw-r--r--site_scons/site_tools/chromium_builders.py40
-rw-r--r--testing/gmock.gyp4
-rw-r--r--testing/gtest.gyp4
-rwxr-xr-xtools/code_coverage/coverage_posix.py2
-rw-r--r--tools/export_tarball/export_tarball.py1
-rwxr-xr-xtools/heapcheck/chrome_tests.py1
-rwxr-xr-xtools/valgrind/chrome_tests.py1
-rwxr-xr-xtools/valgrind/valgrind.sh2
17 files changed, 12 insertions, 134 deletions
diff --git a/base/base_paths_linux.cc b/base/base_paths_linux.cc
index 701b983..24f86b4 100644
--- a/base/base_paths_linux.cc
+++ b/base/base_paths_linux.cc
@@ -76,7 +76,7 @@ bool PathProviderPosix(int key, FilePath* result) {
}
}
// On POSIX, unit tests execute two levels deep from the source root.
- // For example: sconsbuild/{Debug|Release}/net_unittest
+ // For example: out/{Debug|Release}/net_unittest
if (PathService::Get(base::DIR_EXE, &path)) {
path = path.DirName().DirName();
if (file_util::PathExists(path.Append(kThisSourceFile))) {
diff --git a/base/debug/stack_trace_posix.cc b/base/debug/stack_trace_posix.cc
index e4b0ef2..a9f0a39 100644
--- a/base/debug/stack_trace_posix.cc
+++ b/base/debug/stack_trace_posix.cc
@@ -56,9 +56,9 @@ const char kSymbolCharacters[] =
#if !defined(USE_SYMBOLIZE)
// Demangles C++ symbols in the given text. Example:
//
-// "sconsbuild/Debug/base_unittests(_ZN10StackTraceC1Ev+0x20) [0x817778c]"
+// "out/Debug/base_unittests(_ZN10StackTraceC1Ev+0x20) [0x817778c]"
// =>
-// "sconsbuild/Debug/base_unittests(StackTrace::StackTrace()+0x20) [0x817778c]"
+// "out/Debug/base_unittests(StackTrace::StackTrace()+0x20) [0x817778c]"
void DemangleSymbols(std::string* text) {
#if defined(__GLIBCXX__)
diff --git a/breakpad/breakpad.gyp b/breakpad/breakpad.gyp
index 155a361..063727f 100644
--- a/breakpad/breakpad.gyp
+++ b/breakpad/breakpad.gyp
@@ -355,7 +355,7 @@
'type': 'executable',
'dependencies': [
'../testing/gtest.gyp:gtest',
- '../testing/gtest.gyp:gtestmain',
+ '../testing/gtest.gyp:gtest_main',
'../testing/gmock.gyp:gmock',
'breakpad_client',
'breakpad_processor_support',
diff --git a/build/common.gypi b/build/common.gypi
index f07ec08..8e65f2d 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -541,9 +541,6 @@
}],
],
}],
- # Linux gyp (into scons) doesn't like target_conditions?
- # TODO(???): track down why 'target_conditions' doesn't work
- # on Linux gyp into scons like it does on Mac gyp into xcodeproj.
['OS=="linux"', {
'cflags': [ '-ftest-coverage',
'-fprofile-arcs' ],
@@ -894,73 +891,6 @@
'ldflags': [
'-pthread', '-Wl,-z,noexecstack',
],
- 'scons_variable_settings': {
- 'LIBPATH': ['$LIB_DIR'],
- # Linking of large files uses lots of RAM, so serialize links
- # using the handy flock command from util-linux.
- 'FLOCK_LINK': ['flock', '$TOP_BUILDDIR/linker.lock', '$LINK'],
- 'FLOCK_SHLINK': ['flock', '$TOP_BUILDDIR/linker.lock', '$SHLINK'],
- 'FLOCK_LDMODULE': ['flock', '$TOP_BUILDDIR/linker.lock', '$LDMODULE'],
-
- # We have several cases where archives depend on each other in
- # a cyclic fashion. Since the GNU linker does only a single
- # pass over the archives we surround the libraries with
- # --start-group and --end-group (aka -( and -) ). That causes
- # ld to loop over the group until no more undefined symbols
- # are found. In an ideal world we would only make groups from
- # those libraries which we knew to be in cycles. However,
- # that's tough with SCons, so we bodge it by making all the
- # archives a group by redefining the linking command here.
- #
- # TODO: investigate whether we still have cycles that
- # require --{start,end}-group. There has been a lot of
- # refactoring since this was first coded, which might have
- # eliminated the circular dependencies.
- #
- # Note: $_LIBDIRFLAGS comes before ${LINK,SHLINK,LDMODULE}FLAGS
- # so that we prefer our own built libraries (e.g. -lpng) to
- # system versions of libraries that pkg-config might turn up.
- # TODO(sgk): investigate handling this not by re-ordering the
- # flags this way, but by adding a hook to use the SCons
- # ParseFlags() option on the output from pkg-config.
- 'LINKCOM': [['$FLOCK_LINK', '-o', '$TARGET',
- '$_LIBDIRFLAGS', '$LINKFLAGS', '$SOURCES',
- '-Wl,--start-group', '$_LIBFLAGS', '-Wl,--end-group']],
- 'SHLINKCOM': [['$FLOCK_SHLINK', '-o', '$TARGET',
- '$_LIBDIRFLAGS', '$SHLINKFLAGS', '$SOURCES',
- '-Wl,--start-group', '$_LIBFLAGS', '-Wl,--end-group']],
- 'LDMODULECOM': [['$FLOCK_LDMODULE', '-o', '$TARGET',
- '$_LIBDIRFLAGS', '$LDMODULEFLAGS', '$SOURCES',
- '-Wl,--start-group', '$_LIBFLAGS', '-Wl,--end-group']],
- 'IMPLICIT_COMMAND_DEPENDENCIES': 0,
- # -rpath is only used when building with shared libraries.
- 'conditions': [
- [ 'library=="shared_library"', {
- 'RPATH': '$LIB_DIR',
- }],
- ],
- },
- 'scons_import_variables': [
- 'AS',
- 'CC',
- 'CXX',
- 'LINK',
- ],
- 'scons_propagate_variables': [
- 'AS',
- 'CC',
- 'CCACHE_DIR',
- 'CXX',
- 'DISTCC_DIR',
- 'DISTCC_HOSTS',
- 'HOME',
- 'INCLUDE_SERVER_ARGS',
- 'INCLUDE_SERVER_PORT',
- 'LINK',
- 'CHROME_BUILD_TYPE',
- 'CHROMIUM_BUILD',
- 'OFFICIAL_BUILD',
- ],
'configurations': {
'Debug_Base': {
'variables': {
@@ -1500,10 +1430,6 @@
},
}],
],
- 'scons_settings': {
- 'sconsbuild_dir': '<(DEPTH)/sconsbuild',
- 'tools': ['ar', 'as', 'gcc', 'g++', 'gnulink', 'chromium_builders'],
- },
'xcode_settings': {
# DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT!
# This block adds *project-wide* configuration settings to each project
diff --git a/build/linux/system.gyp b/build/linux/system.gyp
index 85f8063..905f14e 100644
--- a/build/linux/system.gyp
+++ b/build/linux/system.gyp
@@ -93,7 +93,6 @@
# out of $(pkg-config --cflags nss) and GYP include paths
# come after cflags on the command line. So we have these
# bodges:
- '-I../net/third_party/nss/ssl', # for scons
'-Inet/third_party/nss/ssl', # for make
'-IWebKit/chromium/net/third_party/nss/ssl', # for make in webkit
'<!@(<(pkg-config) --cflags nss)',
diff --git a/chrome_frame/crash_reporting/crash_reporting.gyp b/chrome_frame/crash_reporting/crash_reporting.gyp
index 63a16e6..8239a1a65 100644
--- a/chrome_frame/crash_reporting/crash_reporting.gyp
+++ b/chrome_frame/crash_reporting/crash_reporting.gyp
@@ -94,7 +94,7 @@
'../../base/base.gyp:base',
'../../testing/gmock.gyp:gmock',
'../../testing/gtest.gyp:gtest',
- '../../testing/gtest.gyp:gtestmain',
+ '../../testing/gtest.gyp:gtest_main',
'../../breakpad/breakpad.gyp:breakpad_handler',
],
},
diff --git a/gpu/gpu.gyp b/gpu/gpu.gyp
index c04fa4d..d6467e7 100644
--- a/gpu/gpu.gyp
+++ b/gpu/gpu.gyp
@@ -213,7 +213,7 @@
'dependencies': [
'../app/app.gyp:app_base',
'../testing/gmock.gyp:gmock',
- '../testing/gmock.gyp:gmockmain',
+ '../testing/gmock.gyp:gmock_main',
'../testing/gtest.gyp:gtest',
'command_buffer_client',
'command_buffer_common',
diff --git a/ipc/ipc_message_impl_macros.h b/ipc/ipc_message_impl_macros.h
index 61f7c63..3fa8978 100644
--- a/ipc/ipc_message_impl_macros.h
+++ b/ipc/ipc_message_impl_macros.h
@@ -18,7 +18,7 @@
#error This file should only be included by X_messages.cc, which needs to define MESSAGES_INTERNAL_IMPL_FILE first.
#endif
-// Trick scons and xcode into seeing the possible real dependencies since they
+// Trick xcode into seeing the possible real dependencies since they
// don't understand #include MESSAGES_INTERNAL_FILE. See http://crbug.com/7828
#if 0
#include "ipc/ipc_sync_message_unittest.h"
diff --git a/ipc/ipc_message_macros.h b/ipc/ipc_message_macros.h
index 2897dfb..6ce275c 100644
--- a/ipc/ipc_message_macros.h
+++ b/ipc/ipc_message_macros.h
@@ -48,7 +48,7 @@
MESSAGES_INTERNAL_FILE first.
#endif
-// Trick scons and xcode into seeing the possible real dependencies since they
+// Trick xcode into seeing the possible real dependencies since they
// don't understand #include MESSAGES_INTERNAL_FILE. See http://crbug.com/7828
#if 0
#include "ipc/ipc_sync_message_unittest.h"
diff --git a/site_scons/site_tools/chromium_builders.py b/site_scons/site_tools/chromium_builders.py
deleted file mode 100644
index 0d9b0f7..0000000
--- a/site_scons/site_tools/chromium_builders.py
+++ /dev/null
@@ -1,40 +0,0 @@
-# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""
-Tool module for adding, to a construction environment, Chromium-specific
-wrappers around SCons builders. This gives us a central place for any
-customization we need to make to the different things we build.
-"""
-
-import sys
-
-from SCons.Script import *
-
-class Null(object):
- def __new__(cls, *args, **kwargs):
- if '_inst' not in vars(cls):
- cls._inst = super(type, cls).__new__(cls, *args, **kwargs)
- return cls._inst
- def __init__(self, *args, **kwargs): pass
- def __call__(self, *args, **kwargs): return self
- def __repr__(self): return "Null()"
- def __nonzero__(self): return False
- def __getattr__(self, name): return self
- def __setattr__(self, name, val): return self
- def __delattr__(self, name): return self
- def __getitem__(self, name): return self
-
-
-def generate(env):
- # Add the grit tool to the base environment because we use this a lot.
- sys.path.append(env.Dir('$SRC_DIR/tools/grit').abspath)
- env.Tool('scons', toolpath=[env.Dir('$SRC_DIR/tools/grit/grit')])
-
- # Add the repack python script tool that we use in multiple places.
- sys.path.append(env.Dir('$SRC_DIR/tools/data_pack').abspath)
- env.Tool('scons', toolpath=[env.Dir('$SRC_DIR/tools/data_pack/')])
-
-def exists(env):
- return True
diff --git a/testing/gmock.gyp b/testing/gmock.gyp
index f879dcf..8f73cb6 100644
--- a/testing/gmock.gyp
+++ b/testing/gmock.gyp
@@ -50,9 +50,7 @@
],
},
{
- # Note that calling this "gmock_main" confuses the scons build,
- # which uses "_main" on scons files to produce special behavior.
- 'target_name': 'gmockmain',
+ 'target_name': 'gmock_main',
'type': '<(library)',
'dependencies': [
'gmock',
diff --git a/testing/gtest.gyp b/testing/gtest.gyp
index da95f42..c0be091 100644
--- a/testing/gtest.gyp
+++ b/testing/gtest.gyp
@@ -108,9 +108,7 @@
},
},
{
- # Note that calling this "gtest_main" confuses the scons build,
- # which uses "_main" on scons files to produce special behavior.
- 'target_name': 'gtestmain',
+ 'target_name': 'gtest_main',
'type': '<(library)',
'dependencies': [
'gtest',
diff --git a/tools/code_coverage/coverage_posix.py b/tools/code_coverage/coverage_posix.py
index 45d6d33..25463a3 100755
--- a/tools/code_coverage/coverage_posix.py
+++ b/tools/code_coverage/coverage_posix.py
@@ -69,7 +69,7 @@ Linux:
the directory within the buildbot working directory in which the
solution, Debug, and Release directories are found.
It's usually "src/build", but on mac it's $DIR/../xcodebuild and on
- Linux it's $DIR/../sconsbuild or $DIR/sconsbuild or $DIR/out.
+ Linux it's $DIR/out.
This is used by buildbot scripts to help us find the output directory.
Must be used with --target.
diff --git a/tools/export_tarball/export_tarball.py b/tools/export_tarball/export_tarball.py
index e26bd8a..ddb8920 100644
--- a/tools/export_tarball/export_tarball.py
+++ b/tools/export_tarball/export_tarball.py
@@ -39,7 +39,6 @@ NONESSENTIAL_DIRS = (
'third_party/hunspell_dictionaries',
'third_party/hunspell/tests',
'third_party/lighttpd',
- 'third_party/scons',
'third_party/sqlite/test',
'third_party/vc_80',
'third_party/xdg-utils/tests',
diff --git a/tools/heapcheck/chrome_tests.py b/tools/heapcheck/chrome_tests.py
index 97b8c84..8bd695e 100755
--- a/tools/heapcheck/chrome_tests.py
+++ b/tools/heapcheck/chrome_tests.py
@@ -147,7 +147,6 @@ class ChromeTests(object):
if not self._options.build_dir:
dirs = [
os.path.join(self._source_dir, "xcodebuild", "Debug"),
- os.path.join(self._source_dir, "sconsbuild", "Debug"),
os.path.join(self._source_dir, "out", "Debug"),
]
if exe:
diff --git a/tools/valgrind/chrome_tests.py b/tools/valgrind/chrome_tests.py
index 56159f2..ab3b4e2 100755
--- a/tools/valgrind/chrome_tests.py
+++ b/tools/valgrind/chrome_tests.py
@@ -99,7 +99,6 @@ class ChromeTests:
else:
dirs = [
os.path.join(self._source_dir, "xcodebuild", "Debug"),
- os.path.join(self._source_dir, "sconsbuild", "Debug"),
os.path.join(self._source_dir, "out", "Debug"),
os.path.join(self._source_dir, "build", "Debug"),
]
diff --git a/tools/valgrind/valgrind.sh b/tools/valgrind/valgrind.sh
index 2ef7534..629fc3750 100755
--- a/tools/valgrind/valgrind.sh
+++ b/tools/valgrind/valgrind.sh
@@ -7,7 +7,7 @@
# This is a small script for manually launching valgrind, along with passing
# it the suppression file, and some helpful arguments (automatically attaching
# the debugger on failures, etc). Run it from your repo root, something like:
-# $ sh ./tools/valgrind/valgrind.sh ./sconsbuild/Debug/chrome
+# $ sh ./tools/valgrind/valgrind.sh ./out/Debug/chrome
#
# This is mostly intended for running the chrome browser interactively.
# To run unit tests, you probably want to run chrome_tests.sh instead.