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

6007 Коммитов

Автор SHA1 Сообщение Дата
thakis@chromium.org 027640ed54 Remove a few dead MSVS_VERSION checks.
We only support 2013.

TBR=robertshield@chromium.org
BUG=340358

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@263460 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-12 03:07:46 +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
newt@chromium.org c1c873a5c1 Make landmines.py ignore eclipse gyp generator.
The eclipse gyp generator is used to generate eclipse project files, not
to actually build anything. Landmines should return early if the gyp
generator is eclipse rather than failing with the error "Unexpected
GYP_GENERATORS (eclipse)"

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@263438 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-12 01:13:21 +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
dtrainor@chromium.org e9a03dcccf Fix get_device_configuration.py/device_utils.py
- Fix get_device_configuration.py to use build_device.GetAttachedDevices
without the () as it is now a list not a method since () was added at
build_device.GetAttachedDevices
- Fix device_utils.py to check for unicode as well as str since the config
push_libraries was loading had unicode for the device id

NOTRY=true
BUG=267773

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@263317 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-11 19:49:52 +00:00
viettrungluu@chromium.org 77b0f97802 Revert 263262 "Newly created profiles should have the grey silho..."
Adds static initializers. See:
http://build.chromium.org/p/chromium/builders/Linux%20x64/builds/63585

# profile_avatar_icon_util.cc profiles::kNoHighResAvatar
# profile_avatar_icon_util.cc profiles::kDefaultAvatarIconResourceFileNames+0xd0

> Newly created profiles should have the grey silhouette as avatar.
> The name should still be automatically generated.
> 
> Also, all the avatar icons are becoming squares (31x38 -> 38x38). New resources will be committed and necessary code changes have been made.
> 
> 
> BUG=337986
> TEST=When creating a new profile from anywhere except the settings. Also, verify avatar icons are still rendered correctly, whether GAIA, the placeholder or a cartoon icon.
> page, the automatically assigned avatar should the grey
> placeholder (silhouette).
> 
> Review URL: https://codereview.chromium.org/212603011

TBR=mlerman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@263284 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-11 18:11:26 +00:00
brettw@chromium.org 52c079373f Add support for substring replacement in gypi_to_gn
Use substring replacement in skia source file list, and update the skia BUILD.gn file accordingly. The .gn file gets a bit simpler now: we can do the substring replacement to make absolute paths rather than doing rebase for all the files.

R=djsollen@google.com, dpranke@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@263272 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-11 17:23:40 +00:00
mlerman@chromium.org 8bceaab6b6 Newly created profiles should have the grey silhouette as avatar.
The name should still be automatically generated.

Also, all the avatar icons are becoming squares (31x38 -> 38x38). New resources will be committed and necessary code changes have been made.


BUG=337986
TEST=When creating a new profile from anywhere except the settings. Also, verify avatar icons are still rendered correctly, whether GAIA, the placeholder or a cartoon icon.
page, the automatically assigned avatar should the grey
placeholder (silhouette).

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@263262 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-11 16:51:28 +00:00
mithro@mithis.com ace937ffb6 Use -fuse-ld=gold when supported to select gold.
Allow usage of gold on gcc 4.8 systems such as debian.

BUG=352046

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@263189 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-11 08:05:11 +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
cjhopman@chromium.org 0200fcafa9 Fix screenshot.py
build/android/screenshot.py was creating a DeviceUtils. Then grabbing
it's old_interface (i.e. an AndroidCommands) and calling screenshot on
that. That then called TakeScreenshot from
build/android/pylib/screenshot.py passing itself. But
build/android/pylib/screenshot.py expects a DeviceUtils, not an
AndroidCommands. So wrap the AndroidCommands back into a DeviceUtils
first.

build/android/screenshot.py could probably just call into
build/android/pylib/screenshot.py directly.

TBR=jbudorick
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@263157 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-11 03:00:42 +00:00
sievers@google.com e934ec5e60 Android: Fix default filename for kTraceStartup file
Putting chrometrace.log in the current working directory is not
useful on Android. Generate a filepath on the sdcard instead the
same way we do it for intent triggered tracing.

R=piman@chromium.org, wangxianzhu@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@263153 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-11 01:28:54 +00:00
thakis@chromium.org bdb2fb8455 envsetup: Unbreak android_gyp for a while.
r262292 accidentally broke android_gyp. Unbreak it for a while, by using
an env var with a long name that hopefully nobody will refer to from anywhere
in the 3-4 weeks it's going to be in the tree.

BUG=330631
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@263143 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-11 00:28:35 +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
oshima@chromium.org 39fcab9825 Add ui/wm to aura_builder target
This is to mitigate the issue crbug.com/354775 by at least compiling wm_core_unittsts on bots.

BUG=354775
R=jamescook@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@263083 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-10 21:13:48 +00:00
jbudorick@chromium.org 13b8cb19e8 [Android] Change object types from AndroidCommands to DeviceUtils in build/android/.
BUG=267773

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@263055 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-10 19:37:30 +00:00
zhaoqin@google.com e7073d4ba8 add new test targets in chromium_builder_dbg_drmemory_win for DrMemory build
- add gpu_unittests

R=bruening@chromium.org
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@263053 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-10 19:35:34 +00:00
mithro@mithis.com e51c9d1479 Make sure binutils values are always defined.
BUG=352046

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262981 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-10 14:01:57 +00:00
glider@chromium.org 143ab10733 Fix variables expansion in build/mac/asan.gyp
BUG=344836, 235466
TBR=thakis@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262980 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-10 14:01:18 +00:00
rmcilroy@chromium.org cf395c6c38 [Android]: Update Arm64 and x86_64 build targets to use the experimental ndk.
BUG=354405,346626

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262969 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-10 13:42:46 +00:00
sdefresne@chromium.org 847cb52797 Fix the condition to disable the warning when building with Xcode
The warning -Wshorten-64-to-32 is automatically enabled by Xcode 5.1
when building for 64-bit architecture. Disable when the generator is
Xcode, not ninja.

BUG=359107

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262805 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-09 20:53:00 +00:00
erikchen@chromium.org b5dcb1611b Add bookmark undo manager commands to the ios grit whitelist.
This is in preparation for bringing the bookmark undo manager to ios.

BUG=NONE

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262802 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-09 20:41:47 +00:00
mithro@mithis.com 43a91bc2f6 When "linux_use_gold_binary" is set, we now use gold from third_party/binutils rather than third_party/gold (allowing us to remove third_party/gold dependency).
As third_party/binutils is 2.24, this also satisfies the binutils version requirements for Debug Fission. Thus, when building with clang on Ubuntu Precise it should now be enabled. This should cause a significant speedup in linking for most chrome developers on Linux.

Requires;
 * https://codereview.chromium.org/209853003/ - Adding binutils as a DEPS to allow DebugFission on Ubuntu Precise when compiling with clang.

BUG=352046

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262794 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-09 20:20:45 +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
scottmg@chromium.org 323af8f195 Split toolchain update and install lookup to make generation faster
runhooks does toolchain update, saving relevant information to
build/win_toolchain.json, and during generation this is loaded
and used. This worked almost the same previously, however update
was called at generation time and the .json was deleted after
it was used. This speeds up generation time by a few seconds.

(In preference to https://codereview.chromium.org/228093002/)

R=dpranke@chromium.org
BUG=360878

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262590 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-09 01:56:20 +00:00
glider@chromium.org 04e22ee71d Use instrumented libc++ by default in TSan builds.
BUG=318770
TBR=earthdok@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262558 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-08 23:56:09 +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
qsr@chromium.org 7906ce40fb Update usb charging command to wait for it to succeed.
R=tonyg@chromium.org,pliard@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262512 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-08 21:39:21 +00:00
brettw@chromium.org 461f99a3ac Fix the Mac toolchain definition in the GN build.
I did not update this when I updated the template syntax.

This also fixes a typo in the GCC toolchain definition (it was just in some helpful assertions and didn't affect anything).

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262491 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-08 20:01:51 +00:00
thakis@chromium.org 141778cb11 android envsetup: Stop exporting ANDROID_SDK_ROOT.
The only reference to itwasis from an unused slave script
which I deleted in r262454.

BUG=330631
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262480 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-08 19:42:03 +00:00
gunsch@chromium.org cb954df2e6 Removes "copy" action for extra_native_libs in java_apk.gypi.
Since the output lib file is already generated by
strip_native_libraries, the 'copy' action will result in the
unstripped version overwriting the stripped one and getting
packaged in the final APK.

Before change:

$ ninja -C out/Debug -j32 content_shell_apk
[snipped]

$ ls -l out/Debug/apks/ContentShell.apk
-rw-r----- 1 gunsch eng 27M Apr  3 15:09 out/Debug/apks/ContentShell.apk

$ unzip -l out/Debug/apks/ContentShell.apk | grep lib/
   264772  2014-04-03 14:54   lib/armeabi-v7a/gdbserver
 16030344  2014-04-03 15:00   lib/armeabi-v7a/libosmesa.so
 38423836  2014-04-03 15:09   lib/armeabi-v7a/libcontent_shell_content_view.so

$ ls -l out/Debug/lib
total 2.2G
-rwxr-x--- 1 gunsch eng 2.2G Apr  3 15:09 libcontent_shell_content_view.so
-rw-r----- 1 gunsch eng 5.7K Apr  3 15:09 libcontent_shell_content_view.so.TOC
-rwxr-x--- 1 gunsch eng  26K Mar 28 14:25 libmojo_system.so
-rw-r----- 1 gunsch eng  714 Mar 28 14:25 libmojo_system.so.TOC
-rwxr-x--- 2 gunsch eng  16M Apr  3 15:00 libosmesa.so

$ ls -l out/Debug/content_shell_apk/libs/armeabi-v7a/
total 53M
-rwxr-x--- 2 gunsch eng 259K Apr  3 14:54 gdbserver
-rwxr-x--- 1 gunsch eng  37M Apr  3 15:09 libcontent_shell_content_view.so
-rwxr-x--- 2 gunsch eng  16M Apr  3 15:00 libosmesa.so

After change:

$ ls -l out/Debug/apks/ContentShell.apk
-rw-r----- 1 gunsch eng 21M Apr  3 15:31 out/Debug/apks/ContentShell.apk

$ unzip -l out/Debug/apks/ContentShell.apk | grep lib/
   264772  2014-04-03 14:54   lib/armeabi-v7a/gdbserver
  2289816  2014-04-03 15:31   lib/armeabi-v7a/libosmesa.so
 38423836  2014-04-03 15:31   lib/armeabi-v7a/libcontent_shell_content_view.so

$ ls -l out/Debug/lib
total 2.2G
-rwxr-x--- 1 gunsch eng 2.2G Apr  3 15:31 libcontent_shell_content_view.so
-rw-r----- 1 gunsch eng 5.7K Apr  3 15:31 libcontent_shell_content_view.so.TOC
-rwxr-x--- 1 gunsch eng  16M Apr  3 15:30 libosmesa.so

$ ls -l out/Debug/content_shell_apk/libs/armeabi-v7a/
total 40M
-rwxr-x--- 2 gunsch eng 259K Apr  3 14:54 gdbserver
-rwxr-x--- 1 gunsch eng  37M Apr  3 15:31 libcontent_shell_content_view.so
-rwxr-x--- 1 gunsch eng 2.2M Apr  3 15:31 libosmesa.so

BUG=
R=peter@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262461 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-08 18:39:54 +00:00
jbudorick@chromium.org e46b7733bc [Android] Fix gtest test scripts for non-default CHROMIUM_OUT_DIR.
BUG=347834

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262446 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-08 17:39:51 +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
glider@chromium.org 22729fdce0 Link binaries targeting iOS simulator to the appropriate ASan dynamic runtime.
BUG=344836,235466
R=thakis@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262372 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-08 11:11:58 +00:00
thakis@chromium.org a2623227c3 android envsetup: Stop exporting CHROME_SRC, CURRENT_DIR, SCRIPT_DIR.
CHROME_SRC is only used inside of envsetup, there's no need to export it.
Depends on https://chrome-internal-review.googlesource.com/159331/

It looks like CURRENT_DIR and SCRIPT_DIR weren't exported intentionally.
Use "local" (which requires putting most of the code in this script in a
function) to make sure they don't make it into the environment that
envsetup is sourced from.

BUG=330631
NOTRY=true
R=yfriedman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262292 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-08 03:53:51 +00:00
jschuh@chromium.org d81ff0d7f4 Revert of Revert r245379 Add missing test targets to chrome_official_builder for Windows (https://codereview.chromium.org/227673007/)
Reason for revert:
The release team owns these tests now.

Original issue's description:
> Revert r245379 Add missing test targets to chrome_official_builder for Windows
> 
> These were removed because they break parts of the official build
> 
> BUG=334006
> R=scottmg,phajdan.jr@chromium.org
> NOTREECHECKS=true
> NOTRY=true
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262252

TBR=phajdan.jr@chromium.org,scottmg@chromium.org,iannucci@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=334006

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262263 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-08 00:09:30 +00:00
mostynb@opera.com 47880b62aa define LIBC_GLIBC as 1 for consistency
Most of the other defines in build/build_config.h are set to 1, let's
define LIBC_GLIBC as 1 for consistency.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262255 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-07 23:51:45 +00:00
jschuh@chromium.org ecae1522cd Revert r245379 Add missing test targets to chrome_official_builder for Windows
These were removed because they break parts of the official build

BUG=334006
R=scottmg,phajdan.jr@chromium.org
NOTREECHECKS=true
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262252 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-07 23:47:08 +00:00
wibling@chromium.org b48119a80b [Oilpan]: Fix the android builds blink_heap_unittests target.
When moving the blink oilpan heap's infrastructure code I missed updating this path.

R=ager@chromium.org, andrewhayden@chromium.org, erik.corry@gmail.com, haraken@chromium.org, oilpan-reviews@chromium.org, tkent@chromium.org, vegorov@chromium.org, zerny@chromium.org
BUG=360520

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262130 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-07 15:20:18 +00:00
phajdan.jr@chromium.org 7767ff5c09 Make it possible to disable fatal linker warnings
This came up in Gentoo Linux bug https://bugs.gentoo.org/show_bug.cgi?id=506268

Fatal linker warnings were originally introduced in https://codereview.chromium.org/196943020

BUG=352985
R=jochen@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262093 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-07 08:17:25 +00:00
brettw@chromium.org 3e4f5863a7 Add support for reading .gypi files.
Adds support for a new value type, a dictionary. To script it looks the same as a scope, but the existing scope didn't have the right memory management semantics for this.

Adds a new input conversion mode to interpret the result of a script as a GN block (basically an eval) and get the result in a dictionary. This allows returning named sets of things from a script. Updates the accessor and defined stuff to work with this new type.

Adds some features to the input file manager so that when we do dynamic reading from a script we keep the text of the read around which means we can give proper errors that refer to the script output, and don't have to do the weird recursive set origin thing to clear out the pointers that became invalid when the InputFile went out of scope.

This allows us to give better error messages when parsing input. The error handling in the input conversion code is changed accordingly.

Checks for unused variables both in code that instantiates a template, and in the template code itself.

Adds a shared python script for outputting values from Python to GN.

Adds a python script to read .gypi files and return the value as a GN scope.

BUG=
R=dpranke@chromium.org, scottmg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262045 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-06 04:35:10 +00:00
scottmg@chromium.org defa0952ae Revert 262031 "When "linux_use_gold_binary" is set, we now use g..."
Suspected of causing:

http://build.chromium.org/p/chromium.linux/builders/Linux%20Builder%20(dbg)/builds/71338/steps/compile/logs/stdio

[13474/21627] CXX obj/cc/animation/cc_unittests.scrollbar_animation_controller_linear_fade_unittest.o
FAILED: cd ../../remoting; python ../tools/gypv8sh.py ../out/Debug/d8 ../chrome/third_party/mock4js/mock4js.js ../third_party/accessibility-audit/axs_testing.js ../chrome/test/data/webui/test_api.js ../chrome/test/base/js2gtest.js unit "webapp/all_js_load.gtestjs" "chrome/webapp/all_js_load.gtestjs" "../out/Debug/obj/remoting/remoting_unittests.gen/chrome/webapp/all_js_load-gen.cc" "../out/Debug/test_data/chrome/webapp/all_js_load.gtestjs"
../out/Debug/d8: error while loading shared libraries: libicui18n.so: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "../tools/gypv8sh.py", line 55, in <module>
    sys.exit(main())
  File "../tools/gypv8sh.py", line 44, in main
    subprocess.check_call(cmd, stdin=subprocess.PIPE, stdout=f)
  File "/usr/lib/python2.7/subprocess.py", line 511, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['../out/Debug/d8', '-e', 'arguments=["../chrome/test/base/js2gtest.js", "webapp/all_js_load.gtestjs", "chrome/webapp/all_js_load.gtestjs", "../out/Debug/obj/remoting/remoting_unittests.gen/chrome/webapp/all_js_load-gen.cc", "unit"]', '../chrome/third_party/mock4js/mock4js.js', '../third_party/accessibility-audit/axs_testing.js', '../chrome/test/data/webui/test_api.js', '../chrome/test/base/js2gtest.js']' returned non-zero exit status 127
FAILED: cd ../../remoting; python ../tools/gypv8sh.py ../out/Debug/d8 ../chrome/third_party/mock4js/mock4js.js ../third_party/accessibility-audit/axs_testing.js ../chrome/test/data/webui/test_api.js ../chrome/test/base/js2gtest.js unit "webapp/browser_globals.gtestjs" "chrome/webapp/browser_globals.gtestjs" "../out/Debug/obj/remoting/remoting_unittests.gen/chrome/webapp/browser_globals-gen.cc" "../out/Debug/test_data/chrome/webapp/browser_globals.gtestjs"
../out/Debug/d8: error while loading shared libraries: libicui18n.so: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "../tools/gypv8sh.py", line 55, in <module>
    sys.exit(main())
  File "../tools/gypv8sh.py", line 44, in main
    subprocess.check_call(cmd, stdin=subprocess.PIPE, stdout=f)
  File "/usr/lib/python2.7/subprocess.py", line 511, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['../out/Debug/d8', '-e', 'arguments=["../chrome/test/base/js2gtest.js", "webapp/browser_globals.gtestjs", "chrome/webapp/browser_globals.gtestjs", "../out/Debug/obj/remoting/remoting_unittests.gen/chrome/webapp/browser_globals-gen.cc", "unit"]', '../chrome/third_party/mock4js/mock4js.js', '../third_party/accessibility-audit/axs_testing.js', '../chrome/test/data/webui/test_api.js', '../chrome/test/base/js2gtest.js']' returned non-zero exit status 127
FAILED: cd ../../remoting; python ../tools/gypv8sh.py ../out/Debug/d8 ../chrome/third_party/mock4js/mock4js.js ../third_party/accessibility-audit/axs_testing.js ../chrome/test/data/webui/test_api.js ../chrome/test/base/js2gtest.js unit "webapp/format_iq.gtestjs" "chrome/webapp/format_iq.gtestjs" "../out/Debug/obj/remoting/remoting_unittests.gen/chrome/webapp/format_iq-gen.cc" "../out/Debug/test_data/chrome/webapp/format_iq.gtestjs"
../out/Debug/d8: error while loading shared libraries: libicui18n.so: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "../tools/gypv8sh.py", line 55, in <module>
    sys.exit(main())
  File "../tools/gypv8sh.py", line 44, in main
    subprocess.check_call(cmd, stdin=subprocess.PIPE, stdout=f)
  File "/usr/lib/python2.7/subprocess.py", line 511, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['../out/Debug/d8', '-e', 'arguments=["../chrome/test/base/js2gtest.js", "webapp/format_iq.gtestjs", "chrome/webapp/format_iq.gtestjs", "../out/Debug/obj/remoting/remoting_unittests.gen/chrome/webapp/format_iq-gen.cc", "unit"]', '../chrome/third_party/mock4js/mock4js.js', '../third_party/accessibility-audit/axs_testing.js', '../chrome/test/data/webui/test_api.js', '../chrome/test/base/js2gtest.js']' returned non-zero exit status 127
ninja: build stopped: subcommand failed.

> When "linux_use_gold_binary" is set, we now use gold from third_party/binutils rather than third_party/gold (allowing us to remove third_party/gold dependency).
> 
> As third_party/binutils is 2.24, this also satisfies the binutils version requirements for Debug Fission. Thus, when building with clang on Ubuntu Precise it should now be enabled. This should cause a significant speedup in linking for most chrome developers on Linux.
> 
> Requires;
>  * https://codereview.chromium.org/209853003/ - Adding binutils as a DEPS to allow DebugFission on Ubuntu Precise when compiling with clang.
> 
> BUG=352046
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261778
> 
> Review URL: https://codereview.chromium.org/196573022

TBR=mithro@mithis.com

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262036 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-05 20:53:01 +00:00
sky@chromium.org 6d0851cc94 Removes use_mojo
Now that we've sorted out the build issues on all platforms it can be
removed.

BUG=353602
TEST=none
R=jam@chromium.org
TBR=tsepez@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262032 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-05 20:14:17 +00:00
mithro@mithis.com b5dc309f82 When "linux_use_gold_binary" is set, we now use gold from third_party/binutils rather than third_party/gold (allowing us to remove third_party/gold dependency).
As third_party/binutils is 2.24, this also satisfies the binutils version requirements for Debug Fission. Thus, when building with clang on Ubuntu Precise it should now be enabled. This should cause a significant speedup in linking for most chrome developers on Linux.

Requires;
 * https://codereview.chromium.org/209853003/ - Adding binutils as a DEPS to allow DebugFission on Ubuntu Precise when compiling with clang.

BUG=352046

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

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262031 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-05 20:13:43 +00:00
thakis@chromium.org 0405ae2803 Revert "Turn on clang by default on linux."
We don't have 32bit clang binaries, but several 32bit builders.
(And since clang now needs a c++11 compiler newer than gcc4.6 to
compile, we can't tell these bots to just build clang themselves
either.)

BUG=360311

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262030 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-05 20:06:28 +00:00
thakis@chromium.org 10590885a1 kick of a round of builds
BUG=none
TBR=awong@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262029 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-05 19:56:38 +00:00
thakis@chromium.org 50d16afd11 Turn on clang by default on linux.
This is mostly to collect performance and size data for now. Unless things
look really good, I'm going to revert this by end-of-day sunday.

BUG=360311
TBR=awong@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262025 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-05 18:27:00 +00:00
tfarina@chromium.org 9c9964f91e ui/gfx: Add Android support for gfx_unittests target.
By using gtest_target_type we can specialize gfx_unittests for android
and thus get it running on Android.

BUG=331829,299841
TEST=gfx_unittests_apk
R=danakj@chromium.org,bulach@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@261986 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-05 07:45:37 +00:00
thestig@chromium.org 64549c3607 Linux: Do not pass --reduce-memory-overheads to the linker on CrOS.
BUG=360082
TBR=vapier@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@261943 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-05 00:46:14 +00:00
fischman@chromium.org d37ef83ced Silence git-hooks/pre-commit in the absence of .gitmodules (take 2).
Other projects use depot_tools (which pulls in this hook) and chromium's build/
(where the hook lives) but don't use git modules (e.g. webrtc).

This first landed as r257470 but was accidentally undone by r259711.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@261931 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-05 00:29:14 +00:00