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

53 Коммитов

Автор SHA1 Сообщение Дата
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
brettw@chromium.org 19bfe364ed GN: Remove android arguments from the conditional
This will make it possible to pull GN binaries on Linux which is currently blocked on the Android AOSP bot complaining about unused parameters.

TBR=scottmg

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@249642 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-07 08:59:25 +00:00
brettw@chromium.org f887a7d363 Inject default libraries to all targets in GN.
In GYP Mac, most targets got a default set of mac libraries by virtue
of depending on base, which due to a GYP bug pushed the libraries to
all targets depending on base, even separate shared libraries.

In GYP Windows the set of default libraries on Windows is global and
this keeps the same list and behavior.

The lists of libraries could use some cleanup, btu this patch just
attempts to keep the status quo in a cleaner way rather than fixing the
unreasonable list of libraries (especially on Windows).

R=scottmg@chromium.org, scottmg

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@249600 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-07 03:59:56 +00:00
brettw@chromium.org 94c2bc8bc0 Add Linux SDK to GN build.
I forgot to actually reference this config when I created it.

R=thakis@chromium.org
TBR=thakis

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@249301 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-06 08:35:34 +00:00
brettw@chromium.org 22b3476400 Work on Clang for pure GN build.
This hooks up Clang in the pure GN build (not the hybrid GYP mode).

Clang gave some warnings about compiler flags which made me realize that we were giving linker flags to the compiler in some cases. So I enhanced our pkg-config wrapper to to add libraries to the cflags (missing else), return ldflags separately, and also strip out -pthread which was getting included over and over.

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@248477 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-03 12:11:38 +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
fdegans@chromium.org 35d88113f8 Removed mtune for Android build.
mtune was set to cortex-a8, which is a Nexus S-generation CPU.
Removing it allows for small speed improvements (~1%) for
warm page load times on top10 mobile sites on more recent devices.
Data: https://docs.google.com/spreadsheet/ccc?key=0Ao-xIDuezqMNdDc5OWpxbkk4NFJ0SF9Iemt0Tlg3RFE&usp=sharing
And it has virtually no effect on binary size.
BUG=334271

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@247882 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-30 07:53:42 +00:00
brettw@chromium.org 9fd24ddc2e Pull new GN binary @ r247206
Additionally, the Windows binary is a debug build to help find a rare assertion failure.

Updates build files to use a list which this new build requires.

Update win-tool link commands to match GYP

TBR=scottmg

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@247408 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-28 06:03:11 +00:00
brettw@chromium.org a561545dc2 GN build fixes, mostly for Mac.
This hooks up detection for the "-arch" flag on Mac to set the GYP "ARCH" xcode variable. GN then removes the -arch argument from the compiler args, since GYP will then re-add it based on the ARCH value. Previously, not doing this resulting in mutliple "-arch" arguments to the compiler since GYP would always insert its own.

Disables some warnings on Windows for the re2 target to match the GYP build. The third warning (4018) that the GYP build sets is disabled globally so there's no need to do it for this target.

Hooks up some iOS SDK stuff.
BUG=336667
TBR=thakis@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@247206 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-27 07:41:23 +00:00
petarj@mips.com 750c628744 [MIPS] Set make_global_settings correctly for MIPS-Linux
Fix build regression for MIPS Linux that came with r245563.

BUG= build regression for MIPS Linux
TEST= build Chromium for MIPS Linux

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@246300 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-22 11:41:53 +00:00
thakis@chromium.org 0d8dd03970 Revert 246124 "gn: Fix clang plugin on ios."
This isn't correct for the iOS xcode builder.

> gn: Fix clang plugin on ios.
> 
> BUG=336491
> TBR=brettw@chromium.org
> 
> Review URL: https://codereview.chromium.org/144073003

TBR=thakis@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@246146 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-21 22:45:32 +00:00
thakis@chromium.org 69821da169 Revert 246117 "gn: Default is_clang to true on iOS."
This isn't correct for the xcode iOS builder.

> gn: Default is_clang to true on iOS.
> 
> Mirrors this condition in build/common.gypi:
> 
>       ['OS == "ios"', {
>         # ...
> 
>         # Enable clang and host builds when generating with ninja-ios.
>         'conditions': [
>           ['"<(GENERATOR)"=="ninja"', {
>             'clang%': 1,
>             'host_os%': "mac",
>           }]
>         ],
>       }],
> 
> BUG=336531
> TBR=brettw@chromium.org
> 
> Review URL: https://codereview.chromium.org/143323008

TBR=thakis@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@246144 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-21 22:42:32 +00:00
thakis@chromium.org a6ffeb98aa gn: Fix clang plugin on ios.
BUG=336491
TBR=brettw@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@246124 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-21 21:42:20 +00:00
thakis@chromium.org 10ca1cc06c gn: Default is_clang to true on iOS.
Mirrors this condition in build/common.gypi:

      ['OS == "ios"', {
        # ...

        # Enable clang and host builds when generating with ninja-ios.
        'conditions': [
          ['"<(GENERATOR)"=="ninja"', {
            'clang%': 1,
            'host_os%': "mac",
          }]
        ],
      }],

BUG=336531
TBR=brettw@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@246117 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-21 21:34:22 +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
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
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 c1c131c7d8 Convert GN single-item list concat to use lists.
R=scottmg@chromium.org, scottmg

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@245594 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-17 20:19:45 +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
brettw@chromium.org a2d0332bf1 Get the proper Mac SDK path for the GN build.
This gets the path from xcodebuild rather than hardcoding it in the .gn files.

R=thakis
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@245403 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-17 01:05:20 +00:00
bbudge@chromium.org 637b7c77e2 GN: Add wexit_time_destructors config.
Review URL: https://codereview.chromium.org/135733006

git-svn-id: http://src.chromium.org/svn/trunk/src/build@245034 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-16 00:24:10 +00:00
brettw@chromium.org 50cebd6fc2 Don't pass thumb-interwork to clang in the GN build.
This duplicates logic in common.gypi.

R=scottmg@chromium.org
TBR=scottmg

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@244968 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-15 20:17:48 +00:00
brettw@chromium.org c30951c463 Fix Windows GN build.
This sets use_aura on Windows in all cases (fixes base build).

Passes new argument to gyp link wrapper (GYP revision 1835).

R=sky@chromium.org
TBR=sky

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@244840 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-15 06:10:58 +00:00
brettw@chromium.org c2b3031962 Add a config for max optimizations in the GN build.
This emulates optimize=max from GYP. One difference is that this applies for all build types. The GYP one only applied optimize=max for the Official build. I can't think of why this should be the case, and it seems confusing to have such arbitrary official build differences.

R=bbudge@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@244839 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-15 06:09:16 +00:00
brettw@chromium.org e73f1bf025 Fix flags for ARM GN build.
I accidentally used underscores which gives undefined option errors.

TBR=scottmg

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@244838 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-15 06:06:22 +00:00
brettw@chromium.org c49df711c2 Hook up ARM architecture flags to GN build.
This duplicates the ARM architecture logic from common.gypi.

R=scottmg@chromium.org
TBR=scottmg

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@244782 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-14 18:56:50 +00:00
brettw@chromium.org 36ffc15f02 Move GN's glib_cxx_debug flag onto the debug configuration.
Previously this was in a global config which also applied to the release build.

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

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@244781 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-14 18:54:08 +00:00
brettw@chromium.org 26df4e4ca8 Fix Glib flag in GN build.
It had an extra underscore at the beginning.

R=thakis@chromium.org
TBR=thakis

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@244595 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-13 22:11:58 +00:00
brettw@chromium.org 2fb69c1106 Modify some Linux flags for better GYP fidelity in GN build.
R=scottmg@chromium.org
TBR=scottmg

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@244539 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-13 18:23:28 +00:00
thakis@chromium.org 7521222e32 Add a missing "import glob".
Reported in "[chromium-dev] the problem i met when buliding chromium on the windows 7 without cygwin"

R=scottmg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@244232 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-10 20:45:38 +00:00
brettw@chromium.org 1d94784c4f Fix nan definition on GN Android build.
This resulted in a double -D definition.

TBR=scottmg

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@244203 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-10 18:17:03 +00:00
brettw@chromium.org e214b96ebe Improves GN's make_global_settings
This makes make_global_settings closer to the GYP version. Previously it had relied on GYP concatenating two lists when running with goma, but it doesn't actually behave this way, resulting in unexpected output.

TBR=scottmg

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@244104 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-10 06:09:59 +00:00
brettw@chromium.org 220148a4e6 Make GN pass -target flags only on Android Clang
This fails on other configurations. The new behavior matches the GYP build.

R=scottmg@chromium.org
TBR=scottmg

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@243930 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-09 18:34:25 +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
bbudge@chromium.org d9ea552975 GN: Get Mac build working for IPC target at least.
- Move sysroot.gni up a directory, as it applies to multiple
platforms now.
- Use existing find_sdk.py script to locate Mac SDK.
- Fix some gtest includes for Mac files.

BUG=
R=brettw@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@243654 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-08 21:38:35 +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 5b7e3d1ced Remove -fstack-protector-strong from the ChromeOS GN build.
This trybots said this was an unknown option, so the comment I was basing my
usage of "strong" on in common.gypi must be out-of-date. The GYP build does not
seem to specify "strong" in any cases except on Mac.

Hook up compiler finding to the Android build.

R=jam@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@242746 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-31 04:59:41 +00:00
brettw@chromium.org ebe82fbcbb This adds preliminary support for Android toolchains. The logic is copied from the current GYP build.
Refactors the toolchain definitions by adding an include file to help defining GCC toolchains. This eliminates most of the duplication on Linux and Android. Adds make_global_settings for most Linux and Mac builds that should match the GYP build (this will require some more passes to get every place to be an exact match).

Fixes Android build issues in WebKit. Fixes the definition of is_android.

Renames the Linux toolchains to use the GN name of the CPU architecture so one can refer to them without conditionals. Remove conditionals from BUILDCONFIG.gn

Adds the gyp_header variable to the help (it wasn't getting inserted into the list of available variables).

R=thakis@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@242674 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-28 06:49:32 +00:00
brettw@chromium.org 5888118620 Use proper clang plugin name in GN build.
This uses the proper name of the Clang plugin on Linux (previously it was hardcoded to the Mac-style name).

This also fixes the path naming so the clang plugin is correct no matter where the output directory is.

R=thakis@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@242573 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-26 23:11:19 +00:00
brettw@chromium.org 2a456ed7f4 Fix the official Android builder's GN build.
I don't think this needs a sysroot, and compiles for ARM, so I removed the assert and use an empty sysroot. If we need the sysroot we'll discover that when we try to make a target later.

BUG=330722
TBR=jam@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@242554 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-26 21:20:44 +00:00
thakis@chromium.org daa3636164 Fix inconsistency.
On linux, pkg-config.py outputs a 4-tuple. The non-linux fallback path
outputs only a 3-tuble, which confuses pkg_config.gni.

BUG=none
R=brettw@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@242456 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-24 21:44:29 +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
piman@chromium.org 67b71a2ece Fix pkg-config invocation for GN
We were missing the /usr/lib*/pkgconfig dir in PKG_CONFIG_PATH.

BUG=None

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@241520 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-18 07:31:59 +00:00
piman@chromium.org a387f9a906 GN fixes
Remove references to files that don't exist.
Replace all x32 to x86.

BUG=None

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@241461 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-18 03:21:07 +00:00
brettw@chromium.org 6949c9d667 Add support for sysroots to GN's pkg-config.
This adds support similar to the GYP scripts for running pkg-config in the presence of sysroots.

It also adds the linker flags by calling the existing horrible sysroot_ld_path.sh shell script that extracts stuff from the sysroot's configuration.

With this change, official 32-bit linux builds work in the checked in 32-bit Debian sysroots.

R=piman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@241397 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-17 22:54:18 +00:00
brettw@chromium.org 8dfb008faa Separate out pkg-config execution in the GN build.
This makes a template to invoke the pkg-config script so that we can change how it's invoked in one place rather than in every call site.

BUG=
R=piman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@241068 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-16 23:53:47 +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 761c4c6466 GN: Add support for 32- and 64-bit cross-compiles.
This makes it possible on Linux to refer to 64-bit targets from a 32-bit build, and 32-bit targets from a 64-bit build.

This also adds flags for Mac cross-compiles but I haven't written the toolchain definitions yet.

BUG=322106
R=scottmg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@236871 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-22 23:30:28 +00:00