summaryrefslogtreecommitdiffstats
path: root/build/common.gypi
Commit message (Collapse)AuthorAgeFilesLines
* Run real dsymutil to get a real .dSYM for Breakpad dump_syms. This willmark@chromium.org2009-06-011-10/+37
| | | | | | | | | | | allow dump_syms to access DWARF data for line numbers and other stuff, and not just public symbol table data. BUG=12776 TEST=set branding to Chrome, dsymutil should run and take forever Review URL: http://codereview.chromium.org/113999 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17316 0039d316-1c4b-4281-b951-d872f2087c98
* Re-add the code to only add sse2 flags on Chromium builds. Ittc@google.com2009-05-291-3/+9
| | | | | | | | | | | was accidentally lost in r16719. BUG=9007 Review URL: http://codereview.chromium.org/115902 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17155 0039d316-1c4b-4281-b951-d872f2087c98
* Add debugging symbols to official Linux Chrome builds.thestig@chromium.org2009-05-281-0/+5
| | | | | | Review URL: http://codereview.chromium.org/115874 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17107 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: add Breakpad supportagl@chromium.org2009-05-221-23/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commits a rewrite of the Breakpad Linux client. The old code: * Had a number of plain bugs in it, but those could just have been fixed. * Allocated memory from the heap, which is a no go. * Made libc calls which can enter the dynamic linker - another source of crashes. * Didn't understand some of the tricks needed, like clone() via libc will write to random areas of memory because it assumes that it's only called from libpthread Additionally, we had one more requirement which meant changing the interface: * We need to be able to crash dump the renderers from the browser process. And that last one really needed a rewrite. We intend to try and upstream this new code into Breakpad. The new Breakpad design works like this: When a renderer crashes, a signal handler runs on an alternative stack and collects information about the registers of the thread before the crash. Then we enter Chromium specific code an send a datagram message to a magic file descriptor (4) containing: * the registers and tid of the crashing thread * the active URL * a file descriptor to a socket * a CREDENTIALS structure giving the PID of the renderer. On the other end of the socket is an object on the IO thread (render_crash_handler_host_linux.cc) which reads and parses the datagram. The CREDENTIALS structure is validated by the kernel, so the renderer can't lie about it's PID and try and get the browser to crash dump the wrong process. The browser then ptraces the renderer and extracts all the needed information to write a minidump to a temp file. Then we write a byte to the file descriptor which the renderer gave the browser in the datagram and that's the signal to the renderer to finish dying. It dies by sending itself the same signal which trigger the crash dump in the first place, so it will appear to crash as normal as far as kernel core dumps and waitpid are concerned. The browser then constucts a MIME message in a temp file for upload to the crash service. We then fork out to /usr/bin/wget to actually do the upload (since Debian numbers suggest that 99.8% of users have wget installed.) A second forked child unlinks the temp files once wget has completed. For a browser crash, everything works pretty much the same except that the datagram step is omitted and we clone() off a process to ptrace ourselves and write the minidump. This code is only enabled in Chrome branded builds. Stub source files are substituted in the case of a Chromium build. http://codereview.chromium.org/115526 BUG=9646,10772 TEST=Build a Chrome branded binary. Send SEGV to a renderer and verify that wget output appears on stderr. Send a SEGV to the main binary and verify the same. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16719 0039d316-1c4b-4281-b951-d872f2087c98
* Explicitly enable /INCREMENTAL linking for gyp-generated Debug builds.sgk@google.com2009-05-221-1/+20
| | | | | | | | | | | | | | | | | | | | | | Explicitly disable it (/INCREMENTAL:NO) for Release, and for the following targets that require it: chrome.dll interactive_ui_tests.exe perf_tests.exe unit_tests.exe Explicitly specificy /SUBSYSTEM:CONSOLE as default for linking, and match current practice by overriding with /SUBSYSTEM:WINDOWS for: chrome.exe chrome.dll media_player.exe sandbox_poc.exe TEST=none BUG=none Review URL: http://codereview.chromium.org/115664 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16698 0039d316-1c4b-4281-b951-d872f2087c98
* didn't mean to check these inben@chromium.org2009-05-201-2/+0
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16516 0039d316-1c4b-4281-b951-d872f2087c98
* these strings were somehow removed in my earlier revert. add back to fix the ↵ben@chromium.org2009-05-201-0/+2
| | | | | | build. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16515 0039d316-1c4b-4281-b951-d872f2087c98
* Added a script to remove headers from the target.thomasvl@chromium.org2009-05-201-0/+14
| | | | | | | | Added a default in common.gypi to remove headers from all mac applications that are bundles. Added a var to control the inclusion of keystone to chrome.gyp defaulted on branding and then honor it for the shipping work. Review URL: http://codereview.chromium.org/113652 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16510 0039d316-1c4b-4281-b951-d872f2087c98
* Only enable the sse2 flags when building Chromiumtc@google.com2009-05-201-3/+9
| | | | | | | | | BUG=9007 Review URL: http://codereview.chromium.org/113487 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16506 0039d316-1c4b-4281-b951-d872f2087c98
* Changes common.gypi to not wrap number with quotes because of recentsky@chromium.org2009-05-151-1/+1
| | | | | | | | | | | gyp change. BUG=none TEST=none Review URL: http://codereview.chromium.org/113431 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16143 0039d316-1c4b-4281-b951-d872f2087c98
* Adds gyp switch that turns on views on Linux. This currently doesn'tsky@chromium.org2009-05-121-0/+8
| | | | | | | | | | | do anything else, but it will eventually. BUG=none TEST=none Review URL: http://codereview.chromium.org/113304 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15917 0039d316-1c4b-4281-b951-d872f2087c98
* Pulling in new gyp version with product_name support on windows.bradnelson@chromium.org2009-05-121-1/+0
| | | | | | | | Dropping setting that conflicts with this in common.gpyi Review URL: http://codereview.chromium.org/112019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15907 0039d316-1c4b-4281-b951-d872f2087c98
* Fix VS2008 build by adding a warning ignore.dglazkov@chromium.org2009-05-121-1/+1
| | | | | | | | | | R=maruel BUG=2528 TEST=Building with VS2008 should succeed. Review URL: http://codereview.chromium.org/113270 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15859 0039d316-1c4b-4281-b951-d872f2087c98
* Do not define __ARMEL__ on ARM, this is the compilers job.deanm@chromium.org2009-05-111-3/+0
| | | | | | | Review URL: http://codereview.chromium.org/115182 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15751 0039d316-1c4b-4281-b951-d872f2087c98
* Propagate official build variables from buildbot compile.py.mmoss@chromium.org2009-05-081-0/+3
| | | | | | | Review URL: http://codereview.chromium.org/115142 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15690 0039d316-1c4b-4281-b951-d872f2087c98
* Add a variable and settings for -Dtarget_arch=ARM (per Ryan Cairns).sgk@google.com2009-05-061-40/+59
| | | | | | Review URL: http://codereview.chromium.org/115044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15467 0039d316-1c4b-4281-b951-d872f2087c98
* Add AS to scons_import_variables and scons_propagate_variables.thestig@chromium.org2009-05-011-0/+2
| | | | | | Review URL: http://codereview.chromium.org/99292 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15086 0039d316-1c4b-4281-b951-d872f2087c98
* Code coverage improvements.jrg@chromium.org2009-04-301-7/+4
| | | | | | | | | | Code coverage now works for Linux. Unit tests to run passed from project to coverage_posix.py so deps are correct. Review URL: http://codereview.chromium.org/100189 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15016 0039d316-1c4b-4281-b951-d872f2087c98
* Take 3 at turning on -Werror. This passed the last run on thetc@google.com2009-04-281-3/+7
| | | | | | | | | | buildbots, except for the valgrind bots which use -O1. For now, just disable -Werror on the bots with an override. Review URL: http://codereview.chromium.org/100087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14695 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Take 2 at turning on -Werror. I think this will work on gcc 4.2,"tc@google.com2009-04-271-1/+2
| | | | | | | | | This reverts commit r14655. Review URL: http://codereview.chromium.org/100072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14666 0039d316-1c4b-4281-b951-d872f2087c98
* Take 2 at turning on -Werror. I think this will work on gcc 4.2,tc@google.com2009-04-271-2/+1
| | | | | | | | | 4.3, and 4.4. I'll watch the bots closely. Review URL: http://codereview.chromium.org/100066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14655 0039d316-1c4b-4281-b951-d872f2087c98
* More linux ifdef tweaks. This reverts my earlier change (13503).sky@chromium.org2009-04-271-3/+0
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/100046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14628 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Turn on -Werror on linux. Passes on my ghardy box. We'll see"tc@google.com2009-04-241-1/+2
| | | | | | | | | | | | | This reverts commit r14387. Not sure why it fails on the bots. Will fix and try again. TBR=evan Review URL: http://codereview.chromium.org/93103 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14395 0039d316-1c4b-4281-b951-d872f2087c98
* Print backtraces on FATAL log messages in debug mode.ajwong@chromium.org2009-04-241-2/+6
| | | | | | | | This provides basic support for looking up backtrace information on GNU libc systems and in Windows. The code is only enabled for FATAL log messages in debug mode. In a release build, it is unlikely that symbols will be available making the backtrace less useful. Review URL: http://codereview.chromium.org/62140 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14391 0039d316-1c4b-4281-b951-d872f2087c98
* Turn on -Werror on linux. Passes on my ghardy box. We'll seetc@google.com2009-04-241-2/+1
| | | | | | | | | | if the new fedora 11 (gcc 4.4) or new jaunty (gcc 4.3) builders fail. Review URL: http://codereview.chromium.org/92092 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14387 0039d316-1c4b-4281-b951-d872f2087c98
* Add -DCHROME_V8 to the chrome/browser build.sgk@google.com2009-04-221-0/+4
| | | | | | | | Add a 'javascript_engine' variable to control that setting (as well as whether we use v8.gyp at all). Review URL: http://codereview.chromium.org/88070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14171 0039d316-1c4b-4281-b951-d872f2087c98
* Build on Linux with shared libraries (significant chunks courtesy craigsch):sgk@google.com2009-04-221-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Set $RPATH to $LIB_DIR in the SCons configuration. * Add missing dependencies: * net/net.gyp:net => testing/gtest.gyp:gtest * third_party/libxml/libxml.gyp:xmlcatalog => third_party/icu38/icu38.gyp:icuuc * chrome/chrome.gyp:perf_tests => renderer => views => webkit/webkit.gyp:glue * Add files: * third_party/WebKit/WebCore/loader/icon/IconRecord.cpp * third_party/WebKit/WebCore/page/Coordinates.cpp * skia/sgl/SkUnPreMultiply.cpp * Exclude on Linux: * chrome/views/controls/scroll_view.cc * chrome/views/focus/external_focus_tracker.cc * media/filter/ffmpeg_demuxer.{cc,h} * Remove files: * third_party/WebKit/WebCore/Configurations/Version.xcconfig * Sort the chrome.gyp:views linux exclusion list. * DEPS roll for $SHLINKFLAGS settings in gyp. Review URL: http://codereview.chromium.org/88058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14166 0039d316-1c4b-4281-b951-d872f2087c98
* Put $_LIBDIRFLAGS before ${LINK,SHLINK,LDMODULE}FLAGS so we prefersgk@google.com2009-04-201-3/+10
| | | | | | | our own libs (libpng.a, libz.a, etc.) to system ones. Review URL: http://codereview.chromium.org/90006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14059 0039d316-1c4b-4281-b951-d872f2087c98
* Add a new option, debug_optimize, that lets you set thedkegel@google.com2009-04-201-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | optimization level used for debug builds on linux. They still default to -O0, but you can set them to -O1 by doing 'gyp -Ddebug_optimize=1'. This cuts valgrind runtime without screwing up stack dumps too badly. On the buildbot, the easiest way to use this is to create the file ~/.gyp/include.gypi by hand, containing the lines # Override for valgrind buildbot { 'variables': { 'debug_optimize': '1', }, } From then on, any "gclient sync" run, when it runs gyp after finishing, will cause debug builds to use -O1. This is a bit obscure, but it's a heck of a lot easier than threading some flag value through the buildbot scripts or adding a new build mode. Review URL: http://codereview.chromium.org/67199 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14046 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 13839,13838.awalker@google.com2009-04-161-2/+4
| | | | | | Review URL: http://codereview.chromium.org/67220 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13840 0039d316-1c4b-4281-b951-d872f2087c98
* Allow unit_tests (and other non-bundle executables) to rely on objectiveC that'spinkerton@chromium.org2009-04-161-4/+2
| | | | | | | not directly referenced (such as only in a nib file). Add test for tab controller. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13838 0039d316-1c4b-4281-b951-d872f2087c98
* Matching v8 build settings more closely to try to fix regression in performance.bradnelson@google.com2009-04-141-1/+7
| | | | | | Review URL: http://codereview.chromium.org/67092 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13642 0039d316-1c4b-4281-b951-d872f2087c98
* Add INCLUDE_SERVER_PORT and INCLUDE_SERVER_ARGS for distcc pump.thestig@chromium.org2009-04-131-6/+8
| | | | | | Review URL: http://codereview.chromium.org/73008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13632 0039d316-1c4b-4281-b951-d872f2087c98
* Make OSX TestShell able to run workers, using a new test_worker.dylib which ↵dimich@google.com2009-04-101-4/+0
| | | | | | | | is basically a webkit+v8+helpers to simulate separate process with worker v8 threads. This is similar way we do on Win32. Review URL: http://codereview.chromium.org/66043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13537 0039d316-1c4b-4281-b951-d872f2087c98
* Force c++ dtors to get called in objc interfaces (it was always on since ↵pinkerton@chromium.org2009-04-101-0/+1
| | | | | | | | gcc4.2, but this makes it explicit). Use scoped_* goodness. Review URL: http://codereview.chromium.org/70001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13504 0039d316-1c4b-4281-b951-d872f2087c98
* Adds some ifdefs so that test_shell can be compiled on linuxsky@chromium.org2009-04-101-0/+3
| | | | | | | | | | | | | without GTK. I had to recreate this patch as my workspace for various resonds. UGH! BUG=none TEST=none Review URL: http://codereview.chromium.org/67024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13503 0039d316-1c4b-4281-b951-d872f2087c98
* Restore -Wall to Linux build and set up for -Werror.sgk@google.com2009-04-091-0/+3
| | | | | | | | | | | | | | | * Add -Wall to build/common.gypi (and -Werror, commented out for now). * Have build/external_code.gypi remove -Wall (and -Werror). * Remove chromium_code definition from build/all.gyp. * Remove chromium_code definitions from third_party/ *.gyp files. * Remove scons-specific -Werror removal in webkit.gyp. * Remove unused variables from: base/clipboard_linux.cc chrome/browser/gtk/download_shelf_gtk.cc chrome/browser/gtk/bookmark_bar_gtk.cc Review URL: http://codereview.chromium.org/66001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13478 0039d316-1c4b-4281-b951-d872f2087c98
* Linux cflag changes:sgk@google.com2009-04-081-0/+7
| | | | | | | | | * Use -fno-rtti only for C++ V8 compilation. * Move -f{data,function}-sections (for Release) to build/common.gypi. * Add -fno-ident (per deanm). Review URL: http://codereview.chromium.org/62153 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13368 0039d316-1c4b-4281-b951-d872f2087c98
* Basic underpinnings of the gyp equivalent of the Linux SHARED=1 build:sgk@google.com2009-04-081-0/+8
| | | | | | | | | parameterize the 'type' setting of the various library targets, with a default of 'static_library'. (Hat tip to Craig Schlenter.) Review URL: http://codereview.chromium.org/62127 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13345 0039d316-1c4b-4281-b951-d872f2087c98
* Add 'variants' support on Linux for COVERAGE=, PROFILE= and SYMBOLS=.sgk@google.com2009-04-031-0/+13
| | | | | | Review URL: http://codereview.chromium.org/62006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13115 0039d316-1c4b-4281-b951-d872f2087c98
* Start of code coverage for Mac.jrg@chromium.org2009-04-031-0/+35
| | | | | | | | | | | | | Only base_unittests included for now. Linux changes added as well but untested until Linux switches to gyp. Enable coverage with the following command: src/tools/gyp/gyp_dogfood -Dcoverage=1 src/build/all.gyp Review URL: http://codereview.chromium.org/56136 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13068 0039d316-1c4b-4281-b951-d872f2087c98
* Separate the pkg-config --libs output into --libs-only-l forsgk@google.com2009-04-031-1/+1
| | | | | | | | 'libraries' and --libs-{other,only-L} for 'ldflags'. Updates one spot in common.gypi where we were using 'linkflags'. Review URL: http://codereview.chromium.org/56188 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13067 0039d316-1c4b-4281-b951-d872f2087c98
* Use -Wl,-{start,end}-group for LoadableModules, too.sgk@google.com2009-04-021-1/+4
| | | | | | Review URL: http://codereview.chromium.org/56180 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13013 0039d316-1c4b-4281-b951-d872f2087c98
* Add per-configuration flags that were previously being set by thesgk@google.com2009-04-021-0/+16
| | | | | | | Hammer infrastructure. Review URL: http://codereview.chromium.org/56179 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13012 0039d316-1c4b-4281-b951-d872f2087c98
* DEPS roll to get latest gyp rev.sgk@google.com2009-03-311-1/+1
| | | | | | | | Also, Windows update to common.gypi to accommodate msvs.py change in gyp r405. Review URL: http://codereview.chromium.org/57026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12830 0039d316-1c4b-4281-b951-d872f2087c98
* Build in a ../sconsbuild directory by default:sgk@google.com2009-03-271-1/+4
| | | | | | | | | * Deps roll for ../sconsbuild support in gyp. * Add a 'scons_settings': { 'sconsbuild_dir' } setting to common.gypi. * Change uses of $DESTINATION_ROOT to $TOP_BUILDDIR. Review URL: http://codereview.chromium.org/53133 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12636 0039d316-1c4b-4281-b951-d872f2087c98
* Update Linux gyp build to import and propagate external environmentsgk@google.com2009-03-261-2/+16
| | | | | | | | | | variables ($CC, $DISTCC_DIR, $HOME, etc.). Accomodate spelling change ($CHROME_SRC_DIR => $SRC_DIR) that makes the gyp SCons a little more generic. Use the new $LIB_DIR variable the gyp SCons generator now defines for us. Review URL: http://codereview.chromium.org/42650 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12583 0039d316-1c4b-4281-b951-d872f2087c98
* loadable_modules are just like shared libs for code generation.thomasvl@chromium.org2009-03-241-1/+1
| | | | | | Review URL: http://codereview.chromium.org/45038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12392 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a typo in the shared library link line arguments.sgk@google.com2009-03-241-1/+1
| | | | | | Review URL: http://codereview.chromium.org/51006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12337 0039d316-1c4b-4281-b951-d872f2087c98
* Update the gyp Linux build:sgk@google.com2009-03-201-0/+70
| | | | | | | | | | | | | | | | | | | | | | | | * Add Linux settings to target_defaults in common.gypi so gyp-generated SConscript files no longer depend on build/SConscript.main or the Hammer infrastructure. * Copy the FilterOut() function from Hammer to the chromium_builders.py Tool module. * Add a ChromiumLoadableModule() builder to chromium_builders.py. * Add dependencies on the 'views' library to the chrome link (target 'app'). * Add missing views/*/*_unittest.cc modules to the 'unit_tests' target. Exclude all but the one that builds on Linux from the non-Windows builds. * Crib a list of chrome/views files to exclude from the Linux build from the old SCons configuration. * Add a new build/linux/system.gyp file with new 'settings' targets to encapsulate the pkg-config checks for gtk+-2.0, nss and pangoft2. * Add depenedencies in the other targets on the new gtk, nss and pangoft2 'settings' targets from build/linux/system.gyp. * Add a pkg_config_wrapper.py script that keeps gyp happy by simply exiting 0 if the package isn't found. * DEPS roll for latest gyp changes to support the above. Review URL: http://codereview.chromium.org/42340 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12228 0039d316-1c4b-4281-b951-d872f2087c98