Граф коммитов

40 Коммитов

Автор SHA1 Сообщение Дата
schenney@chromium.org 71ddec9dff Removing extraneous pymod_do_main directory from gyp_chromium.
R=abarth@chromium.org, adamk@chromium.org
BUG=297477

Review URL: https://codereview.chromium.org/26853002

git-svn-id: http://src.chromium.org/svn/trunk/src/build@232189 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-31 19:53:39 +00:00
thakis@chromium.org c04abca7a3 mac: Don't crash in build/gyp_chromium if GYP_DEFINES isn't set.
BUG=294387
TBR=mark

Review URL: https://codereview.chromium.org/51113011

git-svn-id: http://src.chromium.org/svn/trunk/src/build@232015 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-31 06:18:11 +00:00
thakis@chromium.org b5feeedf71 mac: Use ninja by default.
With this change, `gclient runhooks` creates ninja files by default on Mac.
To build, run `ninja -C out/Release chrome`. The output appears in out/
instead of in xcodebuild/. (This doesn't happen if OS=ios, so it shouldn't
affect chrome/ios development.)

If you need to use xcode for some reason, you can
`export GYP_GENERATORS=xcode` to force xcode project generation.
If you do this, please inform me why.

Bots should automatically pick up the binaries in the new location (out).
If something does break, it should be safe to revert this change, and bots
should then automatically go back to picking up binaries from the old
location (xcodebuild).

BUG=294387
R=mark@chromium.org

Review URL: https://codereview.chromium.org/31143002

git-svn-id: http://src.chromium.org/svn/trunk/src/build@231675 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-30 00:04:06 +00:00
schenney@chromium.org 697383b493 Add new WebKit/Source/build/scripts path to gyp_chromium
This is the Chromium-side change required for Blink build script rearrangement.
A follow up will be required once the Blink side lands.

R=abarth@chromium.org, adamk@chromium.org
BUG=297477

Review URL: https://codereview.chromium.org/26849002

git-svn-id: http://src.chromium.org/svn/trunk/src/build@227931 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-10 14:50:47 +00:00
alexeypa@chromium.org 3bf1608dda Generate the lists of localization files instead of hardcoding them.
This CL modifies remoting/tools/localize.py script such that it can:
  - be invoked via 'pymod_do_main' filter.
  - generate a separate output file for each locale/language.
  - produce the list of output files for given set of parameters.

remoting.gyp now generates the lists of .pak and message.json files invoking the script via 'pymod_do_main' filter. 'pymod_do_main' is necessary to pass paths unaltered between GYP and python.

The script was also renamed to remoting/tools/build/remoting_localize.py to avoid potential name clashes since the script is globally visible now.

TBR is for the DEPS changes only.

TBR=cpu@chromium.org
BUG=155204

Review URL: https://chromiumcodereview.appspot.com/18868009

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211227 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-11 22:01:30 +00:00
adamk@chromium.org d424926059 Prepare gyp_chromium for moving Source/core/core.gyp/core.gyp up a directory
This adds a new import path for pymod_do_main (and removes an old one).
After core.gyp moves up a directory, the old path can be removed.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/15968014

git-svn-id: http://src.chromium.org/svn/trunk/src/build@204115 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-05 01:19:36 +00:00
thakis@chromium.org 85cb1798c0 Let gyp create ninja files by default on linux.
If a generator is set explicitly (via GYP_GENERATORS or via -f or via
chromium.gyp_env), it will have precedence over the new default.

If you've used make until now, run `ninja -C out/Debug` instead of `make` to
build.

If you're using goma, go/ma has documentation on how to use goma with ninja.
(It's the same as make, except that CC / CXX are now picked up at `gclient sync`
/ `gclient runhooks` / `build/gyp_chromium` time instead of at build time.)

If you can't use ninja for some reason, `export GYP_GENERATORS=make` and sync
again. Please also send me (thakis@chromium.org) an email explaining why ninja
does not work for you.

This will also switch all bots that don't explicitly set a build tool (including
the public bots). compile.py will use ninja instead or make based on if
build.ninja or Makefile are newer, so they should build the right thing
automatically. And since built products end up in the same place, packaging
should do the right thing too.

BUG=239257
R=mark@chromium.org

Review URL: https://codereview.chromium.org/15100009

git-svn-id: http://src.chromium.org/svn/trunk/src/build@199603 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-11 03:18:37 +00:00
abarth@chromium.org d04f35c33d Prepare gyp_chromium for WebCore move
We're about to move Source/WebCore to Source/core. This file has a dependency
on the name "WebCore" and therefore needs to be updated before the move.

Review URL: https://codereview.chromium.org/13949009

git-svn-id: http://src.chromium.org/svn/trunk/src/build@194448 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-16 21:04:55 +00:00
tony@chromium.org 36a222a85d Add a WebCore directory to the python path so we can use pymod_do_main
in Webore.gyp.

In https://bugs.webkit.org/show_bug.cgi?id=106604 , I'm adding a script
for generating idl dependencies. To make it run faster, I'm using
pymod_do_main.

BUG=None

Review URL: https://codereview.chromium.org/11866008

git-svn-id: http://src.chromium.org/svn/trunk/src/build@176437 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-01-11 21:15:19 +00:00
phajdan.jr@chromium.org 048d44a1a7 Generate shim headers for libpng
BUG=165264

Review URL: https://codereview.chromium.org/11470020

git-svn-id: http://src.chromium.org/svn/trunk/src/build@173618 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-18 01:51:37 +00:00
iannucci@chromium.org 693c711ddb Selective build clobbering feature (landmines.py and android build scripts).
Adds the ability for devs/troopers/etc. to set 'landmines' in the tree so that
the build will selectively clobber when a builder moves over a revision with such
a change.

This cl has an basis landmines.py, and hooks the clobber mechanism to the android
build scripts.

The relevant cl which implements this for
compile.py is here: https://chromiumcodereview.appspot.com/11234013/

I'm planning to also implement an informational invocation for gclient to let devs know
about any potential landmines so they can decide if they need to clobber.

This previously attempted to land as: https://chromiumcodereview.appspot.com/11175016

R=ilevy@chromium.org,maruel@chromium.org
BUG=121897


Review URL: https://chromiumcodereview.appspot.com/11377141

git-svn-id: http://src.chromium.org/svn/trunk/src/build@167595 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-14 04:59:48 +00:00
vandebo@chromium.org db864e9b52 Revert 166085 - Selective build clobbering feature (landmines.py and android build scripts).
It looks like this made win extract_build fail.

Adds the ability for devs/troopers/etc. to set 'landmines' in the tree so that
the build will selectively clobber when a builder moves over a revision with such
a change.

This cl has an basis landmines.py, and hooks the clobber mechanism to the android
build scripts. 

The relevant cl which implements this for
compile.py is here: https://chromiumcodereview.appspot.com/11234013/

I'm planning to also implement an informational invocation for gclient to let devs know
about any potential landmines so they can decide if they need to clobber.

R=cmp,maruel@chromium.org
BUG=121897

Review URL: https://chromiumcodereview.appspot.com/11175016

TBR=iannucci@chromium.org
Review URL: https://codereview.chromium.org/11293111

git-svn-id: http://src.chromium.org/svn/trunk/src/build@166105 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-06 01:53:24 +00:00
iannucci@chromium.org 378a534dbb Selective build clobbering feature (landmines.py and android build scripts).
Adds the ability for devs/troopers/etc. to set 'landmines' in the tree so that
the build will selectively clobber when a builder moves over a revision with such
a change.

This cl has an basis landmines.py, and hooks the clobber mechanism to the android
build scripts. 

The relevant cl which implements this for
compile.py is here: https://chromiumcodereview.appspot.com/11234013/

I'm planning to also implement an informational invocation for gclient to let devs know
about any potential landmines so they can decide if they need to clobber.

R=cmp,maruel@chromium.org
BUG=121897

Review URL: https://chromiumcodereview.appspot.com/11175016

git-svn-id: http://src.chromium.org/svn/trunk/src/build@166085 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-06 00:13:27 +00:00
grt@chromium.org 2cddb2fec5 Add support for CC and CXX in chromium.gyp_env. These are useful for winja+GOMA.
BUG=none
TEST=none

Review URL: https://chromiumcodereview.appspot.com/10880023

git-svn-id: http://src.chromium.org/svn/trunk/src/build@153126 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-08-24 00:45:30 +00:00
yongsheng.zhu@intel.com cec397d82e Change the gyp_chromium to build chromium in a symbolic link
If the path of chromium source is a symbolic link,
os.getcwd() returns the real path but __file__ will include
the symbolic link. It causes gyp failures due to the inconsistency.

BUG=
TEST=


Review URL: https://chromiumcodereview.appspot.com/10692086

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146172 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-11 19:34:17 +00:00
bradnelson@google.com 4ec520aaab Adding native_client/build to the gyp module include path.
This will allow nacl's scan_sources.py script to switch to using
the pymod_do_main feature in gyp to:
  - reduce runtime
  - circumvent command line length limits on windows

BUG=None
TEST=None
R=noelallen@chromium.org,bbudge@chromium.org,mseaborn@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10408016

git-svn-id: http://src.chromium.org/svn/trunk/src/build@137783 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-18 00:33:11 +00:00
joi@chromium.org ce0d09b651 Allow overriding GYP_GENERATORS in chromium.gyp_env.
This is useful e.g. if you use Ninja.

BUG=None


Review URL: https://chromiumcodereview.appspot.com/10356138

git-svn-id: http://src.chromium.org/svn/trunk/src/build@136921 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-14 18:39:27 +00:00
maruel@chromium.org 3510effb96 Revert r136547 "Enforce VS2010 on trunk."
This is not necessary on trunk.

TBR=kerz@chromium.org

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10382126

git-svn-id: http://src.chromium.org/svn/trunk/src/build@136548 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-11 12:38:05 +00:00
maruel@chromium.org caeac712a6 Enforce VS2010 on trunk.
To be used to drover into branches.

R=kerz@chromium.org
BUG=
TEST=To be reverted right after.

Review URL: https://chromiumcodereview.appspot.com/10383125

git-svn-id: http://src.chromium.org/svn/trunk/src/build@136547 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-11 12:37:00 +00:00
maruel@chromium.org c76bd17ab7 Revert r136545 "Enforce VS2008."
It is not necessary in trunk.

TBR=kerz@chromium.org
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10310121

git-svn-id: http://src.chromium.org/svn/trunk/src/build@136546 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-11 12:36:11 +00:00
maruel@chromium.org 837f8401e8 Enforce VS2008.
Only to be used to drover in the relevant branches.

R=kerz@chromium.org
BUG=
TEST=To be reverted right away.

Review URL: https://chromiumcodereview.appspot.com/10387072

git-svn-id: http://src.chromium.org/svn/trunk/src/build@136545 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-11 12:34:25 +00:00
tony@chromium.org 4576b99919 Enable the packed_resources target on Windows.
This target generates the locale .pak files on Windows.  Since nothing
depends on this target, it doesn't build by default (they're not used
yet).

Specific changes:
- Have locale_settings_win.grd generate .pak files.
- Use pymod_do_main to avoid some shell escaping problems (and it's a bit
  faster).
- Rewrite repack_locales.py to work with pymod_do_main.

BUG=92724


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@97012 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-08-16 20:43:27 +00:00
tony@chromium.org e7d8f3770d Remove features_override.gypi. Currently, it matches the values
in the upstream features.gypi.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@88721 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-06-10 20:44:47 +00:00
thakis@chromium.org ee2c506a4b Invoke grit_info as a python module.
This speeds up build/gyp_chromium by 7s on my system (for a total of 10s with the other grit_info changes I landed earlier).

BUG=82230
TEST=none


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@87140 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-05-28 02:11:24 +00:00
pam@chromium.org 91dd42223f Set chrome_dir as an absolute path. This makes the path to the hermetic Python still valid when running subprocesses in a different working directory (cwd). For example, gyp\input.py does this when expanding variables.
BUG=79166
TEST='gclient runhooks' succeeds under cygwin with no Python installed in depot_tools
Review URL: http://codereview.chromium.org/6823078

git-svn-id: http://src.chromium.org/svn/trunk/src/build@82088 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-04-19 09:33:24 +00:00
phajdan.jr@chromium.org fa0c695188 OpenBSD: compatibility fixes for the build system.
- switch from /bin/bash to /bin/sh (bash is not a part of base system
  on OpenBSD)
- switch from /usr/bin/python to /usr/bin/env python (python is not a part
  of base system on OpenBSD)

BUG=none

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@81550 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-04-14 08:38:55 +00:00
joi@chromium.org 8c4f28a363 Add use of the Psyco JIT compiler to GYP on Windows. On my z600 with 12 GB of RAM, this shortens the time taken for a warm run of build/chromium_gyp from approximately 90 seconds down to approximately 70 seconds. On the other hand, it increases maximum memory usage for the GYP process from ~132 MB to ~158 MB on the same test system.
At the moment it is unknown whether using Psyco on Mac and Linux would pay off; follow-up changes may address this if it is.

BUG=none
TEST=things build correctly

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@79871 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-03-30 18:52:23 +00:00
bradnelson@google.com 9462139311 Causing gyp_chromium to fall back on win32 hermetic python if it is
ever run with cygwin python.

BUG=http://code.google.com/p/gyp/issues/detail?id=178
TEST=None

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@75695 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-02-23 02:00:06 +00:00
thomasvl@chromium.org 825cda0e76 Add support for a chromium.gyp_env at the top of the tree (peer of src) so you
don't have to set a bunch of independent variables and can instead set
  things in a group per tree.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/4705001

git-svn-id: http://src.chromium.org/svn/trunk/src/build@65408 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2010-11-08 20:09:23 +00:00
evan@chromium.org 0a078d4a6e gyp_chromium: put our path in the front of sys.path
This way we use our version of gyp rather than the system's copy(!),
when the latter is available.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@52135 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2010-07-12 21:56:56 +00:00
tony@chromium.org 655da684b2 Fix ChromiumOS build (it still has circular dependencies).
TBR=mark

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@48008 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2010-05-24 00:48:16 +00:00
tony@chromium.org dab91390db Break gyp cycles on Linux.
The cycle is between installer.gyp and chrome.gyp.  The fix is to switch installer.gyp into installer.gypi and include it into chrome.gyp

BUG=35308

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@48007 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2010-05-24 00:35:46 +00:00
rsesek@chromium.org 63cd076778 In build/gyp_chromium, if CHROMIUM_GYP_SYNTAX_CHECK is set to 1, run gyp with --check.
This is to eventually run gyp with syntax checking enabled on the buildbots.
Enabling that will come in a later CL after all gyp errors are fixed.

BUG=none
TEST=none

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@42788 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2010-03-26 18:40:49 +00:00
mark@chromium.org b3400c94ed Circular relationships between .gyp files should be errors. Make them errors,
but currently only on the Mac.

These relationships should be errors on all platforms, but some currently
exist on non-Mac platforms.  See http://crbug.com/35878.  Because the Mac is
the only platform where a circular dependency between .gyp files is known to
cause tangible problems, the portions of Chromium's .gyp files that are used
by Macs have been fixed to remove these relationships, and the check is left
enabled on the Mac to ensure that no new ones are created.

BUG=35308
TEST=none
Review URL: http://codereview.chromium.org/600151

git-svn-id: http://src.chromium.org/svn/trunk/src/build@39128 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2010-02-16 20:14:26 +00:00
yaar@chromium.org ac49c578a1 gyp_chromium automatically includes features_override.gypi
Other projects that use gyp_chromium directly depend on that.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@28035 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-10-05 20:48:38 +00:00
sgk@google.com 849c008d9d Create a separate function that returns the list of additional
files to be included in the build (common.gypi and */supplement.gypi).
BUG=none
TEST=successful "gclient runhooks"
Review URL: http://codereview.chromium.org/214058

git-svn-id: http://src.chromium.org/svn/trunk/src/build@26901 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-09-23 03:49:50 +00:00
mattm@chromium.org 5ba0f23123 Avoid gyp_chromium duplicating an include that's already in the command line.
Fixes automatic makefile regeneration from duplicating gcc flags and causing a full rebuild each time.

BUG=none
TEST=make && touch chrome/chrome.gyp && make

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@26415 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-09-16 23:16:05 +00:00
sgk@google.com eb43828260 Refactor gyp_chromium so you don't have to execute it from the src/.. directory.
BUG=none
TEST='python src/build/gyp_chromium; cd src; python build/gyp_chromium; cd build; python gyp_chromium'
Review URL: http://codereview.chromium.org/195107

git-svn-id: http://src.chromium.org/svn/trunk/src/build@26408 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-09-16 22:37:47 +00:00
mark@chromium.org 727acf7f42 Make follow-up changes per r26302 review comments that were apparently not made
in r26302.  Set Subversion properties, fix the O3D GYP invocation to work
properly, fix presubmit warnings, and do some additional cleanup.
Review URL: http://codereview.chromium.org/200144

git-svn-id: http://src.chromium.org/svn/trunk/src/build@26378 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-09-16 19:44:02 +00:00
yaar@chromium.org 348eca2172 Force inclusion of build/common.gypi for all chromium gyp files.
Why: Simpler build code. If everybody includes it, it should be included automatically.
Why now: The webkit chromium builds need it be specified, since can't default to build/common.gypi.

What was done:
1. build/common.gypi's contents were moved to a new file build/gyp_chromium.gypi
2. tools/gyp/gyp_chromium was moved to build/gyp_chromium and made to automatically include build/gyp_chromium.gypi.
3. lots of gyp files were fixed to not refer to build/common.gypi any more.
4. o3d which also builds independently of chrome, was fixed to have a gyp_o3d that includes gyp_chromium.gypi too.
5. build/common.gypi was left empty, because there are some external projects that still refer to it.

Things that are left to do after this patch is in:
1. The following external files (in other repositories) need to stop include common.gypi
  ./third_party/hunspell/hunspell.gyp
  ./third_party/icu/icu.gyp
  ./v8/tools/gyp/v8.gyp
2. Once nobody refers to common.gypi anymore, delete common.gypi
   -or-
   Delete gyp_chromium.gypi and move its content back to common.gypi

Tested on mac, win and linux. On win, got a few unit tests errors on chrome bookmarks, which should not be related. I'm running again with clobber to verify.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@26302 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-09-15 23:52:14 +00:00