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

156 Коммитов

Автор SHA1 Сообщение Дата
scottmg@chromium.org 6dac171ec6 add temporary debug prints to debug builders
git-svn-id: http://src.chromium.org/svn/trunk/src/build@252748 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-22 04:52:15 +00:00
scottmg@chromium.org 74bdf159c5 Re-enable 2013 with corrected hashes
TBR=iannucci@chromium.org
BUG=323300,309197

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@252738 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-22 03:24:51 +00:00
scottmg@chromium.org 6c16694602 temp disable 2013 switch
git-svn-id: http://src.chromium.org/svn/trunk/src/build@252736 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-22 03:03:13 +00:00
scottmg@chromium.org 9d11907524 Move control of updating toolchain into src/
Moved out of depot_tools here: https://codereview.chromium.org/168603004/

The control is in src/ now, but logic for de-duplication is still in depot_tools.

This changes the default, so that VS2013 will be the default toolchain.

R=iannucci@chromium.org
BUG=323300,309197

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@252733 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-22 02:41:37 +00:00
thakis@chromium.org 642050daf9 Let gyp_chromium set GYP_CROSSCOMPILE for android and ios.
Then envsetup doesn't need to set it, and the chromium.gyp_env files
used in the ios build no longer has to set this either.

BUG=330631
R=scottmg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@252649 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-21 21:27:24 +00:00
scottmg@chromium.org dbecf0d182 Don't use automatic toolchain if GYP_MSVS_VERSION overridden to another version
This accomplishes three things:
- simple switch back to 2010 temporarily, if necessary
- making sure that all bots don't switch at exactly the same time (almost all have GYP_MSVS_VERSION=2010 in their settings)
- in particular, not having Official builders switch

Unfortunately, this will need to be merged on to the 34 branch, as it has the current "auto-use" code, so otherwise it'd switch to 2013 as soon as depot_tools starts updating the toolchain (previously, the only check was whether the toolchain exists on the local hard drive).

R=maruel@chromium.org
BUG=323300

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@252604 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-21 18:44:41 +00:00
mattm@chromium.org 69dd7501d1 Win automatic toolchain: copy runtime dlls properly when not run from chrome/src.
gclient runhooks runs gyp_chromium from the chrome/ dir, but the script
was looking for out/ relative to that.

BUG=323300

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@252500 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-21 05:14:18 +00:00
saiarcot895@gmail.com 4276ee8fd8 Move the "import find_depot_tools" line to sections that actually use it.
This shrinks the dependency of depot_tools to only Windows and Cygwin, and allows those on other OSes to just build tarballs of sources without also having the depot_tools.

BUG=none

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@252434 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-21 00:30:29 +00:00
thakis@chromium.org 007dfc2325 android envsetup: Stop honoring --target-arch parameter.
Most people don't use this parameter and get arm binaries. This is
still the default, so this change shouldn't affect most people.

Folks should instead pass -Dtarget_arch to gyp. (Or, soon, envsetup will stop
clobbering GYP_DEFINES, then you can just add target_arch to your GYP_DEFINES.)
Note that in gyp land, 'mips' is called 'mipsel' and 'x86' is called 'ia32'.
'arm' stays 'arm'.

So for example, instead of running

  . build/android/envsetup.sh --target-arch=mips
  android_gyp

you'd run

  . build/android/envsetup.sh
  android_gyp -Dtarget_arch=mipsel

I updated the bots I was able to find to pass the -D flag in addition to
--target-arch. After this CL here is in, I'll update the bots to stop passing
--target-arch, and then I'll make --target-arch a hard error in this script for
a while, to make sure nobody still uses it.

BUG=330631,34476
R=torne@chromium.org
TBR=yfriedman

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@252034 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-19 18:20:22 +00:00
scottmg@chromium.org 6028894fc4 Fix automatic toolchain when msvs-ninja in GYP_GENERATORS
Previously, we checked that GYP_GENERATORS was "ninja", but this
broke when using GYP_GENERATORS=ninja,msvs-ninja. As there are no
other supported genearators than those two now, there's no need
to check that we're using ninja at all, so just remove that
branch of the if.

BUG=323300
R=jschuh@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@251406 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-14 20:10:43 +00:00
brettw@chromium.org 771e71e45a GN iOS build fixes.
This properly sets the DEPLOYMENT_TARGET in the generated GYP file (previously this value wa salways hardcoded to empty -- whoops!).

Sets the simulator properly. Previously when not using an explicit SDK the Xcode generator would still end up with a simulator build. This turns the flag into a tri-state so gyp_chromium can set it explicitly when an SDK is specified, but otherwise we can trigger default behavior based on Xcode/Ninja.

TBR=scottmg

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@249643 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-07 09:02:37 +00:00
scottmg@chromium.org 7aef8e0121 Move landmines into gyp_chromium
This ensures that the environment that's passed to gyp is the one that
landmines.py uses to determine when to set landmines.

Also, fix '2013e' not being detected as a 2013 switch.

BUG=309197, 323300
R=iannucci@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@249242 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-06 02:44:55 +00:00
scottmg@chromium.org d278b247d8 Copy VS runtime DLLs to output directory
When using the automatic toolchain for vs2013, they won't necessarily
be system-installed, so copy them next to the output binaries.

R=dpranke@chromium.org
BUG=326357

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@248790 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-04 22:11:57 +00:00
scottmg@chromium.org 3719dcde20 Support Express for 2013 automatic toolchain
Pick up setting for Express 2013 to get WDK_DIR set (required
for ATL with Express).

Add additional "or 2013e" to build/common.gypi, but exclude
unneeded workaround for intsafe.h.

R=dpranke@chromium.org
BUG=323300, 340358

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@248747 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-04 17:50:01 +00:00
brettw@chromium.org f902545676 Work on GN iOS build.
Separates out some "SDK" related setup on Mac land Linux like we do on Windows. I'm trying to make the "compiler" BUILD file just compiler warnings and CPU options, and have system library stuff on the platform directories.

This adds the capability for GN to produce GYP files on Mac that vary according
to the GYP generator as well as target-vs-host. I added a bunch of logic to the
GN iOS build to set up stuff accordingly based on my current knowledge of
what's required.

Sadly, this means we now have an 8-way GN build (all combinations of
debug/release, host/target, and xcode/ninja). I did some refactoring of the GYP
code in GN to make this less unreasonable.

I checked that the GYP files look the way I want, but I didn't actually test
the resulting builds yet. There is still likely to be some conditions wrong or
things not being set properly. I'm going to follow up with a second pass based on actual testing.

I believe, however, that with this new GYP generator code in GN, we can express
in the .gn files what we need to do the iOS build.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@248476 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-03 12:04:33 +00:00
thakis@chromium.org 123a18e910 gn/gyp: Escape \ in addition to $ and " in strings.
BUG=340055
R=halyavin@google.com
TBR=brettw@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@248410 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-02 16:17:12 +00:00
thakis@chromium.org 588ee2e9f5 Support joined -D flags for gn.
BUG=326230
TBR=brettw@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@246558 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-23 09:55:45 +00:00
thakis@chromium.org 931bc52341 gn: Pass through msan flag.
BUG=none
TEST=GYP_DEFINES=msan=1 build/gyp_chromium works.
TBR=brettw@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@246188 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-22 00:47:39 +00:00
jamesr@chromium.org 55a88f7f1b Support -Goutput_dir=blahblah in GN-GYP hybrid mode
This supports specifying the output_dir generator flag in the gn-generating-gyp
mode. The value of the output_dir flag is mapped to a gyp variable called gyp_output_dir
and a GN argument by the same name. References from gyp to gn-generated gyp files must
use this variable and references from BUILD.gn files must use the gn argument.

BUG=335760
TBR=brettw for build/config/BUILDCONFIG.gn (looked at in person)

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@245800 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-18 23:51:41 +00:00
thakis@chromium.org aa5d793c46 Escape 'gomadir' for GN.
No real functionality change (except for people who have " or $ in their gomadir,
but since that didn't work up until this change nobody does that).

R=brettw@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@245799 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-18 23:50:25 +00:00
brettw@chromium.org d3ce57c03f Add support for the arm_float_abi flag to the GN build.
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@245765 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-18 09:06:50 +00:00
pkasting@chromium.org 030cdf69de Switch gyp_chromium from third_party/python_26, which is gone, to
depot_tools/python276_bin.

BUG=335180
TEST=gclient runhooks works again on Cygwin
R=maruel@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@245705 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-18 01:29:57 +00:00
brettw@chromium.org d34dce13b5 Add support for Dr memory and Windows tsan in the GN build.
This generalizes the GCC iterator debugging flag to now be platform-independent.

R=scottmg@chromium.org
TBR=scottmg

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@245665 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-18 00:00:08 +00:00
brettw@chromium.org b3af3ccb35 Hook up clang_use_chrome_plugins to the GN build.
Previously this was ignored in the GN build but disabling the plugin is used on some buildbots.

BUG=http://crbug.com/330298
R=thakis@chromium.org, thakis

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@245602 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-17 20:34:06 +00:00
brettw@chromium.org 8972c57d08 Hook up gomadir in the GN build.
Without this, GYP will fail if you manually specify gomadir in your GYP_DEFINES.

R=jamesr@chromium.org, jamesr

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@245595 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-17 20:20:27 +00:00
brettw@chromium.org 8ad37c4b4e Hook up the tsan flag for the GN build.
Add a flag to disable GLIBCXX_DEBUG which is used in the GYP build on some bots.

TBR=scottmg

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@245577 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-17 19:05:45 +00:00
scottmg@chromium.org 97d412978d win: Find and use toolchain installed by depot_tools
The toolchain directory inside depot_tools will only exist if
"set DEPOT_TOOLS_WIN_TOOLCHAIN=1" so this is currently a no-op.

It will break the "dogfood" of 'GYP_MSVS_USE_SYSTEM_TOOLCHAIN'
now renamed per above, but I think only a few people tested
that (cc'd here).

R=dpranke@chromium.org
BUG=323300, 326357

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@245412 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-17 01:40:31 +00:00
brettw@chromium.org db4636728a Use ~/.gyp/include.gypi in GN build.
This also fixes the goma toolchain definition. My conditions syntax was missing a set of [].

R=scottmg@chromium.org
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@245371 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-16 23:17:30 +00:00
scottmg@chromium.org e7db2b33d4 Move RunGN lower so that modifications to os.environ take effect
Without this the os.environ changes for various default values are
not taken into effect by GN.

R=brettw@chromium.org
BUG=323300

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@244963 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-15 19:45:29 +00:00
thakis@chromium.org 862b84ed2d android: Set gcc_version in build/common.gypi instead of in envsetup.
BUG=330631
R=torne@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@244615 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-14 00:14:49 +00:00
nick@chromium.org 8e2786ef74 Fix handling of visual studio override when using automated toolchain.
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@243845 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-09 11:40:38 +00:00
scottmg@chromium.org b645fc64eb win: Use ninja by default
With this change, `gclient runhooks` creates ninja files by default on
Windows. To build, run `ninja -C out\Release chrome`. The output appears
in out\ instead of build\.

If you need to use a VS build for some reason, you can still
`set GYP_GENERATORS=msvs`. This is no longer a tested configuration.

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 (build).

R=thakis@chromium.org
BUG=303291

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@243782 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-09 05:08:41 +00:00
brettw@chromium.org cd32cb2c96 Work on Android GN build.
Adds arm version and some android configuration build flags.

This adds most of the logic from common.gypi to the Android GN build.

This is currently missing the crtbegin/end stuff and won't actually make real Android builds. The logic in this patch is just the initial conversion that will require testing and several more passes of fixes.

R=torne@chromium.org, torne

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@243681 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-08 22:47:42 +00:00
brettw@chromium.org 384477bd44 Remove extra print statemt from GYP.
I accidentally checked this in.

TBR=scottmg

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@243618 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-08 18:59:48 +00:00
brettw@chromium.org d26952a6e6 GN: Autodetect Visual Studio versions
This searches the local system for Visual Studio versions like GYP. It enables specifically requesting one version, as well as overriding the directory like GYP.

BUG=
R=scottmg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@243612 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-08 18:46:44 +00:00
brettw@chromium.org ad0ae7286a GN Command line -D parsing, goma on Windows
This makes gyp_chromium pass defines defined via -D on the command line to GN.

Fixes double-escaping of strings from supplemental.gypi files.

Pass use_goma to the GN build.

Handle "use_goma" and "use_goma=1" (same for other boolean values). Previously values with no equals sign were getting converted to 'true', which doesn't match '1' which we look for.

Output goma wrappers in the GYP header for Windows toolchains.

R=scottmg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@243446 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-08 00:32:04 +00:00
petarj@mips.com 288464dda0 [MIPS] Add support for Chromium-Android for MIPS build to BUILD.gn
Fix build regressions for Chrome for Android for MIPS that came with r242674.

BUG= gclient runhooks fails for MIPS
TEST= build content_shell for Android MIPS

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@242797 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-02 21:15:53 +00:00
brettw@chromium.org e8cf6ff9f4 Add GN conversions for flags
Adds a remapping from important GYP flags used on the main waterfall for GN. For the other ones, I added a list of used flags and filed bugs for them.

R=scottmg@chromium.org
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@242356 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-23 05:11:32 +00:00
brettw@chromium.org 3a9eea075c Convert clang=1 to the GN build.
This maps clang=1 in GYP to is_clang=true in GN.

BUG=
R=scottmg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@242181 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-20 21:37:43 +00:00
brettw@chromium.org 0a09a4a4fb Don't double-quote strings when passing them into GN args.
Previously, both EscapeStringForGN and GetArgsStringForGN would add quotes.

BUG=
R=finnur@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@241075 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-17 00:02:45 +00:00
brettw@chromium.org 8ededa0c74 Hook up GN official build and branding.
This passes the official build and branding flags to the GN build. Currently, this is used to hook up the proper sysroot for compiling on Linux for official builds. The 32-bit branded build does not compile currently due to pending pkgconfig issues.

Fix a bug where assertions in the build config would not get reported properly. This was because I forgot to actually throw the error at the toplevel.

BUG=
R=piman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@240918 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-16 17:58:16 +00:00
brettw@chromium.org 1e1b1c6294 Move all GYP->GN argument conversion to Python.
This moves build variable remapping from C++ to the Python wrapper. This will be much more scaleable since we can add stuff to the script atomically without rolling out new binaries.

R=scottmg@chromium.org, scottmg

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@240732 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-13 20:28:08 +00:00
scottmg@chromium.org 61e8b4e567 Include VS2013 runtime folders in PATH for automatic toolchain
Reproduced on a new Win7 x64 VM, and this fixed the build (at
least for the chrome target).

This doesn't address the need to copy the runtime DLLs into the
output directory so that chrome runs though, that's a separate
problem where something in chrome's gyp should be copying them
there, at least for a debug build.

TBR=mikelawther@chromium.org
BUG=326345

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@239671 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-10 05:32:16 +00:00
brettw@chromium.org 1ee17157e6 Re-enable GN as part of GYP execution.
BUG=288991
R=scottmg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@239254 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-06 20:35:07 +00:00
brettw@chromium.org c32f2dc9b3 Treat cygwin the same as Windows when selecting the GN binary.
R=maruel@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@239028 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-05 20:35:31 +00:00
thakis@chromium.org 5800e20e83 Disable GN call, it breaks the win perf builder.
BUG=326146
TBR=brettw@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@238982 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-05 16:55:13 +00:00
thakis@chromium.org 0aa98a93d1 gyp_chromium: Escape " for gn files.
BUG=326024
TBR=brettw@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@238883 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-05 03:51:46 +00:00
thakis@chromium.org 2bfd88203a Fix build/gyp_chromium for supplement.gypi files with no variables.
BUG=325989
TBR=brettw@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@238859 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-05 02:11:23 +00:00
brettw@chromium.org d18ac89f2f Fix handling of GYP defines from supplemental files.
This adds a call to the escaping function for variables from supplmental files.

R=thakis@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@238792 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-04 22:11:56 +00:00
brettw@chromium.org 7bbadce4c1 Re-enable GN in the GYP build.
This fixes Android GYP defines by more conservatively rewriting all key
characters that aren't alphabetic.

BUG=321352
R=thakis@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@238752 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-04 20:28:10 +00:00
plundblad@chromium.org 9535ee755f Build liblouis_nacl using gyp.
Tries to reland 237638 after fixing compiler warnings from a more recent compiler used on arm.

This cl ports the nacl wrapper to the chromium build system and adds local modifications from Chromevox to liblouis. The native library and braille tables are copied to the location in the resources output directory where chromevox can pick them up.

BUG=316353

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=237638

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@238548 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-04 03:34:57 +00:00
brettw@chromium.org d3fcab9a5f Disable GN in gyp_chromium.
Android is still broken:
 https://chromegw.corp.google.com/i/clank.tot/builders/clang-clankium-tot-builder/builds/23775/steps/runhooks/logs/stdio 

ERROR ?\027[0mat the command-line "--gyp_vars":1:29: Invalid token.
data_reduction_fallback_host%="http://compress.googlezip.net:80/" app_manifest_version_name="clang-clankium-tot-builder 33.0.1728.0" gcc_version="46" app_manifest_version_code="1728000" data_reduction_proxy_probe_url%="http://check.googlezip.net/connect" host_os="linux" component="shared_library" clang="1" spdy_proxy_auth_origin%="https://proxy.googlezip.net:443/" order_text_section="/b/build/slave/clang-clankium-tot-builder/build/src/orderfiles/orderfile.out" spdy_proxy_auth_value%="3c1d997267c567617ffe0e1b1ebbeed71398dd27" target_arch="arm" chrome_build_id="none" fastbuild="1" OS="android" android_app_targets="['../clank/native/framework/clank.gyp:clank', '../clank/native/framework/clank.gyp:devtools_resources', '../clank/native/framework/clank.gyp:chrome_test_apk', '../clank/java/geppetto/uiautomator.gyp:chrome_uiautomator_tests']"
?\027[0m                            ^
?\027[0mI have no idea what this is.
Generating gyp files from GN...
< gclient runhooks
ERROR: process exited with code 2
@@@STEP_FAILURE@@@
FATAL 2 != 88

BUG=
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@238519 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-04 01:28:46 +00:00
brettw@chromium.org a0df8e0b5c Convert GN hyphens to underscores when passing command line args.
Some GYP variables are named like "pkg-config"

Replace - with _ when doing converting GN variable names.

TBR=michaeln

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@238494 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-04 00:27:35 +00:00
brettw@chromium.org 2709ce9769 Check getconf to get the bittedness of the local system.
This checks the bittedness of the local system using getconf instead of "file
/sbin/init". "file" isn't on some ChromeOS roots.

BUG=
R=thakis@chromium.org
TBR=thakis

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@238493 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-04 00:05:44 +00:00
jam@chromium.org e45bc881d5 Fix crash in gyp. TBR=brettw
git-svn-id: http://src.chromium.org/svn/trunk/src/build@238489 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-03 23:55:59 +00:00
thakis@chromium.org 0c529cf09a Fix crash during build/gyp_chromium time.
Without GYP_DEFINES set, build/gyp_chromium would crash with

Generating gyp files from GN...
Traceback (most recent call last):
  File "./build/gyp_chromium", line 207, in <module>
    if not RunGN(supplemental_includes):
  File "./build/gyp_chromium", line 147, in RunGN
    gyp_vars = GetVarsStringForGN(supplemental_includes)
  File "./build/gyp_chromium", line 79, in GetVarsStringForGN
    items = shlex.split(env_string)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shlex.py", line 279, in split
    return list(lex)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shlex.py", line 269, in next
    token = self.get_token()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shlex.py", line 96, in get_token
    raw = self.read_token()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shlex.py", line 124, in read_token
    nextchar = self.instream.read(1)
AttributeError: 'list' object has no attribute 'read'

This was broken by r238475

BUG=321352

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@238486 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-03 23:36:53 +00:00
brettw@chromium.org fec712e674 Hook up GN to the GYP build system.
This is a reland of 236542 and 238454 (runs GN in GYP mode before actually running GYP), plus some additions

Move GYP_DEFINES parsing to Python for GN.

I pass in a GN-compatible list of variable sets on the command line from Python. This allows us to parse chromium.gyp_env and src/*/supplemental.gypi in Python like normal without having to duplicate Python dictionary parsing in GN.

Currently, GN does not produce any files used by the build, these will be added in a second step.

BUG=321352
TBR=bradnelson@google.com

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@238475 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-03 23:14:46 +00:00
brettw@chromium.org 0fb5e8f701 Revert 238454 "Hook up GN to the GYP build system."
> Hook up GN to the GYP build system.
> 
> This is a reland of 236542 (runs GN in GYP mode before actually running GYP), plus some additions
> 
> Move GYP_DEFINES parsing to Python for GN.
> 
> I pass in a GN-compatible list of variable sets on the command line from Python. This allows us to parse chromium.gyp_env and src/*/supplemental.gypi in Python like normal without having to duplicate Python dictionary parsing in GN.
> 
> Currently, GN does not produce any files used by the build, these will be added in a second step.
> 
> BUG=321352
> R=bradnelson@google.com
> 
> Review URL: https://codereview.chromium.org/73623005

TBR=brettw@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@238459 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-03 21:21:14 +00:00
brettw@chromium.org 5e345ec6dd Hook up GN to the GYP build system.
This is a reland of 236542 (runs GN in GYP mode before actually running GYP), plus some additions

Move GYP_DEFINES parsing to Python for GN.

I pass in a GN-compatible list of variable sets on the command line from Python. This allows us to parse chromium.gyp_env and src/*/supplemental.gypi in Python like normal without having to duplicate Python dictionary parsing in GN.

Currently, GN does not produce any files used by the build, these will be added in a second step.

BUG=321352
R=bradnelson@google.com

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@238454 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-03 21:08:09 +00:00
scottmg@chromium.org fcfc9d57ab gyp_chromium integration for automatic toolchain
When opting in via GYP_MSVS_USE_SYSTEM_TOOLCHAIN=0, set
environment variables that tell gyp how to find the automatic
toolchain in third_party/win_toolchain.

R=maruel@chromium.org
BUG=323300

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@238426 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-03 17:48:26 +00:00
ckocagil@chromium.org 3ad7d1341e Revert 237638 "Build liblouis_nacl using gyp."
> Build liblouis_nacl using gyp.
> 
> This cl ports the nacl wrapper to the chromium build system and adds local modifications from Chromevox to liblouis. The native library and braille tables are copied to the location in the resources output directory where chromevox can pick them up.
> 
> BUG=316353
> 
> Review URL: https://codereview.chromium.org/67283007

TBR=plundblad@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@237670 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-28 04:54:31 +00:00
plundblad@chromium.org 6df7a25ad4 Build liblouis_nacl using gyp.
This cl ports the nacl wrapper to the chromium build system and adds local modifications from Chromevox to liblouis. The native library and braille tables are copied to the location in the resources output directory where chromevox can pick them up.

BUG=316353

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@237638 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-27 23:05:46 +00:00
brettw@chromium.org 424b4a7cb0 Revert 236542 "Run GN as part of runhooks."
> Run GN as part of runhooks.
> 
> This runs GN in GYP mode before actually running GYP.
> 
> Currently, GN does not produce any files used by the build, these will be added in a second step.
> 
> BUG=
> R=maruel@chromium.org
> 
> Review URL: https://codereview.chromium.org/62803003

TBR=brettw@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@236543 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-21 17:42:29 +00:00
brettw@chromium.org 7a3a2e860a Run GN as part of runhooks.
This runs GN in GYP mode before actually running GYP.

Currently, GN does not produce any files used by the build, these will be added in a second step.

BUG=
R=maruel@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@236542 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-21 17:36:21 +00:00
iannucci@chromium.org 7ed047c46b Add GYP_CHROMIUM_NO_ACTION environment variable to gyp_chromium
This is inorder to allow non-standard bots to run gclient runhooks without
running gyp_chromium.

See also: https://codereview.chromium.org/69173006/

R=brettw@chromium.org, mkosiba@chromium.org
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@236300 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-20 21:30:30 +00:00
plundblad@chromium.org 82e7e111cd Add build target for nacl_io from the NaCl SDK.
BUG=316353
R=noelallen
CC=bradnelson

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@235053 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-14 06:10:14 +00:00
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