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

151 Коммитов

Автор SHA1 Сообщение Дата
Nico Weber 641ca62246 mac: Make it possible to download mac sdk on a linux host.
This is apparently used by ffmpeg's robosushi tool, when doing ffmpeg
rolls -- except they currently pull the SDK off a GCS bucket instead
of using cipd like Chromium normally does nowadays. This makes it
possible to make robosushi use the more common method.

Bug: 1098899
Change-Id: I0a2aea6cd0316e536bb3501801831817a5290def
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2277455
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: Erik Chen <erikchen@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#784530}
GitOrigin-RevId: ff92a576cc4d142c37a90d3beb9997c5711ee4f1
2020-07-01 12:50:04 -07:00
Sylvain Defresne 75045e1c70 [ios/mac] Preliminary work to untangle templates and scripts
Create new directories //build/apple, //build/config/apple and
//build/toolchain/apple to hold templates, configs and scripts
shared by Apple platforms (iOS and macOS).

This will allow to isolate platform specific templates, configs
and scripts in //build/{ios,mac}, //build/config/{ios,mac} and
//build/toolchain/{ios,mac} eventually making easier to change
one platform without breaking the other.

Move tweak_info_plist.{py,gni} to //build/apple as a first step
to ensure that it is possible to move files without breaking
the projects based on //build (webrtc, ios_internal, ...).

Bug: 635745
Change-Id: Ieb9df43fc638891f3975495f87a9612e22bc3c7e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2270464
Reviewed-by: Rohit Rao <rohitrao@chromium.org>
Reviewed-by: Mike Pinkerton <pinkerton@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#784006}
GitOrigin-RevId: b3a8c60411360e89c3a729e8aaf1ea98db661129
2020-06-30 09:55:52 -07:00
Nico Weber 20016b0d4b mac: use mac_xcode_version = xcode_12_beta to request that version
https://ci.chromium.org/p/chromium/builders/ci/mac-arm64/345:

ValueError: unexpected AST node: <_ast.BinOp object at 0x110000e50> BinOp(left=Num(n=12), op=Sub(), right=Name(id='beta', ctx=Load())) (inside '12-beta')

Python’s ast treats a hyphen as a token that’s the subtraction operator,
and anything that begins with a digit as a token that’s a number. So
12-beta isn’t a good name, and neither is 12_beta or xcode-12-beta. But
xcode_12_beta should be just fine.

Bug: 1098454,1098738,1099242
Change-Id: I5a675e800764ddaa8e63b32d3b16e481d10bf51e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2265141
Commit-Queue: Nico Weber <thakis@chromium.org>
Commit-Queue: Mark Mentovai <mark@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Auto-Submit: Mark Mentovai <mark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#782394}
GitOrigin-RevId: a64b3fb93de22114917f299725a8aa853180c5a2
2020-06-25 13:00:24 -07:00
Nico Weber 6303402c58 mac: Make it possible to pick the version of hermetic Xcode via custom_vars
I want to use this to make the new fyi bot use the 11 SDK.

Downstream projects will have to add

  'mac_xcode_version': 'default',

to the `vars = {` section of their toplevel DEPS section to roll
in build/ with this change.

Bug: 1098738,1098454
Change-Id: I3939da4c83d733c6c08deded4520e824dbd89043
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2264867
Commit-Queue: Nico Weber <thakis@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#782205}
GitOrigin-RevId: c30b8730c97dcf21de82d46d9c02436815503ab0
2020-06-25 12:59:19 -07:00
Nico Weber bcb7c93510 mac: make find_sdk.py work when the sdk goes to 11
Bug: 1098738
Change-Id: Ibab53f0dd1c24e28f82d5b5d22abffc934a05782
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2264152
Commit-Queue: Nico Weber <thakis@chromium.org>
Commit-Queue: Mark Mentovai <mark@chromium.org>
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#781835}
GitOrigin-RevId: cdd96213435c7cb21042e84720d9343ca35b37cf
2020-06-25 12:57:26 -07:00
Roberto Moura 399c6f13e0 Add support for Python3 in setup files
Future versions of macOS won't include Python2 and it is recommended
that we run Python3 from the terminal as Python2 is no longer supported.

- map() returns an iterator instead of a list in Python3. Using list
comprehension instead.
- New octal notation

Bug: 1068191, 942720
Change-Id: Idec9a22b81bf95fe8e026cd2157f662aab9afb47
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2231064
Commit-Queue: Roberto Moura <mouraroberto@google.com>
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#776445}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d63e2795c9504823faa085516573a17580f5e6f8
2020-06-09 09:32:47 +00:00
Dirk Pranke 453b0af9fa Update TEAM in OWNERS for build-related directories.
Now that there's a build@chromium.org list, this CL
updates the various TEAM= entries in the OWNERS files
to reflect that.

R=agrieve@chromium.org, thakis@chromium.org, mark@chromium.org

Change-Id: I8c41a604dd89aa20c9b381090701eff699c1d302
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2209616
Reviewed-by: Mark Mentovai <mark@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Commit-Queue: Dirk Pranke <dpranke@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#770658}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2c0d2f004573db25485ffa95e2a8ec00a61fef18
2020-05-20 17:39:31 +00:00
Sylvain Defresne 13e29491b1 [ios] Allow the additional plist to be generated
Some of the additional plist needs to be generated based on some
build configuration, so add a new variable to control the list of
targets to add as dependency of the tweak_info_plist.

This variable will be overridden downstream with the list of
targets needed to generate the plist files.

Bug: 1083995
Change-Id: I73d9caad5e38e94c7c2fea43d6b59f97aec6e5dd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2207532
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Reviewed-by: Olivier Robin <olivierrobin@chromium.org>
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#770088}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b94b4b17bb4bda405e34cfd0303426046c3a0a52
2020-05-19 13:37:51 +00:00
Nico Weber db93dd7e05 Reland "mac: Reorganize how SDK search paths are set when using hermetic Xcode."
This is a reland of 4f367ede945486857ca0e4978b1e6040895c331f

Depends on https://chromium-review.googlesource.com/c/native_client/src/native_client/+/2176530

Original change's description:
> mac: Reorganize how SDK search paths are set when using hermetic Xcode.
>
> If !use_system_xcode, we use a hermetic Xcode in build/mac_files/
> (if build/mac/should_use_hermetic_xcode.py returns 1, which it
> e.g. does if FORCE_MAC_TOOLCHAIN=1 is set in the environment).
>
> That hermetic Xcode also contains a single, fixed SDK. This is the
> SDK that's also used for official, branded builds.
>
> Previously, for builds using hermetic Xcode, we used the find_sdk.py
> script used in system Xcode builds too, and passed a --verify flag
> to make sure it returns exactly what we expect.
>
> Instead, don't call find_sdk.py at all when using system Xcode.
> This allows removing lots of code, at the cost of duplicating
> two relative paths in mac_sdk.gni and find_sdk.py (...but they're
> already fixed by the hermetic Xcode bundler). This allows
> removing lots of code and one exec_script() invocation.
>
> While here, change mac_sdk_path to be a gn path instead of
> an absolute path, so that sysroot in sysroot.gni is a gn path
> on mac (when using hermetic Xcode) just like it is on linux/android/fuchsia
> builds. When it's passed as -isysroot flag in build/config/mac/BUILD.gn,
> we already call rebase_path on sysroot, so this doesn't have any
> observable behavior change.
>
> While here, remove some old Xcode 7.x era checks and workarounds.
>
> No intended behavor change.
>
> Bug: none
> Change-Id: Ibdc497d3dd6490b88283283db5842a0adb4b844a
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2175199
> Reviewed-by: Mark Mentovai <mark@chromium.org>
> Reviewed-by: Elly Fong-Jones <ellyjones@chromium.org>
> Commit-Queue: Nico Weber <thakis@chromium.org>
> Auto-Submit: Nico Weber <thakis@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#764790}

Bug: 1077440
Change-Id: I51b18a16168b63b72fb0274217cbb2b25b87e06f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2176831
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#764940}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7514d643e994cfdbb4f13208ab21c2c60094df74
2020-05-02 19:21:41 +00:00
Adithya Srinivasan dff3a2b1ad Revert "mac: Reorganize how SDK search paths are set when using hermetic Xcode."
This reverts commit 4f367ede945486857ca0e4978b1e6040895c331f.

Reason for revert: Speculative revert for fixing build failures in Mac builder: https://ci.chromium.org/p/chromium/builders/ci/Mac%20Builder/114281.

Original change's description:
> mac: Reorganize how SDK search paths are set when using hermetic Xcode.
> 
> If !use_system_xcode, we use a hermetic Xcode in build/mac_files/
> (if build/mac/should_use_hermetic_xcode.py returns 1, which it
> e.g. does if FORCE_MAC_TOOLCHAIN=1 is set in the environment).
> 
> That hermetic Xcode also contains a single, fixed SDK. This is the
> SDK that's also used for official, branded builds.
> 
> Previously, for builds using hermetic Xcode, we used the find_sdk.py
> script used in system Xcode builds too, and passed a --verify flag
> to make sure it returns exactly what we expect.
> 
> Instead, don't call find_sdk.py at all when using system Xcode.
> This allows removing lots of code, at the cost of duplicating
> two relative paths in mac_sdk.gni and find_sdk.py (...but they're
> already fixed by the hermetic Xcode bundler). This allows
> removing lots of code and one exec_script() invocation.
> 
> While here, change mac_sdk_path to be a gn path instead of
> an absolute path, so that sysroot in sysroot.gni is a gn path
> on mac (when using hermetic Xcode) just like it is on linux/android/fuchsia
> builds. When it's passed as -isysroot flag in build/config/mac/BUILD.gn,
> we already call rebase_path on sysroot, so this doesn't have any
> observable behavior change.
> 
> While here, remove some old Xcode 7.x era checks and workarounds.
> 
> No intended behavor change.
> 
> Bug: none
> Change-Id: Ibdc497d3dd6490b88283283db5842a0adb4b844a
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2175199
> Reviewed-by: Mark Mentovai <mark@chromium.org>
> Reviewed-by: Elly Fong-Jones <ellyjones@chromium.org>
> Commit-Queue: Nico Weber <thakis@chromium.org>
> Auto-Submit: Nico Weber <thakis@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#764790}

TBR=ellyjones@chromium.org,thakis@chromium.org,mark@chromium.org

Change-Id: I33f3cd194f3d435dc56493f64d42fbccba86677a
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: none
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2176420
Reviewed-by: Adithya Srinivasan <adithyas@chromium.org>
Commit-Queue: Adithya Srinivasan <adithyas@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#764798}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 836c44b3e63dea8ac4ca64f349cfda81f27cb95a
2020-05-01 21:43:11 +00:00
Nico Weber 2f671ef6ec mac: Reorganize how SDK search paths are set when using hermetic Xcode.
If !use_system_xcode, we use a hermetic Xcode in build/mac_files/
(if build/mac/should_use_hermetic_xcode.py returns 1, which it
e.g. does if FORCE_MAC_TOOLCHAIN=1 is set in the environment).

That hermetic Xcode also contains a single, fixed SDK. This is the
SDK that's also used for official, branded builds.

Previously, for builds using hermetic Xcode, we used the find_sdk.py
script used in system Xcode builds too, and passed a --verify flag
to make sure it returns exactly what we expect.

Instead, don't call find_sdk.py at all when using system Xcode.
This allows removing lots of code, at the cost of duplicating
two relative paths in mac_sdk.gni and find_sdk.py (...but they're
already fixed by the hermetic Xcode bundler). This allows
removing lots of code and one exec_script() invocation.

While here, change mac_sdk_path to be a gn path instead of
an absolute path, so that sysroot in sysroot.gni is a gn path
on mac (when using hermetic Xcode) just like it is on linux/android/fuchsia
builds. When it's passed as -isysroot flag in build/config/mac/BUILD.gn,
we already call rebase_path on sysroot, so this doesn't have any
observable behavior change.

While here, remove some old Xcode 7.x era checks and workarounds.

No intended behavor change.

Bug: none
Change-Id: Ibdc497d3dd6490b88283283db5842a0adb4b844a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2175199
Reviewed-by: Mark Mentovai <mark@chromium.org>
Reviewed-by: Elly Fong-Jones <ellyjones@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Auto-Submit: Nico Weber <thakis@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#764790}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4f367ede945486857ca0e4978b1e6040895c331f
2020-05-01 21:07:13 +00:00
Nico Weber ded3b9f70e Reformat all gn files in /build/mac.
`gn format` recently changed its formatting behavior
for deps, source, and a few other elements when they
are assigned (with =) single-element lists to be consistent
with the formatting of updates (with +=) with single-element.

Now that we've rolled in a GN binary with the change,
reformat all files so that people don't get presubmit
warnings due to this.

This CL was uploaded by git cl split.

R=rsesek@chromium.org

Bug: 1041419
Change-Id: I8f2d90b271b4be38f50d974c1f1691b628a290ff
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1997767
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Commit-Queue: Robert Sesek <rsesek@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#730980}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7a4c3888c34319dd790264c98f0663d98f5e831f
2020-01-14 00:30:30 +00:00
Erik Chen cd812a4233 Compile on macOS using binaries from Xcode, rather than a full install.
Previously, Chromium used a hermetic toolchain. This was basically a full
install of Xcode, which has OS version dependencies. This CL keeps the hermetic
toolchain, since it's necessary for clang + code coverage.

Compilation of Chrome now uses a separate package of binaries from
Xcode. This consists of a whitelist of the OS-version agnostic binaries from
Xcode. These binaries do not have [relevant] OS version dependencies.

Change-Id: Ie6f30b4b6b3ccd4a7538feb73d6828cfa4a02891
Bug: 965663
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1673572
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Erik Chen <erikchen@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#678463}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: bc74094853d3b50325b4ace9de80225375648bfe
2019-07-17 21:47:00 +00:00
Erik Chen 583250f9f4 Update find_sdk.py to print out the toolchain bin dir.
This allows build scripts to directly specify the required binaries, rather than
implicitly relying on xcrun to find the binaries.

Bug: 971452
Change-Id: I02862dc39fba7ec1c7534283b0b5a5bfd5f4bbd6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1648780
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Erik Chen <erikchen@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#667148}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2cdd0b376a113957abb2a19cc97e706cda37324e
2019-06-07 16:07:44 +00:00
Erik Chen 15327e6bf3 Update find_sdk.py to not rely on xcode-select or xcrun.
This CL is not intended to introduce any functional changes.

Bug: 971452
Change-Id: I5bd1880b52063b00a8f56b8252e82bcb3ee0c77f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1646546
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Commit-Queue: Erik Chen <erikchen@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#666885}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4f2c06c76e055e002cfdd2990e5d3ba8c180af82
2019-06-06 21:59:13 +00:00
Raul Tambre 0fdfe6341a //build: Convert print statements to Python 3 style
Ran "2to3 -w -n -f print ./base" and manually added imports.
There are no intended behaviour changes.

Bug: 941669
Change-Id: Ie2830e213eae3a5d7753ce503020e02811b726d1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1585890
Commit-Queue: Raul Tambre <raul@tambre.ee>
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Auto-Submit: Raul Tambre <raul@tambre.ee>
Cr-Original-Commit-Position: refs/heads/master@{#658917}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9e24293bf2459779641201495baa3b2ae9d13cd9
2019-05-12 06:11:07 +00:00
Justin Cohen 620ef31e5e Assert when using FORCE_MAC_TOOLCHAIN and target_os=ios.
iOS no longer uses the hermetic Xcode toolchain.

Bug: 939785
Change-Id: I31a28e77a7e2b5b43f3db43c39ada9d9e6757540
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1539798
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Erik Chen <erikchen@chromium.org>
Auto-Submit: Justin Cohen <justincohen@chromium.org>
Commit-Queue: Justin Cohen <justincohen@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#644418}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4b820a46fc4a38a597c72851e322b1be4aa7984b
2019-03-26 17:59:11 +00:00
Nico Weber 4add1629f4 mac: Remove edit_xibs.sh.
chrome_nibs.gyp went away a while ago, and gyp is no longer deps'd in.

Bug: none
Change-Id: I71d7503b0f95ff15575653da7efe35e4e62a6fcd
Reviewed-on: https://chromium-review.googlesource.com/c/1371928
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#615542}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 95b2ab89102f1b6aa1accf098304c8ef5a2d3924
2018-12-11 16:03:21 +00:00
Takuto Ikuta 05a360b494 Support dummy commit for LASTCHANGE
This is to generate reproducible binary between commits for Linux by giving use_dummy_lastchange=true in args.gn.

This CL makes binaries independent from commit hash at least for below (time consuming) targets on Linux.
* content_unittests
* interactive_ui_tests
* content_shell (for webkit_layout_tests)
* content_browsertests
* browser_tests

If we can generate deterministic binary, test execution on build bot can be cached. And it will improve CQ cycle time.
But we don't know how often we make changes not introducing functional change in binaries.
So this CL is mainly for getting some stats from test on Linux buildbot and evaluate whether it is better to go forward or not for other platforms.

See more backgrounds here.
https://docs.google.com/document/d/16dalG0ssugZlwc7BBzUoBQUmuqM0S_gwtG2uxL0htdw/edit#

TBR: pfeldman@chromium.org
Bug: 869348
Cq-Include-Trybots: master.tryserver.chromium.android:android_cronet_tester;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I1b351b2135fd5e749ed575484b2182e847a420c9
Reviewed-on: https://chromium-review.googlesource.com/1151169
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Reviewed-by: Marc-Antoine Ruel <maruel@chromium.org>
Reviewed-by: Misha Efimov <mef@chromium.org>
Reviewed-by: Devlin <rdevlin.cronin@chromium.org>
Reviewed-by: Sergey Ulanov <sergeyu@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#579668}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 36541eb81aae62b267dcc88d1fdaef912450299a
2018-08-01 02:09:56 +00:00
Sergey Berezin ae23fa3983 Replace hermetic Xcode installation with CIPD-based flow (take 2)
The 'API' to the scripts remains the same, only the delivery mechanism changes.

This is a reland of https://crrev.com/c/887819.

BUG=797051
R=erikchen@chromium.org, justincohen@chromium.org

Change-Id: I6628170430265e54e6ed0d42509114825b85a6b8
Reviewed-on: https://chromium-review.googlesource.com/1030816
Reviewed-by: Erik Chen <erikchen@chromium.org>
Reviewed-by: Justin Cohen <justincohen@chromium.org>
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: Sergey Berezin <sergeyberezin@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#554882}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5654182dd049bb8fbddf48cf23cff461472aad19
2018-04-30 21:24:49 +00:00
Sergey Berezin 5b7dbcfdd3 Revert "Replace hermetic Xcode installation with CIPD-based flow."
This reverts commit 116dd7c37d473b6be5d34812035c4f14aa360efa.

Reason for revert: broke https://ci.chromium.org/buildbot/chromium.webkit/WebKit%20Mac%20Builder/240835

Original change's description:
> Replace hermetic Xcode installation with CIPD-based flow.
> 
> The 'API' to the scripts remains the same, only the delivery mechanism changes.
> 
> BUG=797051
> R=​erikchen@chromium.org, justincohen@chromium.org
> 
> Change-Id: I8ee5486b107061f9fb6e64354463ac51de53d4cc
> Reviewed-on: https://chromium-review.googlesource.com/887819
> Reviewed-by: John Budorick <jbudorick@chromium.org>
> Reviewed-by: Erik Chen <erikchen@chromium.org>
> Commit-Queue: Sergey Berezin <sergeyberezin@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#553871}

TBR=erikchen@chromium.org,justincohen@chromium.org,sergeyberezin@chromium.org,jbudorick@chromium.org

Change-Id: Icdd25e048a8ed6de19b7a98e41a438c1c7c6ed2f
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 797051
Reviewed-on: https://chromium-review.googlesource.com/1029630
Reviewed-by: Sergey Berezin <sergeyberezin@chromium.org>
Commit-Queue: Sergey Berezin <sergeyberezin@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#553876}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f061f6d7610b1e6614c9f546acdf7de66b20d625
2018-04-26 02:43:50 +00:00
Sergey Berezin ad615bae42 Replace hermetic Xcode installation with CIPD-based flow.
The 'API' to the scripts remains the same, only the delivery mechanism changes.

BUG=797051
R=erikchen@chromium.org, justincohen@chromium.org

Change-Id: I8ee5486b107061f9fb6e64354463ac51de53d4cc
Reviewed-on: https://chromium-review.googlesource.com/887819
Reviewed-by: John Budorick <jbudorick@chromium.org>
Reviewed-by: Erik Chen <erikchen@chromium.org>
Commit-Queue: Sergey Berezin <sergeyberezin@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#553871}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 116dd7c37d473b6be5d34812035c4f14aa360efa
2018-04-26 01:46:08 +00:00
Mathias Bynens ca17788480 [build] Detect Xcode license agreement acceptance
This patch prints a helpful error message if the Xcode license
agreement hasn’t been accepted or if the CommandLineTools are
installed separately from Xcode.

BUG=729990

Change-Id: I8d7c6550c6b144473892a8f8c491eba32cbf9e6c
Reviewed-on: https://chromium-review.googlesource.com/758651
Commit-Queue: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Reviewed-by: Sergiy Byelozyorov <sergiyb@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#515248}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 21ffa4e82be6afcb590568a651543b90eae5c6d2
2017-11-09 19:48:53 +00:00
Olivier Robin fa1b6de867 Upload CSChrome crash reports to crash.
This will upload crashes to staging.
Example report:
https://crash-staging.corp.google.com/browse?q=reportid=%2732b1540312c908a3%27
Adding product keys will be done in another CL.

Bug: 751134
Change-Id: I9a8446be5314be39afd2053060c30ed7a19c4b2e
Reviewed-on: https://chromium-review.googlesource.com/616565
Reviewed-by: Mark Cogan <marq@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Commit-Queue: Olivier Robin <olivierrobin@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#495951}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 96ed6102741ace7d9981a7578c0bc84d7b156b38
2017-08-21 16:14:43 +00:00
Julien Brianceau aae73b1e4b build: Fix common misspellings
Bug: 750830
Change-Id: Ie4cc9f02e3cc23f0ed3e44b5372745eee9944165
Reviewed-on: https://chromium-review.googlesource.com/594770
Reviewed-by: Scott Graham <scottmg@chromium.org>
Commit-Queue: Julien Brianceau <jbriance@cisco.com>
Cr-Original-Commit-Position: refs/heads/master@{#490922}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 96dfe4d804e9823fe6d021a1e068c4d768d9093c
2017-08-01 09:03:13 +00:00
erikchen 2a211b15c0 mac: Roll hermetic toolchain to Xcode 8.3.2.
Xcode 8.3.2 requires macOS 10.12+. This version of Xcode 8.3.2 has both the
10.10 and 10.12 SDKs, and builds will continue to use the 10.10 SDK.

To support machines running macOS versions < 10.12, but don't require building
targets, this CL also:
  * Does not download the hermetic toolchain if the macOS version does not
    support the toolchain version.
  * Does not allow building targets with the default hermetic toolchain if the
    macOS version does not support the toolchain version.

BUG=624049

Review-Url: https://codereview.chromium.org/2950933003
Review-Url: https://codereview.chromium.org/2950933003
Review-Url: https://codereview.chromium.org/2950933003
Review-Url: https://codereview.chromium.org/2950933003
Cr-Original-Original-Original-Commit-Position: refs/heads/master@{#481692}
Committed: 2f19b143e4
Committed: 3501279231
Committed: 87de017dbe
Cr-Original-Original-Commit-Position: refs/heads/master@{#482776}
Cr-Original-Commit-Position: refs/heads/master@{#483217}
Cr-Original-Original-Original-Original-Commit-Position: refs/heads/master@{#481225}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d5dfcdb0f4ef632fc90a53e02796f72d8d81f657
2017-06-29 00:22:53 +00:00
engedy af2ba82339 Revert of mac: Roll hermetic toolchain to Xcode 8.3.2. (patchset #2 id:20001 of https://codereview.chromium.org/2950933003/ )
Reason for revert:
Broke try bot: mac_chromium_10.10_rel_ng

https://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_10.10_rel_ng?numbuilds=100

Original issue's description:
> mac: Roll hermetic toolchain to Xcode 8.3.2.
>
> Xcode 8.3.2 requires macOS 10.12+. This version of Xcode 8.3.2 has both the
> 10.10 and 10.12 SDKs, and builds will continue to use the 10.10 SDK.
>
> To support machines running macOS versions < 10.12, but don't require building
> targets, this CL also:
>   * Does not download the hermetic toolchain if the macOS version does not
>     support the toolchain version.
>   * Does not allow building targets with the default hermetic toolchain if the
>     macOS version does not support the toolchain version.
>
> BUG=624049
>
> Review-Url: https://codereview.chromium.org/2950933003
> Cr-Original-Original-Commit-Position: refs/heads/master@{#481225}
> Committed: 2f19b143e4
> Review-Url: https://codereview.chromium.org/2950933003
> Cr-Original-Commit-Position: refs/heads/master@{#481692}
> Committed: 3501279231
> Review-Url: https://codereview.chromium.org/2950933003
> Cr-Commit-Position: refs/heads/master@{#482776}
> Committed: 87de017dbe

TBR=dpranke@chromium.org,erikchen@chromium.org
# Done partial CQ checks because original CL landed almost 1 days ago.
NOTREECHECKS=true
NOPRESUBMIT=true
NOTREECHECKS=true
BUG=624049

Review-Url: https://codereview.chromium.org/2963843002
Cr-Original-Commit-Position: refs/heads/master@{#483120}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8bf722464b7361247ffaada42c179c6912c4125d
2017-06-28 20:34:21 +00:00
erikchen ca3fb287a5 mac: Roll hermetic toolchain to Xcode 8.3.2.
Xcode 8.3.2 requires macOS 10.12+. This version of Xcode 8.3.2 has both the
10.10 and 10.12 SDKs, and builds will continue to use the 10.10 SDK.

To support machines running macOS versions < 10.12, but don't require building
targets, this CL also:
  * Does not download the hermetic toolchain if the macOS version does not
    support the toolchain version.
  * Does not allow building targets with the default hermetic toolchain if the
    macOS version does not support the toolchain version.

BUG=624049

Review-Url: https://codereview.chromium.org/2950933003
Review-Url: https://codereview.chromium.org/2950933003
Review-Url: https://codereview.chromium.org/2950933003
Cr-Original-Original-Commit-Position: refs/heads/master@{#481692}
Committed: 2f19b143e4
Committed: 3501279231
Cr-Original-Commit-Position: refs/heads/master@{#482776}
Cr-Original-Original-Original-Commit-Position: refs/heads/master@{#481225}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 87de017dbe9a09bf33e34e462f8cb0a1b1dba087
2017-06-27 22:52:49 +00:00
erikchen 1ad8afb4b9 Revert of mac: Roll hermetic toolchain to Xcode 8.3.2. (patchset #2 id:20001 of https://codereview.chromium.org/2950933003/ )
Reason for revert:
Reverting. Failed to update all perf Mac Builder slaves to 10.12.

Original issue's description:
> mac: Roll hermetic toolchain to Xcode 8.3.2.
>
> Xcode 8.3.2 requires macOS 10.12+. This version of Xcode 8.3.2 has both the
> 10.10 and 10.12 SDKs, and builds will continue to use the 10.10 SDK.
>
> To support machines running macOS versions < 10.12, but don't require building
> targets, this CL also:
>   * Does not download the hermetic toolchain if the macOS version does not
>     support the toolchain version.
>   * Does not allow building targets with the default hermetic toolchain if the
>     macOS version does not support the toolchain version.
>
> BUG=624049
>
> Review-Url: https://codereview.chromium.org/2950933003
> Cr-Original-Commit-Position: refs/heads/master@{#481225}
> Committed: 2f19b143e4
> Review-Url: https://codereview.chromium.org/2950933003
> Cr-Commit-Position: refs/heads/master@{#481692}
> Committed: 3501279231

TBR=dpranke@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=624049

Review-Url: https://codereview.chromium.org/2957483002
Cr-Original-Commit-Position: refs/heads/master@{#481733}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 099118540bc82d533a24e66c4778db9e2f0c6356
2017-06-23 00:07:56 +00:00
erikchen a21b634d91 mac: Roll hermetic toolchain to Xcode 8.3.2.
Xcode 8.3.2 requires macOS 10.12+. This version of Xcode 8.3.2 has both the
10.10 and 10.12 SDKs, and builds will continue to use the 10.10 SDK.

To support machines running macOS versions < 10.12, but don't require building
targets, this CL also:
  * Does not download the hermetic toolchain if the macOS version does not
    support the toolchain version.
  * Does not allow building targets with the default hermetic toolchain if the
    macOS version does not support the toolchain version.

BUG=624049

Review-Url: https://codereview.chromium.org/2950933003
Review-Url: https://codereview.chromium.org/2950933003
Cr-Original-Commit-Position: refs/heads/master@{#481692}
Committed: 2f19b143e4
Cr-Original-Original-Commit-Position: refs/heads/master@{#481225}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 350127923178be13e901e047ea5719890e7af365
2017-06-22 22:23:50 +00:00
martiniss 853a24ca4a Revert of mac: Roll hermetic toolchain to Xcode 8.3.2. (patchset #2 id:20001 of https://codereview.chromium.org/2950933003/ )
Reason for revert:
Broke mac builders on chromium.perf: https://build.chromium.org/p/chromium.perf/builders/Mac%20Builder/builds/102244

Original issue's description:
> mac: Roll hermetic toolchain to Xcode 8.3.2.
>
> Xcode 8.3.2 requires macOS 10.12+. This version of Xcode 8.3.2 has both the
> 10.10 and 10.12 SDKs, and builds will continue to use the 10.10 SDK.
>
> To support machines running macOS versions < 10.12, but don't require building
> targets, this CL also:
>   * Does not download the hermetic toolchain if the macOS version does not
>     support the toolchain version.
>   * Does not allow building targets with the default hermetic toolchain if the
>     macOS version does not support the toolchain version.
>
> BUG=624049
>
> Review-Url: https://codereview.chromium.org/2950933003
> Cr-Commit-Position: refs/heads/master@{#481225}
> Committed: 2f19b143e4

TBR=dpranke@chromium.org,erikchen@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=624049

Review-Url: https://codereview.chromium.org/2949043002
Cr-Original-Commit-Position: refs/heads/master@{#481241}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 81095e19266ad3da6479a5889793842fe49a437b
2017-06-21 18:12:06 +00:00
erikchen 1fe105c449 mac: Roll hermetic toolchain to Xcode 8.3.2.
Xcode 8.3.2 requires macOS 10.12+. This version of Xcode 8.3.2 has both the
10.10 and 10.12 SDKs, and builds will continue to use the 10.10 SDK.

To support machines running macOS versions < 10.12, but don't require building
targets, this CL also:
  * Does not download the hermetic toolchain if the macOS version does not
    support the toolchain version.
  * Does not allow building targets with the default hermetic toolchain if the
    macOS version does not support the toolchain version.

BUG=624049

Review-Url: https://codereview.chromium.org/2950933003
Cr-Original-Commit-Position: refs/heads/master@{#481225}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2f19b143e444c920e643feda583e9ceb72d29c8e
2017-06-21 17:02:57 +00:00
rsesek b436d9a09c Delete several unused GYP scripts from build/mac and chrome/tools/build/mac.
This also adds rsesek@ as an OWNER of chrome/tools/build/mac.

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

Review-Url: https://codereview.chromium.org/2793433002
Cr-Original-Commit-Position: refs/heads/master@{#460981}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4a22fdb230ae32c544d870cb55fbf3643a82adb9
2017-03-31 01:34:48 +00:00
ymzhang 8b6a67934a [DirectoryOwnership] Add TEAM/COMPONENT into OWNERS files.
We are adding COMPONENT/TEAM information into OWNERS file. Please help us to
verify the added TEAM/COMPONENT or suggest the correct TEAM/COMPONENT in your
OWNERS files. Thanks.

Proposal to add TEAM/COMPONENT information into OWNERS files
http://bit.ly/add-team-component-proposal
Proposal about how to get suggested component for directory.
http://bit.ly/directory-mapping-proposal
TEAM-COMPONENT mapping
http://bit.ly/component-team-mapping

Additional Information:
Component lists
https://bugs.chromium.org/p/chromium/adminComponents

BUG=679905

Review-Url: https://codereview.chromium.org/2707433004
Cr-Original-Commit-Position: refs/heads/master@{#451880}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6d2d654291ab0740e2bb3d28c4025dc1405767fb
2017-02-22 01:45:58 +00:00
justincohen 1381ada509 Reland enable hermetic builds for iOS.
This is a reland of https://codereview.chromium.org/2546613004/

BUG=669094
TBR=kjellander@chromium.org

Review-Url: https://codereview.chromium.org/2563703002
Cr-Original-Commit-Position: refs/heads/master@{#437326}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: cf1c482d102196f851d48f2faae1d44516a628ca
2016-12-08 20:42:03 +00:00
justincohen 8cb55c1dfd Revert of Enable hermetic builds for iOS. (patchset #4 id:100001 of https://codereview.chromium.org/2546613004/ )
Reason for revert:
IndexError: list index out of range

Original issue's description:
> Enable hermetic builds for iOS.
>
> BUG=669094
>
> Committed: https://crrev.com/080de20fe53a35ec6b5ce89470261157f9389db3
> Cr-Commit-Position: refs/heads/master@{#437269}

TBR=erikchen@chromium.org,kjellander@chromium.org,sdefresne@chromium.org,rsesek@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=669094

Review-Url: https://codereview.chromium.org/2552383006
Cr-Original-Commit-Position: refs/heads/master@{#437273}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 73c24cdb89cee4af2adb7021dbd05d4418525ef8
2016-12-08 17:29:08 +00:00
justincohen 587c550b4c Enable hermetic builds for iOS.
BUG=669094

Review-Url: https://codereview.chromium.org/2546613004
Cr-Original-Commit-Position: refs/heads/master@{#437269}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 080de20fe53a35ec6b5ce89470261157f9389db3
2016-12-08 17:17:32 +00:00
erikchen 8b8efd2512 Turn on hermetic toolchain for all corp machines.
BUG=659726

Committed: https://crrev.com/7778e931dabc1fa85d0b77321e3fdef166e0b6a0
Review-Url: https://codereview.chromium.org/2445993004
Cr-Original-Commit-Position: refs/heads/master@{#430863}
Cr-Original-Original-Commit-Position: refs/heads/master@{#430376}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: da01626aa3c2e1533c53c325de9bd579f0aa54d2
2016-11-09 04:35:45 +00:00
sdefresne b53245c933 Revert of Turn on hermetic toolchain for all corp machines. (patchset #2 id:20001 of https://codereview.chromium.org/2445993004/ )
Reason for revert:
This break developer workflow for Googlers (as build/mac/should_use_hermetic_xcode.py returns 1) as the hermetic build does not contains support for iOS SDK, thus "gn gen" fails with the following error:

$ gn gen --args='target_os="ios"' out/default
ERROR at //build/config/ios/ios_sdk.gni:98:21: Script returned non-zero exit code.
  _ios_sdk_result = exec_script(script_name, ios_sdk_info_args, "scope")
                    ^----------
Current dir: /Users/sdefresne/Developer/chromium/src/out/default/
Command: python -- /Users/sdefresne/Developer/chromium/src/build/config/mac/sdk_info.py --developer_dir /Users/sdefresne/Developer/chromium/src/build/mac_files/Xcode.app iphonesimulator
Returned 1.
stderr:

xcodebuild: error: SDK "iphonesimulator" cannot be located.
xcodebuild: error: SDK "iphonesimulator" cannot be located.
xcrun: error: unable to lookup item 'Path' in SDK 'iphonesimulator'

The was not caught by the bots because they do not set FORCE_MAC_TOOLCHAIN and are not corporate machine.

Original issue's description:
> Turn on hermetic toolchain for all corp machines.
>
> BUG=659726
>
> Committed: https://crrev.com/7778e931dabc1fa85d0b77321e3fdef166e0b6a0
> Cr-Commit-Position: refs/heads/master@{#430376}

TBR=thakis@chromium.org,dpranke@chromium.org,brettw@chromium.org,justincohen@chromium.org,erikchen@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=659726

Review-Url: https://codereview.chromium.org/2487643002
Cr-Original-Commit-Position: refs/heads/master@{#430553}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e62f1a5d8886fc1086a180f4da94e0a3d1ca03dc
2016-11-08 09:21:35 +00:00
erikchen 57261611df Turn on hermetic toolchain for all corp machines.
BUG=659726

Review-Url: https://codereview.chromium.org/2445993004
Cr-Original-Commit-Position: refs/heads/master@{#430376}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7778e931dabc1fa85d0b77321e3fdef166e0b6a0
2016-11-07 21:18:22 +00:00
sdefresne 46e067f9ab Extend tweak_info_plist template to support multiple plist file as input.
Rename build/config/mac/gen_plist.py to build/config/mac/plist_util.py
after splitting the possible action (currently variable substitution and
plist merging).

Extend tweak_info_plist template to add another parameter info_plists
corresponding to a list of path to merge before tweaking (this allow for
adding partial plist files depending on configuration options).

Always pass the --platform variable based on the value of $current_os
to the tweak_info_plist template and make args optional.

Refactor info_plist template to use separate steps for merge and variable
substitution (as the script now implement them as two separate actions).

BUG=613543

Review-Url: https://codereview.chromium.org/2480433002
Cr-Original-Commit-Position: refs/heads/master@{#429830}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9bb379e5fbd071abaf1359d724eb79b1ff6e7ceb
2016-11-04 08:19:37 +00:00
erikchen 2a71e4cead Remove direct references to hermetic mac toolchain.
This ensures that the hermetic toolchain is only used if use_system_xcode is
false. This CL also causes two changes:
  * svn is assumed to be installed on the system. It is not pulled from the
  hermetic toolchain.
  * mac_sdk_build was used to populate the SDK version in the Info.plist. This
  was being populated with a different version than the SDK being used to build
  Chrome, which is incorrect.

BUG=651267

Review-Url: https://codereview.chromium.org/2412353003
Cr-Original-Commit-Position: refs/heads/master@{#425170}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6218c34684254f1c090bf501f6c46b0a69b63ec5
2016-10-13 21:38:05 +00:00
brettw ffe5408f3a Remove GYP files in breakpad, build, and tools.
These are now unused.

Review-Url: https://codereview.chromium.org/2331893004
Cr-Original-Commit-Position: refs/heads/master@{#418010}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8c0eb8ed764590108f0278e5bbbddec3fc14b522
2016-09-12 19:55:25 +00:00
sdefresne a348ac1d0b Fail with a clear error if the required SDK is not installed.
If the --verify flag is passed to //build/mac/find_sdk.py and the SDK
is not installed, the script must fail with a non zero return code or
gn will consider that the script was successful and will discard its
stderr.

Fixes the following error when trying to generate official chrome
branded build with Xcode 8 (that does not ship with macOS 10.10 SDK):

  ERROR at //build/config/mac/mac_sdk.gni:43:34: Array subscript out of range.
  mac_sdk_version = find_sdk_lines[1]
                                   ^
  You gave me 1 but I was expecting something from 0 to 1, inclusive.

BUG=634373

Review-Url: https://codereview.chromium.org/2218773004
Cr-Original-Commit-Position: refs/heads/master@{#410529}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c301ead9cb14859d0e4187a7170eeb4fd6b99aec
2016-08-09 02:25:24 +00:00
sdefresne 2958182342 Swap rsesek@ for thomasvl@ as OWNERS of src/build/mac.
BUG=None

Review-Url: https://codereview.chromium.org/2221213002
Cr-Original-Commit-Position: refs/heads/master@{#410499}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5bfed2ae9de23af386fe69e6f42f1e2385314fe6
2016-08-08 23:43:04 +00:00
mark 980bf77c68 mac: Don't rely on Breakpad Info.plist keys for Crashpad initialization
BUG=626811

Review-Url: https://codereview.chromium.org/2204473002
Cr-Original-Commit-Position: refs/heads/master@{#409063}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: bd828670eaef26966373521fa23624d5b7b3ddd6
2016-08-01 21:47:27 +00:00
olivierrobin 3d9b390c45 Use full version for breakpad on iOS
The current version for breakpad in crash reports is CFBundleShortVersionString
It should be long version.

BUG=626490

Review-Url: https://codereview.chromium.org/2132913003
Cr-Original-Commit-Position: refs/heads/master@{#408953}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b0959ee3fc34de2a87f0dce5fc29bddb314da576
2016-08-01 13:37:54 +00:00
sdefresne dfe116dd65 Fix version format used on iOS by build/mac/tweak_info_plist.py.
Chrome on iOS uses different format by default for the "CFBundleVersion"
and "CFBundleShortVersionString" Info.plist values.

Change _AddVersionKeys function to take as parameter a dictionary from
Info.plist keys to version format using @MAJOR@, @MINOR@, @BUILD@ and
@PATCH@ patterns to represent the different component of the version,
and pass a different dictionary depending on the platform.

Refactor how the version is extracted using the build/util/version.py
script (it was invoked twice, but the second invocation can be removed
as the output needs to be post-processed).

BUG=502295,616750

Review-Url: https://codereview.chromium.org/2044893002
Cr-Original-Commit-Position: refs/heads/master@{#398323}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8001eee13920c32ca685f6700bbe2db77eed8046
2016-06-07 17:40:26 +00:00
sdefresne 6e9277b468 [iOS] Add support for iOS to build/mac/tweak_info_plist.py.
In order to allow Chrome on iOS to use build/mac/tweak_info_plist.py,
add options required to control the format of the generated plist file
(--format), the product reported to breakpad (--platform) and a way to
override some portion of the version string (--version-overrides).

This is required to allow Chrome on iOS to migrate from it old fork of
tweak_info_plist shell script and to incorporate tweak_info_plist.py
in the GN build.

BUG=502295

Review-Url: https://codereview.chromium.org/2037043002
Cr-Original-Commit-Position: refs/heads/master@{#397745}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 77bf6652e84cfb17925382598e9e50873065b3c2
2016-06-03 17:40:01 +00:00
thakis 1bd3cb1315 mac: Make `find_sdk.py --print_sdk_path` much faster.
Use xcrun instead of xcodebuild if --print_sdk_path is passed.  Reduces time
to run `gn gen` from 2.2s to 1.95s on my MacBook Pro.

(In the gyp build, we don't pass --print_sdk_path to this script, so I didn't
notice this script had this slow path until now.)

While here, also stop pretending that we support Xcodes older than 4.3.

BUG=609541

Review-Url: https://codereview.chromium.org/1988023006
Cr-Original-Commit-Position: refs/heads/master@{#394565}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d50140bae570f519cea29a8b20e58511032cbfd7
2016-05-18 22:02:37 +00:00