aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools/xcode
Commit message (Collapse)AuthorAge
* Remove swiftstdlibtoolwrapperGravatar thomasvl2018-05-14
| | | | | | | It is a left over from long ago, and nothing should be using it as the swift support is now via skylark rules and no longer native code. PiperOrigin-RevId: 196541787
* Remove unused files.Gravatar kaipi2018-03-14
| | | | PiperOrigin-RevId: 189023695
* Various Shell Script Fixes and Improvements - Part OneGravatar Androbin2017-11-29
| | | | | | | | see #4023 Closes #4051. PiperOrigin-RevId: 177279457
* Move xcrunwrapper and libtool to third_party/bazel/tools/objc from their ↵Gravatar cparsons2017-04-14
| | | | | | | | | xcode src directories There's no value in having these copied over from src/tools to tools/objc separately. RELNOTES: None. PiperOrigin-RevId: 153060955
* Remove unused variableGravatar dmishe2017-04-13
| | | | PiperOrigin-RevId: 152951579
* Make swift-stdlib-tool less verboseGravatar Dmitry Shevchenko2017-03-28
| | | | | | -- PiperOrigin-RevId: 151322384 MOS_MIGRATED_REVID=151322384
* Rollback of commit 701ff40ad9d1b6c1e3beb52064e2ae2fe27b7e29.Gravatar Dmitry Shevchenko2017-03-24
| | | | | | | | | | | | | | | | | | *** Reason for rollback *** No longer needed, as the original tool was re-introduced in Xcode 8.3 beta 5 *** Original change description *** Introduce swift-stdlib-tool replacement * swift-stdlib-tool is a utility that, given a binary, walks its dynamic library deps graph and picks everything that is used by Swift runtime. This tool is being removed from Xcode 8.3, hence the replacement. * The new tool has a different command line interface, but keeps backwards compatibility with native Bazel code through changes in the wrapper script. The wrapper script is still needed to handle xcrun ENV stuff. -- PiperOrigin-RevId: 151052031 MOS_MIGRATED_REVID=151052031
* Introduce swift-stdlib-tool replacementGravatar Dmitry Shevchenko2017-03-10
| | | | | | | | | | * swift-stdlib-tool is a utility that, given a binary, walks its dynamic library deps graph and picks everything that is used by Swift runtime. This tool is being removed from Xcode 8.3, hence the replacement. * The new tool has a different command line interface, but keeps backwards compatibility with native Bazel code through changes in the wrapper script. The wrapper script is still needed to handle xcrun ENV stuff. -- PiperOrigin-RevId: 149691879 MOS_MIGRATED_REVID=149691879
* Speed up bundling by constructing an uncompressed ZIP from the filesGravatar Googler2017-01-11
| | | | | | | | | being bundled instead of copying them into the directory structure first. -- PiperOrigin-RevId: 144133387 MOS_MIGRATED_REVID=144133387
* Better error messaging in xcrunwrapper and environment_plist when the ↵Gravatar Chris Parsons2016-12-09
| | | | | | | | xcode/SDK pair is unavailble. -- PiperOrigin-RevId: 141554441 MOS_MIGRATED_REVID=141554441
* Remove obsolete code from Bazel tools.Gravatar Dmitry Shevchenko2016-10-18
| | | | | -- MOS_MIGRATED_REVID=136400800
* Roll forward of commit deeeb31f8ba0f196fbc9ca2a177d59d57ea50b32.Gravatar Dmitry Shevchenko2016-10-05
| | | | | | | | | | | | | | | | | | | | | | * Fixed breakage in shell tools with an old bazel binary. Rollback of commit deeeb31f8ba0f196fbc9ca2a177d59d57ea50b32. *** Reason for rollback *** Breaks builds with current blaze *** Original change description *** Add a way to select non-default Xcode toolchain * Adds a flag --xcode_toolchain which sets TOOLCHAINS env variable for xcrun. * Updates swift_library to work with this flag when selecting Swift runtime location. * By default the flag has a null value and is not set in env. -- MOS_MIGRATED_REVID=135238820
* Rollback of commit deeeb31f8ba0f196fbc9ca2a177d59d57ea50b32.Gravatar Dmitry Shevchenko2016-10-04
| | | | | | | | | | | | | | | | | *** Reason for rollback *** Breaks builds with current blaze *** Original change description *** Add a way to select non-default Xcode toolchain * Adds a flag --xcode_toolchain which sets TOOLCHAINS env variable for xcrun. * Updates swift_library to work with this flag when selecting Swift runtime location. * By default the flag has a null value and is not set in env. -- MOS_MIGRATED_REVID=135053864
* Add a way to select non-default Xcode toolchainGravatar Dmitry Shevchenko2016-10-04
| | | | | | | | | * Adds a flag --xcode_toolchain which sets TOOLCHAINS env variable for xcrun. * Updates swift_library to work with this flag when selecting Swift runtime location. * By default the flag has a null value and is not set in env. -- MOS_MIGRATED_REVID=135033093
* Modify libtool wrapper script to ensure that archive inputs are not modified ↵Gravatar Chris Parsons2016-09-30
| | | | | | | in the way that object inputs are -- MOS_MIGRATED_REVID=134659110
* Fix dependency on libtool's helper script make_hashed_objlist.py.Gravatar Chris Parsons2016-09-27
| | | | | | | This should now get appropriately embedded into @bazel_tools. -- MOS_MIGRATED_REVID=134319465
* Move hash computation from bash script to a python script because calling ↵Gravatar Googler2016-09-26
| | | | | | | md5 repeatedly from bash is too slow. -- MOS_MIGRATED_REVID=134087524
* Compute hash of path instead, then create symlink only if it doesn't exist.Gravatar Googler2016-09-20
| | | | | -- MOS_MIGRATED_REVID=133594609
* Changed stdredirect.dylib build so that it is codesigned using an adhocGravatar Dave MacLachlan2016-09-19
| | | | | | | | codesignature. This appears to be sufficient to allow the Xcode 8 build system to trust it. -- MOS_MIGRATED_REVID=133426675
* Fix indentation in StdRedirect.cGravatar Googler2016-09-07
| | | | | -- MOS_MIGRATED_REVID=132423268
* Add export ZERO_AR_DATE=1 to libtool.sh to make the output hermetic, and ↵Gravatar Chris Parsons2016-08-16
| | | | | | | touch the output of libtool to avoid hitting a bug in ld. -- MOS_MIGRATED_REVID=130093791
* Remove all temporary detrius upon exiting objc action scripts.Gravatar Peter Schmitt2016-08-11
| | | | | -- MOS_MIGRATED_REVID=129867284
* Roll forward of commit 05c0bd286b3802ad3d7faf48bc19e86929a9cf6d:Gravatar Dmitry Shevchenko2016-07-29
| | | | | | | | | Include SwiftSupport directory into the IPA when an app contains Swift. * To pass App Store validation, an app that contains Swift code must have a SwiftSupport directory at the root of the IPA. -- MOS_MIGRATED_REVID=128706028
* Rollback of commit 75714b0d6e65905e41da8415ca3e7ec101575d51.Gravatar Dmitry Shevchenko2016-07-28
| | | | | | | | | | | | | | | *** Reason for rollback *** Broke Play Books tests *** Original change description *** Include SwiftSupport directory into the IPA when an app contains Swift. * To pass App Store validation, an app that contains Swift code must have a SwiftSupport directory at the root of the IPA. -- MOS_MIGRATED_REVID=128627984
* Include SwiftSupport directory into the IPA when an app contains Swift.Gravatar Dmitry Shevchenko2016-07-28
| | | | | | | * To pass App Store validation, an app that contains Swift code must have a SwiftSupport directory at the root of the IPA. -- MOS_MIGRATED_REVID=128614279
* Export xcode_locator's source file under tools/osx/ to make it available for ↵Gravatar Chris Parsons2016-07-21
| | | | | | | reference by future repository rules. Removes the xcode-locator binary file under tools/objc. Originally, the precompiled binary was going to be referenced, but it's easier to build from source in the repository rule. -- MOS_MIGRATED_REVID=128063694
* Speed up resetting file/directory dates to zip epoch by 100x. Gravatar Googler2016-06-27
| | | | | | | | | | | | | It is better to use the {} + as it passes the file list to touch instead of calling touch command once for each file. This will reduce the number of times touch process is created and massively speed up the script From man page -exec utility [argument ...] {} + Same as -exec, except that ``{}'' is replaced with as many pathnames as possible for each invocation of utility. This behaviour is similar to that of xargs(1). -- MOS_MIGRATED_REVID=125821677
* "xcode_locator -v" dedupes multiple copies of the same xcode version ↵Gravatar Chris Parsons2016-06-24
| | | | | | | | | installed on the host, and appends DEVELOPER_DIR to the specification on each line. This should be the last of what is needed from this option, in order to launch local generated xcode_config and xcode_version targets in skylark. -- MOS_MIGRATED_REVID=125725500
* Move libtool-wrapper symlinking logic from xcrunwrapper to libtool script.Gravatar Chris Parsons2016-06-15
| | | | | -- MOS_MIGRATED_REVID=124831722
* xcode_locator supports -v mode, which outputs only system-supported xcode ↵Gravatar Chris Parsons2016-06-09
| | | | | | | | | versions and their aliases in easily-parsed format This is convenient as skylark does not have extensive string-parsing (regex) features, and when xcode-locator is invoked from a skylark rule, this format is cleanest and contains only relevant info. -- MOS_MIGRATED_REVID=124372740
* Rollback of commit 6eea9bd27fc88129ccb2d74c1b550e83ebf39f17.Gravatar Googler2016-06-07
| | | | | | | | | | | | | *** Reason for rollback *** Broke Mac local builds *** Original change description *** Add export ZERO_AR_DATE=1 to libtool.sh removing possible timestamp issues. -- MOS_MIGRATED_REVID=124258787
* Add export ZERO_AR_DATE=1 to libtool.sh removing possible timestamp issues.Gravatar Googler2016-06-07
| | | | | -- MOS_MIGRATED_REVID=124240308
* Move xcode-locator into src/tools packages, defining it as a target under ↵Gravatar Chris Parsons2016-05-30
| | | | | | | @bazel_tools. Currently the tool still remains in embedded_binaries, but we will migrate away from that: Eventually it can simply live just under @bazel_tools. -- MOS_MIGRATED_REVID=123436822
* libtool wrapper script to isolate the unfortunate hacks we must make to get ↵Gravatar Chris Parsons2016-05-24
| | | | | | | around apple's buggy libtool tool -- MOS_MIGRATED_REVID=123024674
* Attempt 3 at deduping libtool inputs with the same basename. Libtool wrapper ↵Gravatar Chris Parsons2016-05-06
| | | | | | | overrides old previous symlinks it created. -- MOS_MIGRATED_REVID=121609372
* Rollback of commit c9f2881f2540a7aa7c5f6d76f4bdad5d35d1c3b6.Gravatar Googler2016-05-04
| | | | | | | | | | | | | *** Reason for rollback *** Seems to have broken exoblaze builds. https://paste.googleplex.com/5185376662585344 happens when rebuilding after a trivial change (removed a single method). *** Original change description *** Rollforward of "Workaround for duplicate input basename bug in apple's libtool", with regex fix -- MOS_MIGRATED_REVID=121483994
* Resolve ibtoolwrapper at the right pathGravatar Kristina Chodorow2016-05-04
| | | | | | | | | | | | | | | | | | | | | | | Previously, bazel_tools would be under whatever.runfiles/workspace-name/external/bazel_tools. However, we allowed "" as the workspace name (and Bazel's workspace name was "") so a lot of scripts started assuming that bazel_tools would be at whatever.runfiles/external/bazel_tools. Going forward, the runfiles tree looks like: whatever.runfiles/ __main__/ ... bazel_tools/ tools/ objc/ ... some_other_repo/ ... So all of the repos are on the same "level" of the directory tree. This lets you refer to runfiles the same way (x.runfiles/repo/path/to/your/thing) whether you're running locally or importing it as an external repository (see https://github.com/bazelbuild/bazel/wiki/Updating-the-runfiles-tree-structure for more detail than you probably care about). Fixes #1227. -- MOS_MIGRATED_REVID=121435276
* Rollforward of "Workaround for duplicate input basename bug in apple's ↵Gravatar Chris Parsons2016-05-03
| | | | | | | libtool", with regex fix -- MOS_MIGRATED_REVID=121390817
* Rollback of commit 910a907e643d3b1320c9ebd6b2b339848089acce.Gravatar Chris Parsons2016-05-03
| | | | | -- MOS_MIGRATED_REVID=121291329
* Workaround for duplicate input basename bug in apple's libtool.Gravatar Chris Parsons2016-05-03
| | | | | | | Creates a symlink for each input file to libtool, with a md5 hash suffix, and passes these symlinks instead. -- MOS_MIGRATED_REVID=121279266
* Remove unnecessary bashism.Gravatar Julio Merino2016-03-03
| | | | | | | | | The run_tests.sh script uses /bin/sh, not bash. From a cursory look, it seems that this script uses a single bash-specific feature so drop it in favor of the standard syntax. -- MOS_MIGRATED_REVID=116243391
* Add a bazel-srcs target to the top-level package containing all Bazel sourcesGravatar Damien Martin-Guillerez2016-02-29
| | | | | | | | This target include all non tests targets of Bazel to do integration tests of bootstrapping. -- MOS_MIGRATED_REVID=115830741
* Uses xcodebuild's and xcrun's -version flag in order to generate the variablesGravatar Anastasios Kakalis2016-02-25
| | | | | | | | | needed for the Info.plist. RELNOTES: -- MOS_MIGRATED_REVID=115564028
* Have xcode action wrappers use $TMPDIR if using mktempGravatar Googler2016-02-23
| | | | | -- MOS_MIGRATED_REVID=115373672
* Base tools/objc tool script deps off of their current locationGravatar Chris Parsons2016-02-11
| | | | | -- MOS_MIGRATED_REVID=114365733
* Now that rules find their tools via runfiles, remove unneeded dependencies ↵Gravatar Dave MacLachlan2016-02-04
| | | | | | | | | in rules/tests and move them into the build files. Fix up environment_plist so it works like the other scripts. -- MOS_MIGRATED_REVID=113799298
* Use runfiles-relative paths for tools/objc shell scriptsGravatar Chris Parsons2016-01-20
| | | | | -- MOS_MIGRATED_REVID=112478681
* Rollback of commit ac6ed79e1a3fa6b0ca91657b28e2a35f7e49758c.Gravatar Damien Martin-Guillerez2016-01-11
| | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Roll-forward with fix *** Original change description *** Automated [] rollback of []. *** Reason for rollback *** Broke tests on Mac: https://google.com/url?sa=D&q=http%3A%2F%2Fci.bazel.io%2Fjob%2FBazel%2FJAVA_VERSION%3D1.8%2CPLATFORM_NAME%3Ddarwin-x86_64%2F269%2Fconsole *** Original change description *** Speed-up bootstrap on OS X by removing tool compilation. -- MOS_MIGRATED_REVID=111833617
* Rollback of commit b9f401b97590cb95e76efb0ba8bf5319cfe93108.Gravatar Dmitry Lomov2015-12-22
| | | | | | | | | | | | | *** Reason for rollback *** Broke tests on Mac: https://google.com/url?sa=D&q=http%3A%2F%2Fci.bazel.io%2Fjob%2FBazel%2FJAVA_VERSION%3D1.8%2CPLATFORM_NAME%3Ddarwin-x86_64%2F269%2Fconsole *** Original change description *** Speed-up bootstrap on OS X by removing tool compilation. -- MOS_MIGRATED_REVID=110785493
* Speed-up bootstrap on OS X by removing tool compilation.Gravatar Damien Martin-Guillerez2015-12-21
| | | | | -- MOS_MIGRATED_REVID=110704529