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

114 Коммитов

Автор SHA1 Сообщение Дата
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
rsesek a454f1d368 [Mac/GN] Port tweak_info_plist.py and run it on //content targets.
BUG=431177
R=thakis@chromium.org,sdefresne@chromium.org

Review-Url: https://codereview.chromium.org/1925383003
Cr-Original-Commit-Position: refs/heads/master@{#391283}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 90112aa640570a8b497b15b69d02c047f384ad40
2016-05-03 17:35:26 +00:00
rsesek 261c1e42b5 Delete build/mac/chrome_mac.croc.
Nothing references this old code coverage file.

R=mark@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#387056}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 16112ec31d9e6ff163057e973e50ff8dccb652dc
2016-04-13 19:05:42 +00:00
rsesek 5e4ffad0fb Delete build/mac/change_mach_o_flags.py and friends.
This was only used to mark executable as non-PIE. After the non-PIE Chromium
helper was removed, the last remaining use was for Valgrind. But Valgrind
support was also recently removed, so this can go away entirely.

change_mach_o_flags.py did explicitly set the MH_NO_HEAP_EXECUTION flag on
executables, but this is not necessary on x86_64 where the architecture default
is to not have an executable heap.

BUG=520680

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

Cr-Original-Commit-Position: refs/heads/master@{#387007}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 806f385a1f9c2814de91bd1a98a50e74c4fa9a81
2016-04-13 16:47:26 +00:00
rsesek 37dfe0c295 Rework build/mac/tweak_info_plist.py to not rely on environment variables.
Instead, pass the --plist to tweak on the command line. This way the
script can be used in both GYP and GN builds.

There is one behavior change: previously passing --keystone=1 would only
insert the Keystone keys if env['CONFIGURATION']=='Release' and after this
change, the keys will be added regardless of the build configuration if the
flag is passed.

BUG=297668

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

Cr-Original-Commit-Position: refs/heads/master@{#386854}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: adf34911dcb45fab4d7e13c4d7ef43e3dea840eb
2016-04-12 23:21:23 +00:00
justincohen e1a369d93c Add mac toolchain script support to find_sdk script.
`buildbot_chrome_nacl_stage.py` calls directly into find_sdk.py, add support for
mac toolchain there.

BUG=474373
TBR=thakis@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#384110}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e47e4cb728589eced95417914a35b84a0f724e22
2016-03-30 22:10:35 +00:00
Hans Wennborg bf6edcac74 Make copy_asan_runtime_dylib.sh handle Clang version number changes
There's no need to use 'find' here; the script should ask update.py
for the version number.

BUG=none
R=thakis@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#369464}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 439cedca2e412836e410e8b9b22679d0d4c74452
2016-01-14 18:14:26 +00:00
Hans Wennborg 5471225cdc Use update.py --print-clang-version in build/mac/asan.gyp
This matches what we do in build/win/asan.gyp and avoids the problem
that the wildcard can match multiple directories, which can happen
when the version changes.

BUG=none
R=thakis@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#369268}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e5c134116a97f8c6dfc580de2a3ae9d3d74a9dfd
2016-01-13 21:02:13 +00:00
mark 8fc5450c1c mac: Remove vestiges of 32-bit deprecation
32-bit support was dropped in Chrome 39, a year ago. It seems like a
good time to stop carrying this stuff around.

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

Cr-Original-Commit-Position: refs/heads/master@{#360153}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c5af6de2b6499645244d173f841b4013f3c60a56
2015-11-17 20:39:58 +00:00
kerrnel bbaeb19395 Delete dead code related to the removed helper apps.
It is no longer clear if we will be adding more helper variants in the
near future. This change removes any additional dead code related to the
helper apps.

BUG=520680

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

Cr-Original-Commit-Position: refs/heads/master@{#349970}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0c619649467faa44c72db1ddfabbf59e535b4d31
2015-09-21 18:40:28 +00:00
kerrnel 1f1fe76fd0 Remove the unused helper apps on OS X.
On OS X, there are currently Google Chrome Helper EH.app and
Google Chrome Helper NP.app, which are no longer used with the deprecation
of NPAPI. This changes removes the helpers, both from the build process,
and any code referring to them.

The make_more_helpers.sh is now a no-op, but is left in because it will
soon be needed for the Library Validation feature (to generate
Google Chrome Helper NLV.app).

BUG=520680

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

Cr-Original-Commit-Position: refs/heads/master@{#347235}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f5ed554ef814418d64510aa18b43b69315e40814
2015-09-03 20:53:47 +00:00
sbc e6f355f30d Handle missing required arg in build/mac/find_sdk.py
Review URL: https://codereview.chromium.org/1134303012

Cr-Original-Commit-Position: refs/heads/master@{#341756}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 99b518907669fbb280c764c5641a95361d43fdea
2015-08-04 18:54:02 +00:00
yoz 4678044760 Fix tweak_info_plist's TOP path to be found relative to itself rather than the includer's SRCROOT.
This allows tweak_info_plist.py to be used from .gyp files that are more than 1 level deep.

BUG=399363

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

Cr-Original-Commit-Position: refs/heads/master@{#303047}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9c23fa4e917e30de4d5d89292fd26e8eb70b8898
2014-11-06 18:25:27 +00:00
thestig 81d63b6495 Cleanup: Remove trailing whitespaces in gyp files.
NOTRY=true

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

Cr-Original-Commit-Position: refs/heads/master@{#300140}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a703ee15fdcaa713ddf5bca12760e007090737e3
2014-10-17 19:20:04 +00:00
ukai 035875b578 find_sdk.py: pylint clean
W0105: 16,-1: String statement has no effect
C0323: 45,4:main: Operator not followed by a space
    print >>sys.stderr, out
           ^

BUG=

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

Cr-Original-Commit-Position: refs/heads/master@{#293294}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9520d408282a2a498ef6fc20f9abacfb899abbe7
2014-09-04 13:59:25 +00:00
rsesek@chromium.org 2d0af1aabc [Mac] Set CFBundleDocumentTypes for PDF in the Info.plist directly.
This was previously added at build-time using tweak_info_plist.py, but now that
Chromium includes Pdfium, Chromium.app and Chrome.app both always support PDF.

TEST=Chromium and Chrome are both registered to open PDF documents.
R=thakis@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@275088 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-06-05 14:10:22 +00:00
rsesek@chromium.org 8c532db126 Fix build/mac/edit_xibs.sh.
This removes duplicate files from google_toolbox_for_mac.gyp and fixes up the
script to include common.gypi implicitly.

R=mark@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@267199 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-30 14:36:03 +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
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
mad@chromium.org d822f25af7 Moving version script and gypi file to build\util.
BUG=343792

OK, it's been almost a week now, with regular pings to OWNERs, so I guess it's OK to TBR... It's only Gyp/script changes anyway... Feel free to uncheck the CQ box if you disagree...

TBR=beng@chromium.org, darin@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@252481 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-21 03:14:02 +00:00
brettw@chromium.org a2d0332bf1 Get the proper Mac SDK path for the GN build.
This gets the path from xcodebuild rather than hardcoding it in the .gn files.

R=thakis
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@245403 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-17 01:05:20 +00:00
mark@chromium.org 69fef49fce Expand the Keystone tag to contain the system's CPU's bitness and whether a
full installer is desired.

Formerly, the tag identified only the channel that Chrome was on. The tag is
being enhanced to detect the CPU's bitness (adding "-32bit" for 32-bit-only,
non-64-bit-capable CPUs) and whether a full (as opposed to binary diff patch)
update is requested (adding "-full").

CPU bitness detection ought to be a feature of Keystone, but Keystone uses the
NXGetLocalArchInfo to determine the CPU type, and winds up always reporting
"i486". The "-32bit" tag suffix will be present whenever the
"hw.cpu64bit_capable" sysctl name is not found or has value 0. This enables
proper detection of users who are capable of running 64-bit Chrome on the
server side.

When a binary diff patch update application fails in dirpatcher, typically the
result of modifications made to existing installations, the "-full" tag suffix
will be set. On a subsequent update attempt, the server can detect this value
and provide the client with a full updater package, which does not depend on
the existing installation. The "-full" tag suffix is cleared on successful
update installation.

BUG=18323,54047,225352,303280,316916
R=thakis@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@242964 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-03 23:37:25 +00:00
glider@chromium.org 73a294f1b5 Handle both OSX and iOS Simulator runtimes in the ASan postbuild script.
Also fixed a TODO: now the script bails out if a non-ASan executable is passed to it.

BUG=228243
R=thakis@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@236738 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-22 09:25:20 +00:00
mark@chromium.org 0b1f2af283 Fix build for xcodebuild from Xcode 5:
- In Xcode 5, ARCHS defaults to x86_64 instead of i386. Use i386 for the
   32-bit Chrome build.
 - In Xcode 5, otool is no longer available in DEVELOPER_BIN_DIR. Run otool
   via xcrun as in r227787.

BUG=280362
R=thakis@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@232181 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-31 18:40:00 +00:00
mmoss@chromium.org bb1209d133 Don't hard-code python path.
Recently upgraded Macs have Python 2.7 in /usr/local/bin and the
hard-coded path is breaking the compile step.

R=mark@chromium.org
BUG=304948

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@229375 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-18 12:22:09 +00:00
mark@chromium.org dffc27477a Run strip via xcrun.
In Xcode 5, strip is no longer in SYSTEM_DEVELOPER_BIN_DIR. It is only in
DT_TOOLCHAIN_DIR. I also checked Xcode 4.6.1 and found that DT_TOOLCHAIN_DIR
was also set there, and strip is in both SYSTEM_DEVELOPER_BIN_DIR and
DT_TOOLCHAIN_DIR in that version.

Environment variables as set when Xcode is installed at /Applications/Xcode.app:

SYSTEM_DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/usr/bin
DT_TOOLCHAIN_DIR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefa
ult.xctoolchain

xcrun should be able to find strip without having to resort to manual
environment interpretation.

R=thakis@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@227787 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-09 20:07:24 +00:00
mark@chromium.org a8aa673f38 Revert 227347 "Run strip via xcrun."
When the SDK is set to something that Xcode doesn't know about (such as 10.6),
xcrun doesn't work correctly.

mark@cougar bash$ xcrun strip
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: no files specified
mark@cougar bash$ SDKROOT=/SDKs/MacOSX10.6.sdk xcrun strip
xcodebuild: error: SDK "/SDKs/MacOSX10.6.sdk" cannot be located.
xcrun: error: unable to find utility "strip", not a developer tool or in PATH

> Run strip via xcrun.
> 
> In Xcode 5, strip is no longer in SYSTEM_DEVELOPER_BIN_DIR. It is only in
> DT_TOOLCHAIN_DIR. I also checked Xcode 4.6.1 and found that DT_TOOLCHAIN_DIR
> was also set there, and strip is in both SYSTEM_DEVELOPER_BIN_DIR and
> DT_TOOLCHAIN_DIR in that version.
> 
> Environment variables as set when Xcode is installed at /Applications/Xcode.app:
> 
> SYSTEM_DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/usr/bin
> DT_TOOLCHAIN_DIR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefa
> ult.xctoolchain
> 
> xcrun should be able to find strip without having to resort to manual
> environment interpretation.
> 
> R=thakis@chromium.org
> 
> Review URL: https://codereview.chromium.org/24352006

TBR=mark@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@227524 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-08 16:33:19 +00:00
mark@chromium.org 4240495e0f Run strip via xcrun.
In Xcode 5, strip is no longer in SYSTEM_DEVELOPER_BIN_DIR. It is only in
DT_TOOLCHAIN_DIR. I also checked Xcode 4.6.1 and found that DT_TOOLCHAIN_DIR
was also set there, and strip is in both SYSTEM_DEVELOPER_BIN_DIR and
DT_TOOLCHAIN_DIR in that version.

Environment variables as set when Xcode is installed at /Applications/Xcode.app:

SYSTEM_DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/usr/bin
DT_TOOLCHAIN_DIR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefa
ult.xctoolchain

xcrun should be able to find strip without having to resort to manual
environment interpretation.

R=thakis@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@227347 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-07 21:26:40 +00:00
rsesek@chromium.org ddacdfd731 Fix build/mac/edit_xibs.sh for gyp_main.py
R=thakis@chromium.org
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/23717053

git-svn-id: http://src.chromium.org/svn/trunk/src/build@223411 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-09-16 21:07:08 +00:00
glider@chromium.org f10e98618f Handle iOS gtest app bundles in copy_asan_runtime_dylib.sh
Unlike Chromium.app, gtest binaries contain the executable right on the first level
(e.g. base_unittests.app/base_unittests), so the ASan runtime can be put right into the bundle.

R=stuartmorgan@chromium.org, thakis@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@209647 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-02 08:17:25 +00:00
jeremy@chromium.org 33b6709566 Cleanup old TODO in tweak_info_plist.py
Remove an unneeded call now that m25 is released.

BUG=None
TEST=None
TBR=thakis

Review URL: https://chromiumcodereview.appspot.com/15897018

git-svn-id: http://src.chromium.org/svn/trunk/src/build@205606 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-11 19:42:53 +00:00
glider@chromium.org 3920cdb878 Re-land https://codereview.chromium.org/11642018/: Add a postbuild action for executables built with ASan on Mac OS.
The action will copy the ASan dynamic runtime to the output dir and into every
bundled executable being built.

Unlike the previous change, this one does not touch build/all.gyp, since our target
doesn't need to be built when building 'All'.

BUG=170629
TBR=thakis,mark
Review URL: https://codereview.chromium.org/12685006

git-svn-id: http://src.chromium.org/svn/trunk/src/build@187566 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-12 11:56:31 +00:00
glider@chromium.org 6b07d49787 Revert 187297
> Add a postbuild action for executables built with ASan on Mac OS.
> The action will copy the ASan dynamic runtime to the same dir where
> the executable is.
> 
> BUG=170629
> Review URL: https://codereview.chromium.org/11642018

TBR=glider@chromium.org
Review URL: https://codereview.chromium.org/12440020

git-svn-id: http://src.chromium.org/svn/trunk/src/build@187309 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-11 17:30:53 +00:00
glider@chromium.org d65fd9f99f Add a postbuild action for executables built with ASan on Mac OS.
The action will copy the ASan dynamic runtime to the same dir where
the executable is.

BUG=170629
Review URL: https://codereview.chromium.org/11642018

git-svn-id: http://src.chromium.org/svn/trunk/src/build@187297 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-11 15:30:18 +00:00
thakis@chromium.org 23582c945f mac: Get revision information from LASTCHANGE like windows and linux do
BUG=161488
TEST=Check that Chromium.app/Contents/Info.plist still gets the right SCMRevision after syncing and building.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@170085 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-28 23:04:43 +00:00
thakis@chromium.org b4977babf8 mac: Don't write SCMPath into Info.plist
The key isn't used by anything, the information is redudant with
the version number, the other ports can get by without it, and
this makes it easier to move mac to the LASTCHANGE file.

BUG=161488

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@170055 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-28 21:16:16 +00:00
jochen@chromium.org f869fa5d67 Add an option to specify the versio to tweak_info_plist, and use it to set the version of content_shell
This breaks the dependency on chrome/VERSION to build content shell on mac

BUG=156242


Review URL: https://chromiumcodereview.appspot.com/11367095

git-svn-id: http://src.chromium.org/svn/trunk/src/build@166044 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-05 21:57:28 +00:00
mark@chromium.org 7899144fdc When doing an official build, don't bail out if Xcode doesn't know about the
SDK to verify when an SDK path is set. The SDK path supersedes whatever
find_sdk is supposed to find.

Also: Reorganize the SDK and deployment target variables to be scoped more
appropriately. Add a mac_sdk_min variable to set the main argument to
find_sdk.


Review URL: https://chromiumcodereview.appspot.com/11068023

git-svn-id: http://src.chromium.org/svn/trunk/src/build@160536 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-06 00:46:29 +00:00