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

119 Коммитов

Автор SHA1 Сообщение Дата
brettw@chromium.org da6b387202 Add support for VS express to the GN build.
BUG=
R=scottmg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@273345 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-28 20:32:01 +00:00
brettw@chromium.org 2b892ccfc7 Add content renderer to the GN build
Also adds ui/native_theme, third_party/npapi, and some required mojo stuff to make it build.

Reland of https://codereview.chromium.org/299113002
TBR=scottmg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@273270 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-28 16:51:44 +00:00
mvanouwerkerk@chromium.org 317f982842 Revert 273188 "Revert 271207 "Changed android toolchain to use G..."
In the time between upgrading from GCC 4.6 to 4.8 the codebase changed
to trigger a compiler bug that exists in 4.6 but not in 4.8. We now
have two options: fix our code for 4.6 or fix WebRTC. We need to
upgrade to 4.8 either way. As the WebRTC team seems to have a
potential fix for running on 4.8, we will go up to 4.8 again.

> Revert 271207 "Changed android toolchain to use GCC 4.8"
> 
> > Changed android toolchain to use GCC 4.8
> > 
> > BUG=359106
> > 
> > Review URL: https://codereview.chromium.org/218633007
> 
> TBR=fdegans@chromium.org
> 
> Review URL: https://codereview.chromium.org/303493006

TBR=henrika@google.com

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@273247 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-28 15:32:59 +00:00
henrika@google.com 3e4bbbc82b Revert 271207 "Changed android toolchain to use GCC 4.8"
> Changed android toolchain to use GCC 4.8
> 
> BUG=359106
> 
> Review URL: https://codereview.chromium.org/218633007

TBR=fdegans@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@273188 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-28 09:52:27 +00:00
brettw@chromium.org 9ae8159385 Revert 273079 "Add content renderer to the GN build"
> Add content renderer to the GN build
> 
> Also adds ui/native_theme, third_party/npapi, and some required mojo stuff to make it build.
> 
> BUG=
> R=scottmg@chromium.org
> 
> Review URL: https://codereview.chromium.org/299113002

TBR=brettw@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@273086 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-28 00:25:44 +00:00
brettw@chromium.org 19d9108324 Add content renderer to the GN build
Also adds ui/native_theme, third_party/npapi, and some required mojo stuff to make it build.

BUG=
R=scottmg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@273079 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-28 00:03:04 +00:00
brettw@chromium.org 76ee517b74 Add ppapi, improve Windows GN build.
This adds ppapi-related targets except the tests to the GN build.

Did some minor tweaks to the .gypi ppapi lists. Some files were duplicated between the trusted and common lists which causes errors in GN (it doesn't uniquify the lists like GYP). Common is used in every place trusted is, so I just removed the duplicates from the trusted list.

Fixed some warnings in skia and tcmalloc. Added the ability to undefine NOMINMAX on Windows.

Fixed some src/ui Windows compilation issues.

BUG=
R=scottmg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@273016 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-27 20:15:20 +00:00
cjhopman@chromium.org 9e92697803 Add java_cpp_template template
This is the GN version of build/java_cpp_template.gypi.

It defines a template that wraps an action_foreach that generates .java
files using the host C preprocessor.

The major difference in the GN version is that it takes all the
generated java files and zips them together in a single .srcjar. When
such a target is included in the srcjar_deps of a java library, the
.java files in the .srcjar will be treated much like files listed in
that libraries java_sources (particularly they will be compiled and
included in the .jar/.dex).

Depends on https://crrev.com/264773014/

BUG=359249

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@272775 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-26 04:01:47 +00:00
brettw@chromium.org 0aad604aa5 Work on the Android GN build.
Fills out more targets in the Android build.

BUG=
R=cjhopman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@272574 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-23 19:01:46 +00:00
scottmg@chromium.org ab713393e4 GN win: prep_libc and fix tcmalloc linkage
On top of https://codereview.chromium.org/290633012/

R=brettw@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@272249 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-22 18:38:21 +00:00
brettw@chromium.org 113f4db58e Suppress psabi warnings in GN build.
These are disabled currently in the Android ARM GYP build. This patch disables it for all ARM builds since the warning appears when cross-compiling to ARM on Linux without Android (this isn't something people normally compile, so probably nobody noticed).

R=thakis@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@271951 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-21 20:07:00 +00:00
brettw@chromium.org 76dfaae6fa Fix mac GN build.
--fatal-warnings don't seem to be supported. This also adds support for mach_logging files which were added recently.

BUG=
R=thakis@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@271942 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-21 19:45:15 +00:00
brettw@chromium.org de5b4d45cb Add GPU command buffer sevice and protobuf to GN build
Adds a protobuf target and a template for defining protos. This handles doing host builds of protoc when cross-compiling.

The command buffer sevice wants more optimization on Android, so this patch generalizes the solution. Normally Android, like Windows, optimizes for size. This now adds support on Android for speed optimization just like Windows does. Mac & Linux always optimize for speed.

Removes the declare_args call around the gcc_version. This was parameterized to be different if is_android was set, which isn't valid because build parameters can't vary across toolchains. Since this value is derived from the environment, I just removed the declare_args call.

BUG=
R=piman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@271941 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-21 19:42:31 +00:00
scottmg@chromium.org e6a3b463ef fix line endings on visual_studio_version.gni
So CQ works on https://codereview.chromium.org/290713002

TBR=brettw@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@271827 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-21 03:05:06 +00:00
brettw@chromium.org 9a06fdddb7 GN build improvements, misc plus
Parameterize webrtc enabling.

Add use_seccomp_pbf flag

Add a webkit version target

Work on ui/base GN build, especially on Windows. This target is a mess (in GYP). This patch tries to make it make a bit more sense while fixing the errors I found.

Fix ui/gl target for non-Linux platform. A bunch of X11 stuff was not parameterized.

Add unscaled resources target

BUG=
R=scottmg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@271724 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-20 19:20:40 +00:00
brettw@chromium.org e31e6dca13 Make skia compile in Android GN build.
Adds a bunch of ARM configuration and assembly sources. MIPS still not done.

Implements the Android Freetype build and fixes expat.

Fixes some minor optimization-related flags I noticed along the way.

TBR=djsollen@google.com

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@271603 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-20 07:00:44 +00:00
brettw@chromium.org 294439de90 Fix Windows GN build.
The compiler file unconditionally depenended on the GCC version.

TBR=scottmg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@271347 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-19 06:50:17 +00:00
fdegans@chromium.org e86d4ac0dc Changed android toolchain to use GCC 4.8
BUG=359106

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@271207 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-17 15:41:51 +00:00
brettw@chromium.org 6e16d7065e Hook up base unit tests and allocator to GN build.
Adds a meta-target "//base/allocator" that forwards to tcmallor or nothing depending on the build configuration.

Write tcmalloc target definition.

Write base unit tests prefs, and some support targets from base.gypi.

Fix a bunch of added files in the base target that were exposed by linking the unit tests.

Removes toolkit_uses_gtk which was removed from the GYP build.

BUG=
R=scottmg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@271079 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-16 19:33:08 +00:00
brettw@chromium.org 6c4f020b94 Support private values in GN.
This adds special handling for variables that begin with underscores, which is inspired by Dart. Such variables are not imported when doing an import, which gives .gni files a way to have intermediate private variables that won't pollute the scopes of the files that include them.

This also applies to the root build config, which can have private values now.

Adds some missing unused variable checks. This was disabled because processing imports would mean all imported variables were unused, and files not using all of them would get unused variable errors. This adds the option to mark merged values on a scope as used, which is used for imported values.

BUG=341738
R=cjhopman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@271078 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-16 19:31:36 +00:00
brettw@chromium.org fcd95cdef3 Add GN build for parts of gpu and ozone.
Moves existing ozone platform flag to new .gni file with all ozone flags in it.

R=piman@chromium.org, rjkroege@chromium.org, spang@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@270780 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-15 19:39:14 +00:00
brettw@chromium.org f2677258aa Remove the hard_dep flag in GN.
This was not hooked up but I kept it being acceptsed until all uses can be deleted. This deletes the remaining uses from the tree.

R=scottmg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@270779 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-15 19:38:00 +00:00
derat@chromium.org a388499fe7 s/precendence/precedence/
"precedence" is misspelled as "precendence" in the docs for
the chrome.power API. Fix it there as well as several other
places where it occurs.

BUG=none
TBR=sky@chromium.org,brettw@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@270539 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-15 00:33:41 +00:00
brettw@chromium.org 301f0f2033 Implement review comment on GN optimization setup.
Implements review comment from:
https://codereview.chromium.org/275703003/

R=ajwong@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@270168 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-13 19:35:52 +00:00
brettw@chromium.org f3470d3d53 Make GN Android build link executables.
Some minor tweaks in STL usage in GN itself to enable it to compile using the Android version of the STL. Enable this in the build (not so much because we need a GN binary on Android, but for build verification purposes).

Moved the executable_ldconfig config from the linux file to the gcc one since its shared between the Linux and Android builds. Added "-Bdynamic" and "-Wl,-z,nocopyreloc" to this on Android.

Moved some sysroot path components from sysroot.gni to android/config.gni (which sysroot uses) so it can be shared with the toolchain definitions.

Added the android_full_debug build flag. Made the "optimize off" mode of the build match the GYP build's "light optimization" on Android contingent on this flag.

Pulls out the optimize and optimize_max shared flags into one list to avoid duplication.

Adds a bunch of linker optimization flags that should be passed on non-Mac Posix platforms, and turns on dead code stripping for Mac builds.

Adds functionality to the gcc toolchain template to be able to insert strings before and after the libs. Adds a wrapper template for android toolchains that sets these accordingly to get the gross Android crtbegin/end files inserted in the right place on the linker line.

Made the android_ndk_root variable relative to the source root rather than the system root. Uses of this now rebase according to their own needs which makes some of the arguments a lot easier to follow.

Build file updates for base and libevent for Android. Implement ashmem library.

The only change on desktop linux is the addition of -Wl,--fatal-warnings to the linker line.

R=ajwong@chromium.org, cjhopman@chromium.org, scottmg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@270138 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-13 17:41:06 +00:00
brettw@chromium.org e2c732ae4a Fix line endings in build/config/gcc/BUILD.gn
R=scottmg@chromium.org
TBR=scottmg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@269836 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-12 19:14:03 +00:00
brettw@chromium.org 6ae30203d8 Remove cursor_mac.mm, fix GN build.
cursor_mac.mm is never included on any Mac build because it's removed for all non-aura builds, which includes Mac. This file just seems to be stubs anyway.

Also fixes a missing comma in the GN Mac build.

R=thakis@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@269543 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-10 06:21:10 +00:00
hans@chromium.org 7cd5769c21 Don't call into WebRuntimeFeatures::enableSpeechInput()
Also delete ENABLE_INPUT_SPEECH and kDisableSpeechInput.

I wanted to remove the 'input_speech' GYP variable, but unfortunately
it seems to be guarding (parts of?) the new speech recognition implementation
too.

BUG=223198
R=brettw@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@268646 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-07 00:53:50 +00:00
ckocagil@chromium.org 43c71c63b0 Add GN targets for third_party/libjpeg_turbo
R=brettw@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@268421 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-06 04:25:26 +00:00
brettw@chromium.org 4f534c4550 Redo GN "args" command
Previously "gn args" printed build arguments. That has now moved to "gn args <outdir> --list" along with a new --short mode that's a bit more convenient for some uses.

Now "gn args" runs your editor on the build arguments for the given output directory, and re-generates the build given those arguments. This is an easier way to manage changing build arguments for a build (previously you would have to re-type everything or edit build.ninja manually).

"gn gen" now always uses the existing arguments for the given output dir, unless "--args" is manually specified (giving the old behavior of just using those). This also allows a more convenient way for a user to recover from a borked build (sincetimes I ran into a state where something was missing that prevent ninja from even starting enough to rebuild the build).

I removed the "show" and "refresh" ninja phony rules since the new commands cover those cases.

This patch adds some additional tracing to build startup since I noticed it was missing when trying to figure out why the args command was so slow (I fixed the main reason, it was with new code I added).

Added proper escaping for printing string values and unit tests for these.

Two minor build file fixes.

R=scottmg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@268042 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-03 04:32:19 +00:00
brettw@chromium.org ae1a01fcb6 Hook up WebKit WTF to GN build.
This also moves the "use clang plugins" flag to a GNI file so it can be shared (WebKit needs to read this flag).

TBR=scottmg

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@265940 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-24 16:44:04 +00:00
brettw@chromium.org b87dd13629 Make GN build work on Mac again.
This adds extension detection for lower-case ".s" assembly files (used in NSPR) in addition to the existing handling of uppercase ".S" ones.

Minor fixes for build files for Mac for dependencies and files.

Proper handling of USE_NSS and addition of USE_OPENSSL_CERTS that match the GYP build.

R=rsleevi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@265064 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-21 20:54:51 +00:00
cjhopman@chromium.org aa2daa3f51 Add generate_jni template
This adds a template for using the jni_generator. Creates the
base_jni_headers target and updates the base target to depend on it and
actually use the sources that required it.

Adds //third_party/android_tools:cpu_features required by one of the
base files that also required jni.

Disable a bunch of third_party targets for Android builds.

BUG=359249

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@264695 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-18 00:50:10 +00:00
brettw@chromium.org 70ae79bcd5 Work on Mac GN build.
This fixes a lot of minor mistakes (mostly missing/extra files and flags) for the Mac GN build.

I separated out some clang flags into a config for extra clang warnings. Several of the third party libraries needed to remove this.

Removes the use_nss flag and uses !use_openssl. This is a result of discussion with rsleevi.

Removes extra duplicate net build file from secondary tree.

ui/gesture_events seems to be getting compiled in GN with more strict warnings than in GYP. Rather than fix this, I fixed the warning in the gesture recognizer unit test. It was returning a const copy (the const is pointless when you're copying).

This also removes a bunch of old GYP integration stuff that was left in the GN build.

R=scottmg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@264626 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-17 20:33:19 +00:00
brettw@chromium.org c58cd7b1a9 Fill out the rest of the net targets in the GN build except Android.
This also fixes some missing base files and libresolv naming.

R=jar@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@264296 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-16 20:34:31 +00:00
brettw@chromium.org e4691a2c74 Make NSS work in GN build on Windows.
This also adds sqlite which is a dependency.

This required some build config changes since nss needs to opt-out of certain default settings.

BUG=
R=scottmg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@264255 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-16 18:29:50 +00:00
brettw@chromium.org bba65c5564 Implement net in GN build.
This does the net target. I started doing some more that are commented out at the bottom, and there are a few more after that do do. The deps of these targets started to build up to an unreasonable level and this should be a good checkpoint.

Fix grit rule.

Fix SSL dependent configs

Add TLD cleanup

Add gconf and gio targets for Linux.

Add sources filtering for ChromeOS, .rc, and .mm files. Remove built-in code that removes .rc and .mm files (this wasn't quite complete so causes problems).

BUG=
R=scottmg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@263967 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-15 19:26:44 +00:00
brettw@chromium.org 696094c61a Add SSL support to the GN build
This moves files from the secondary tree to the main one, and renames the "meta" one to //crypto:ssl. It also adds the crypto unit tests.

R=rsleevi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@263744 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-14 23:25:13 +00:00
tfarina@chromium.org 71485dbb5d Fix two typos in the documentation of some args of GN.
1- s/useing/using
2- s/SHell/Shell

This was found running the following command line and reading the docs.

$ gn args

BUG=None
TBR=brettw@chromium.org
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@263497 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-12 06:47:18 +00:00
dpranke@chromium.org b4ef9a7a08 Checkpoint work to get GN builds working on Android.
This fixes enough issues so that we can compile and link some libraries, but
it is not yet a working build.

Work remaining:
- base needs JNI support ('base_jni_headers', etc.)
- we need to figure out what should link and/or be APKs to run the tests
- we need to adjust GN to only build in the host config, not the target config.

R=brettw@chromium.org, cjhopman@chromium.org
TBR=jam
BUG=360936

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@263440 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-12 01:19:16 +00:00
brettw@chromium.org 6e3e0b1d12 GN Windows build fixes
This also removes some patterns from the sources assignment filter, and adds scary comments not to make it bigger. The GYP version of this is out of control so I want to set a clear policy of what is included and not.

I removed X-related stuff from the filter (there are only about 50 files around the tree) and added manual rules for the affected files.

BUG=
R=scottmg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@263394 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-11 23:06:17 +00:00
mithro@mithis.com 4587e0ab9c Updating the gold location.
BUG=362119

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@263185 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-11 07:56:03 +00:00
brettw@chromium.org d3c97a091d Add GN buildfile for gfx
Adds libjpeg and some global flags for Ozone from the GYP build.

Improves error messages for mismatched item types I noticed when writing this patch (changes in builder.cc).

BUG=
R=bradnelson@google.com

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@263086 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-10 21:16:59 +00:00
brettw@chromium.org 366b2da3c3 Add Skia to the GN build.
This makes the GN build of Skia compile and adds it to the GN build.
Previously, the configuration of the GN Skia tried to match the confusing array
of skia targets. This new version dispenses with that and just adds all files
(except SSE ones) to one target. I'm not even sure if it's necessary to split
out the SSE ones, but it seems nice since that target will get more complicated
when we add Arm and MIPS support.

I audited the defines again and added some to the main build config that had
been added to the GYP build recently.

This improves some operator error messages that I found confusing when I had errors in my file.

BUG=
R=djsollen@google.com, scottmg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262779 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-09 19:55:29 +00:00
brettw@chromium.org bd8a101965 Template invocation fixes in GN
This adds an error check when invoking templates which caused really confusing messages if the template invocation encountered an error (because we'd continue running).

Hooks up the provider for programatically defined variables in template invocations so those can be used.

Sets the current directory in a template invocation to be that of the invoking file.

No longer define the target-related programatic variables in an import. Using these in an import will give the directory relative to the import, which is probabyl not what you want.

Fix the Windows build by adding a missing library. Add a warning not to add more to the main list (this added .lib is pretty obscure).

BUG=
R=cjhopman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262524 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-08 22:35:18 +00:00
brettw@chromium.org 08fbbcc064 Pull GN @ r262225
Implement GN visibility in the build, which this new version implements

BUG=
R=scottmg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262438 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-08 16:50:01 +00:00
jam@chromium.org dfff974b0a Remove the remaining automation-based tests.
BUG=316203
R=avi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@261839 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-04 19:30:43 +00:00
brettw@chromium.org 2295ccd90c Revert 260949 "Move gtest/gmock BUILD.gn files to main tree."
> Move gtest/gmock BUILD.gn files to main tree.
> 
> Also moves the "unused variable warning" to a config in the build directory so
> it can be shared with outher targets without duplication on the command line.
> 
> BUG=
> R=cjhopman@chromium.org
> 
> Review URL: https://codereview.chromium.org/219433005

TBR=brettw@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@260954 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-01 22:03:42 +00:00
brettw@chromium.org aa7f0675eb Move gtest/gmock BUILD.gn files to main tree.
Also moves the "unused variable warning" to a config in the build directory so
it can be shared with outher targets without duplication on the command line.

BUG=
R=cjhopman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@260949 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-01 21:47:53 +00:00
brettw@chromium.org c8f200451d Update .gn files to use new template syntax.
This uses the invoker() syntax.

R=scottmg@chromium.org, scottmg

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@260151 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-03-28 16:19:02 +00:00