aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/apple
Commit message (Collapse)AuthorAge
* Fills out some macOS support needed for the bundler.Gravatar Googler2017-02-02
| | | | | | | | | | | | | | | | | | This CL also changes some names from "MacOSX" to "macOS", such as the command line options, internal constants/enum values, and platform constants that are accessible from Skylark but are not let being used. It also adds some flags that are needed for completeness, like macos_minimum_os and macos_cpus. This change intentionally omits a few reference (such as "default_macosx_sdk_version" in "xcode_version") that are currently used in BUILD files in order to prevent those from breaking--I'll try to attack those later. This CL also does *not* add compiling/linking support for macOS. -- PiperOrigin-RevId: 146250799 MOS_MIGRATED_REVID=146250799
* Remove apple_dynamic_library rule.Gravatar Chris Parsons2017-02-01
| | | | | | -- PiperOrigin-RevId: 146150539 MOS_MIGRATED_REVID=146150539
* When the apple crosstool transition is being used (set with ↵Gravatar Cal Peyser2017-01-30
| | | | | | | | --apple_crosstool_transition), the APPLE_CROSSTOOL distinguisher does not modify output directory. -- PiperOrigin-RevId: 145999133 MOS_MIGRATED_REVID=145999133
* Expands the number of attributes that XcodeVersionProperties provides to ↵Gravatar Sergio Campama2017-01-30
| | | | | | | | Skylark. -- PiperOrigin-RevId: 145836240 MOS_MIGRATED_REVID=145836240
* Set defaults for xcode_version and *_sdk_version flags based on the ↵Gravatar Chris Parsons2017-01-26
| | | | | | | | information available in the xcode config -- PiperOrigin-RevId: 145597372 MOS_MIGRATED_REVID=145597372
* Introduces --apple_crosstool_transition, which turns controls the activation ofGravatar Cal Peyser2017-01-20
| | | | | | | | the AppleCrosstoolTransition. -- PiperOrigin-RevId: 145006581 MOS_MIGRATED_REVID=145006581
* Set correct ENV variables for macOS builds.Gravatar Dmitry Shevchenko2017-01-19
| | | | | | | | * This allows xcrunwrapper to set the correct SDKROOT when building darwin targets. -- PiperOrigin-RevId: 144874291 MOS_MIGRATED_REVID=144874291
* AppleCrosstoolTransition is also applied to any incoming edge to a rule classGravatar Cal Peyser2017-01-13
| | | | | | | | | | | that may contain objc source. This only works with dynamic configurations turned on. This ensures that objc dependencies of non-objc targets use the apple crosstool. -- PiperOrigin-RevId: 144384483 MOS_MIGRATED_REVID=144384483
* Have the "version_min" build variable be available to Apple C/C++ ↵Gravatar Googler2017-01-13
| | | | | | | | compilation actions. -- PiperOrigin-RevId: 144356912 MOS_MIGRATED_REVID=144356912
* Add SwiftConfigurationGravatar Dmitry Shevchenko2017-01-12
| | | | | | | | * This new configuration allows for passthrough of Swift-specific options into Skylark for further consumption by swift_library. It also keeps things nicely isolated until we get a way to create configurations in Skylark directly. -- PiperOrigin-RevId: 144210267 MOS_MIGRATED_REVID=144210267
* Expose DEVELOPER_DIR to SkylarkGravatar Dmitry Shevchenko2017-01-10
| | | | | | | | * Also make constants private since they both have getters now. -- PiperOrigin-RevId: 143973536 MOS_MIGRATED_REVID=143973536
* Manually add periods to documentation strings where needed.Gravatar John Cater2017-01-03
| | | | | | | | -- Change-Id: I9ec3209a69ba5a51943b334f278ba93d67d4f9f4 Reviewed-on: https://cr.bazel.build/8090 PiperOrigin-RevId: 143470915 MOS_MIGRATED_REVID=143470915
* Expose apple.xcode_version() to skylark.Gravatar Chris Parsons2016-12-28
| | | | | | -- PiperOrigin-RevId: 143036358 MOS_MIGRATED_REVID=143036358
* Introduce --apple_crosstool_top, which sets the crosstool for sources in ↵Gravatar Cal Peyser2016-12-23
| | | | | | | | objc_*/apple_*/ios_* targets and their dependencies. -- PiperOrigin-RevId: 142793925 MOS_MIGRATED_REVID=142793925
* Rollback of commit 87fd5baeaa3f983bbec0c0dbc7b16eb52cf2267f.Gravatar Tobias Werth2016-12-22
| | | | | | -- PiperOrigin-RevId: 142758502 MOS_MIGRATED_REVID=142758502
* Introduce --apple_crosstool_top, which sets the crosstool for sources in ↵Gravatar Cal Peyser2016-12-22
| | | | | | | | objc_*/apple_*/ios_* targets and their dependencies. -- PiperOrigin-RevId: 142702735 MOS_MIGRATED_REVID=142702735
* Rollback AppleCrosstoolChangeGravatar Cal Peyser2016-12-22
| | | | | | -- PiperOrigin-RevId: 142692398 MOS_MIGRATED_REVID=142692398
* Introduce --apple_crosstool_top, which sets the crosstool for sources in ↵Gravatar Cal Peyser2016-12-22
| | | | | | | | objc_*/apple_*/ios_* targets and their dependencies. -- PiperOrigin-RevId: 142673622 MOS_MIGRATED_REVID=142673622
* Remove --experimental_disable_native_swift_rules flag.Gravatar Dmitry Shevchenko2016-12-21
| | | | | | -- PiperOrigin-RevId: 142666176 MOS_MIGRATED_REVID=142666176
* Enables the propagation of the XcodeVersionProperties provider for reading ↵Gravatar Sergio Campama2016-12-13
| | | | | | | | from Skylark. -- PiperOrigin-RevId: 141912220 MOS_MIGRATED_REVID=141912220
* Remove Swift support from native rulesGravatar Dmitry Shevchenko2016-11-24
| | | | | -- MOS_MIGRATED_REVID=140068224
* Bazel exports environment variable values to apple toolchains as buildGravatar Cal Peyser2016-11-23
| | | | | | | | | | variables. Once this change is released, client CROSSTOOLs can implement environment variables in a feature using an env_set. -- MOS_MIGRATED_REVID=140027562
* Add bitcode linker flagsGravatar Dmitry Shevchenko2016-11-18
| | | | | | | | | | * Adds a link time option to embed bitcode, in addition to the existing compile time option. * This does not handle Bitcode symbols, just hides them. RELNOTES: -- MOS_MIGRATED_REVID=139520095
* Fix a bunch of typosGravatar Jon Brandvein2016-11-10
| | | | | -- MOS_MIGRATED_REVID=138757881
* Pad apple SDK version number strings to ensure there are at least two ↵Gravatar Chris Parsons2016-11-02
| | | | | | | | | components. In other words, ensure that a version number such as "10" is always padded as "10.0" when describing an apple sdk version number. -- MOS_MIGRATED_REVID=137836480
* Rollback of commit e6191f7209ebf3f67480bc7aa9db5ac58beb2156.Gravatar Damien Martin-Guillerez2016-10-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Roll-forward with fix. Tested with `bazel build src:srcs //src/test/...` using a bootstrapped bazel. Fixes #1923. RELNOTES[INC]: Non test-only targets can no longer depends on test-only targets. *** Original change description *** Automated [] rollback of commit a9f20b0d6459d395444c45cf5e94a899f3443633. *** Reason for rollback *** Broke Bazel CI: ERROR: /home/ci/workspace/Bazel/JAVA_VERSION/1.8/PLATFORM_NAME/linux-x86_64/src/BUILD:284:1: in filegroup rule //src:srcs: non-test target '//src:srcs' depends on testonly target '//src/java_tools/junitrunner/java/com/google/testing/junit/junit4:srcs' and doesn't have testonly attribute set. ERROR: Analysis of target '//scripts/packages:packages' failed; build aborted. http://ci.bazel.io/view/Bazel%20b... *** -- MOS_MIGRATED_REVID=136589937
* 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
* Use minimum OS flags for watchOS and tvOS actions.Gravatar Chris Parsons2016-09-30
| | | | | | | | | | | | Also: - Move minimum os information into AppleConfiguration - Update watchos and tvos minimum version defaulting behavior such that, if unspecified in flags, the minimum OS is equal to the SDK version. - Expose Apple Platform to apple_common in skylark -- MOS_MIGRATED_REVID=134712763
* Add a flag to disable native Swift support.Gravatar Dmitry Shevchenko2016-09-29
| | | | | | | | * When set, this flag will cause any objc_library or objc_binary rule with Swift sources to error out. The native functionality is deprecated. -- MOS_MIGRATED_REVID=134583636
* Native declared providers are automatically exported.Gravatar Dmitry Lomov2016-09-26
| | | | | -- MOS_MIGRATED_REVID=134221884
* Expose AppleBitcodeMode to SkylarkGravatar Dmitry Shevchenko2016-09-23
| | | | | -- MOS_MIGRATED_REVID=134011406
* Add minimum OS, simulator version, and simulator device flags for tvOS and ↵Gravatar Googler2016-09-20
| | | | | | | | | | | watchOS. Currently, the minimum watchOS version is always fixed to the SDK version being used, which may not always be desired (for example, building with the 3.0 SDK but support running on 2.2). The watch flags aren't being used yet (nor are the tvOS flags), but will pave the way for us to fix that. The necessary CROSSTOOL support is in unknown commit. -- MOS_MIGRATED_REVID=133602832
* Expose some platform-related types/methods to Skylark.Gravatar Googler2016-09-13
| | | | | | | RELNOTES: Exposes the is_device field on Apple platform objects and adds the apple_common.platform_type(name) method to retrieve a platform_type value that can be passed to methods like the Apple fragment's multi_arch_platform. -- MOS_MIGRATED_REVID=132918883
* xcode_configure repository rule for determining locally installed versions ↵Gravatar Chris Parsons2016-09-01
| | | | | | | | | | | of xcode to select between, relaxing the requirement that users specify --xcode_version and --ios_sdk_version even if they have only one version installed. RELNOTES: On mac devices, detect locally installed versions of xcode to: 1. Use a sensible default if xcode is required but --xcode_version is unspecified. 2. Use sensible default iOS SDK version for the targeted version of xcode if ios_sdk_version is unspecified. -- MOS_MIGRATED_REVID=131841587
* Use correct platform for Swift stdlib actions.Gravatar Dmitry Shevchenko2016-08-30
| | | | | -- MOS_MIGRATED_REVID=131625616
* Appropriately set platform environment variables in release bundle plists.Gravatar Chris Parsons2016-08-30
| | | | | | | Previously, iphonesimulator / iphoneos platform information was being set even for watchos extensions. -- MOS_MIGRATED_REVID=131607183
* Remove the dependency from the C++ rules to Apple stuff.Gravatar Ulf Adams2016-08-29
| | | | | | | | | | | This makes the C++ rules standalone, and the CcCommonTest ensures that (at least) analysis of C++ targets works even if no Apple / Xcode rules are present. We can also compile them separately, in a future change. -- MOS_MIGRATED_REVID=131583691
* Expose PlatformType and supporting methods to Skylark.Gravatar Dmitry Shevchenko2016-08-25
| | | | | -- MOS_MIGRATED_REVID=131311014
* Expose single and multi-architecture platform retrieval methods ↵Gravatar Chris Parsons2016-08-23
| | | | | | | (AppleConfiguration) to skylark. -- MOS_MIGRATED_REVID=130960948
* Allow Skyframe graph lookups and value retrievals to throw InterruptedException.Gravatar Janak Ramakrishnan2016-08-16
| | | | | | | The only place we now don't handle InterruptedException is in the action graph created after analysis, since I'm not sure that will be around for that much longer. -- MOS_MIGRATED_REVID=130327770
* Implement objc archiving in the crosstool. This involves a few steps:Gravatar Cal Peyser2016-08-12
| | | | | | | | | | | 1) In ExperimentalObjcLibrary, if static linking is required, signal CcLibraryHelper to create a static link action and pass in the necessary variables/link action input. 2) Add a new link type (Link.LinkTargetType.OBJC_STATIC_LIBRARY). This involves changes to Link and LinkCommandLine. 3) For this new link type, implement static linking the OSX CROSSTOOL. Also add tools in the crosstool package that point at libtool, which performs the archiving. -- MOS_MIGRATED_REVID=130022410
* Move cmdline lib to its own packageGravatar Kristina Chodorow2016-07-21
| | | | | -- MOS_MIGRATED_REVID=128097235
* xcode_config throws an error if two aliases are assigned to different ↵Gravatar Chris Parsons2016-06-29
| | | | | | | | | versions, even if no --xcode_version is specified. it also avoids throwing an exception if an xcode_version is aliased to its proper name, to be a bit more lenient. -- MOS_MIGRATED_REVID=126120071
* Reorganize Skylark Reference documentation.Gravatar Dmitry Lomov2016-06-29
| | | | | -- MOS_MIGRATED_REVID=126081020
* Add bitcode support to experimental_objc_library.Gravatar Cal Peyser2016-06-29
| | | | | -- MOS_MIGRATED_REVID=126068553
* ExperimentalObjcLibrary uses xcrunwrapper to template SDKROOT and DEVELOPER_DIR.Gravatar Cal Peyser2016-06-20
| | | | | -- MOS_MIGRATED_REVID=125187340
* Support for platform_type="watchos" on apple_binary.Gravatar Chris Parsons2016-06-16
| | | | | | | | | This builds all dependencies linked against watch SDKs instead of iOS SDKs, and builds for the architectures specified in --watchos_multi_cpus RELNOTES: apple_binary supports a new platform_type attribute, which, if set to "watchos", will build dependencies for Apple's watchOS2. -- MOS_MIGRATED_REVID=124980029
* Pass toolchain build variables to C++ link actions.Gravatar Chris Parsons2016-06-16
| | | | | | | Also add platform sdk versions to the build variables defined by AppleCcToolchain, so that these values may be referenced in crosstool config. -- MOS_MIGRATED_REVID=124976362