aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/objc
Commit message (Collapse)AuthorAge
* Move the runfiles for external repositories to under the x.runfiles/ directoryGravatar Kristina Chodorow2016-04-20
| | | | | | | | | | | | | | | This also sets the Bazel workspace name to io_bazel_source. Fixes #848. Relevant to #1116, #1124, RELNOTES[INC]: All repositories are now directly under the x.runfiles directory in the runfiles tree (previously, external repositories were at x.runfiles/main-repo/external/other-repo. This simplifies handling remote repository runfiles considerably, but will break existing references to external repository runfiles. --- Furthermore, if a Bazel project does not provide a workspace name in the WORKSPACE file, Bazel will now default to using __main__ as the workspace name (instead of "", as previously). The repository's runfiles will appear under x.runfiles/__main__/. -- MOS_MIGRATED_REVID=120224534
* Review a number of action subclasses and update them according to the spec.Gravatar Ulf Adams2016-04-19
| | | | | | | | Consists of adding @Immutable annotations, adding final modifiers, and changing the types of fields to immutable types. -- MOS_MIGRATED_REVID=120221067
* Review a number of action subclasses and update them according to the spec.Gravatar Ulf Adams2016-04-19
| | | | | | | | | | Second pass. Consists of adding @Immutable annotations, adding final modifiers, and changing the types of fields to immutable types. -- MOS_MIGRATED_REVID=120216592
* Rename LateBoundLabel#getDefault(Rule, AttributeMap, T) to #resolve().Gravatar Lukacs Berki2016-04-19
| | | | | | | Its old name was confusing because resolve() and getDefault() do radically different things: getDefault() returns a good enough lie for when BuildConfiguration is not available, and resolve() resolves the dependency when we do have a BuildConfiguration. -- MOS_MIGRATED_REVID=120212630
* Add cpp-style source processing to experimental_objc_library.Gravatar Cal Peyser2016-04-18
| | | | | -- MOS_MIGRATED_REVID=119980586
* Introduces experimental_objc_library. This rule builds objc code with the ↵Gravatar Cal Peyser2016-04-18
| | | | | | | c++ rule implementation backend and an OSX crosstool. -- MOS_MIGRATED_REVID=119954578
* Do not collide intermediate and final output dsym artifacts.Gravatar Peter Schmitt2016-04-14
| | | | | -- MOS_MIGRATED_REVID=119848254
* Rollback of commit bbf59ed1be85354457ad1d8123cc1973aa3ba298.Gravatar Florian Weikert2016-04-14
| | | | | -- MOS_MIGRATED_REVID=119843072
* Make ObjcProvider keys accessible to skylark. This is necessary to allowGravatar Cal Peyser2016-04-14
| | | | | | | skylark native access to ObjcProvider instances. -- MOS_MIGRATED_REVID=119782586
* Introduces experimental_objc_library. This rule builds objc code with the ↵Gravatar Cal Peyser2016-04-13
| | | | | | | c++ rule implementation backend and an OSX crosstool. -- MOS_MIGRATED_REVID=119660101
* ios_device attribute "xcode", which takes an "xcode_version" target to ↵Gravatar Chris Parsons2016-04-08
| | | | | | | | | select a specific xcode. RELNOTES: ios_device attribute "xcode", for declaring a specific xcode to use when selecting iOS simulators. -- MOS_MIGRATED_REVID=119317344
* Remove incorrect exec() on well_known_protos dependency.Gravatar Peter Schmitt2016-04-07
| | | | | -- MOS_MIGRATED_REVID=119224150
* Expose ObjcConfiguration to Skylark as fragment "objc" along with callable ↵Gravatar Erik Abair2016-04-07
| | | | | | | | | methods to return compiler options useful for reflection in aspects. RELNOTES[NEW]: Objective-C compiler information is now available to Skylark. -- MOS_MIGRATED_REVID=119160290
* Override any existing watch stubs and watch application bundle artifacts ↵Gravatar Googler2016-04-07
| | | | | | | when copying. -- MOS_MIGRATED_REVID=119094214
* Removing left over debug warning.Gravatar Googler2016-04-07
| | | | | -- MOS_MIGRATED_REVID=119055012
* Add 'apple_watch1_extension' and 'apple_watch_extension_binary' to support ↵Gravatar Googler2016-04-05
| | | | | | | | | building watch OS 1 apps. RELNOTES: Support apple_watch1_extension and apple_watch_extension_binary rules for creating watch OS 1 extensions. -- MOS_MIGRATED_REVID=119000703
* Introduce a seperate name to distinguish the objc provider passed from ↵Gravatar Cal Peyser2016-04-05
| | | | | | | native rules to skylark rules and that returned from skylark rules to depending native rules. This fixes a bug where a skylark rule that did not touch the objc provider would automatically pass up the objc provider it received from dependencies to dependant native rules, leading to duplicate symbol linking errors when the same objc provider was exported twice. -- MOS_MIGRATED_REVID=118947782
* Correctly generates the expected file names of the generated protos when the ↵Gravatar Googler2016-04-05
| | | | | | | names contain url, http or https. -- MOS_MIGRATED_REVID=118946808
* *_test rules now return an .xctest.dSYM bundle.Gravatar Googler2016-04-01
| | | | | -- MOS_MIGRATED_REVID=118786316
* Allow .o files as sources for objc builds.Gravatar Cal Peyser2016-04-01
| | | | | -- MOS_MIGRATED_REVID=118727286
* Add support for objc_generate_linkmap argument that controls whether a link ↵Gravatar Dave MacLachlan2016-03-31
| | | | | | | | | map is generated. R_FUTURE=cparsons -- MOS_MIGRATED_REVID=118631953
* Set -fmodules-cache-path to be rooted in the genfiles directory whenever ↵Gravatar Chris Parsons2016-03-31
| | | | | | | | | modules are enabled. Also warn when -fmodules-cache-path is explicitly set by the user (either in configuration or rule attributes) -- MOS_MIGRATED_REVID=118590843
* Rollback of commit d6dcde6bbf074b42f89b0feb6980e124c076863a.Gravatar Klaus Aehlig2016-03-30
| | | | | | | | | | | | | | | *** Reason for rollback *** Broke bazel http://ci.bazel.io/job/Bazel/417/JAVA_VERSION=1.8,PLATFORM_NAME=linux-x86_64/console by using a Guava 20 feature, while Gauva 20 is not yet released. *** Original change description *** Set -fmodules-cache-path to be rooted in the genfiles directory whenever modules are enabled. Also warn when -fmodules-cache-path is explicitly set by the user (either in configuration or rule attributes) -- MOS_MIGRATED_REVID=118555994
* Fix strip for ios_framework_binary by passing -x to strip.Gravatar Googler2016-03-30
| | | | | -- MOS_MIGRATED_REVID=118523482
* Rename swift_binary to swift_library as the intended rule is not executable.Gravatar Dmitry Shevchenko2016-03-30
| | | | | | | RELNOTES: -- MOS_MIGRATED_REVID=118518790
* Adds the dsym files to the ios_application output when using ↵Gravatar Googler2016-03-30
| | | | | | | --objc_generate_debug_symbols. These are delivered in distinct files, with an architecture identifier. -- MOS_MIGRATED_REVID=118510432
* Restrict file types allowed for "strings" attribute to ".strings".Gravatar Googler2016-03-30
| | | | | | | RELNOTES: Restrict file types allowed for "strings" attribute to ".strings". -- MOS_MIGRATED_REVID=118479031
* Set -fmodules-cache-path to be rooted in the genfiles directory whenever ↵Gravatar Chris Parsons2016-03-30
| | | | | | | | | modules are enabled. Also warn when -fmodules-cache-path is explicitly set by the user (either in configuration or rule attributes) -- MOS_MIGRATED_REVID=118478856
* Use ENTITLEMENTS_TYPE constant to specify allowed file types for ↵Gravatar Googler2016-03-30
| | | | | | | ":extra_entitlements". -- MOS_MIGRATED_REVID=118473605
* Rename ConfigurationDistinguisher.APPLICATION and ↵Gravatar Googler2016-03-30
| | | | | | | ConfigurationDistinguisher.EXTENSION to "IOS_APPLICATION" and "IOS_EXTENSION". -- MOS_MIGRATED_REVID=118468650
* Restrict file types used for "entitlements" attribute to [".entitlements", ↵Gravatar Googler2016-03-29
| | | | | | | | | ".plist"]. RELNOTES: Restrict file types used for "entitlements" attribute to [".entitlements", ".plist"] -- MOS_MIGRATED_REVID=118416261
* Propagate -isystem includes from CC deps in Xcode project generation.Gravatar Googler2016-03-29
| | | | | | | | | The lack of cc_library dependencies in generated Xcode projects can be worked around using _fully_linked.a and objc_import, but some include files still fail to propagate. In particular this affects genrule outputs and proto headers. This fixes that issue. -- MOS_MIGRATED_REVID=118397125
* Skylark providers exported under the key "objc" are consumed as ObjcProvider ↵Gravatar Cal Peyser2016-03-29
| | | | | | | instances by dependant objc_binary targets. -- MOS_MIGRATED_REVID=118395529
* Move several naked strings over to constants as general code cleanup.Gravatar Dave MacLachlan2016-03-28
| | | | | | | RELNOTES: -- MOS_MIGRATED_REVID=118242131
* Remove unused test code, and clean up documentation regarding launch images ↵Gravatar Dave MacLachlan2016-03-25
| | | | | | | | | and storyboards. RELNOTES: -- MOS_MIGRATED_REVID=118077315
* Refactor spawnXcrunActionBuilder to take an explicit apple platform.Gravatar Chris Parsons2016-03-24
| | | | | | | | | This both starts to clean up the code (making it clearer which platform each action is targeted to, caller by caller), as well as allows callers to issue certain actions for platforms which are not implicitly ios. We'll still need to migrate callers onto the new method signature. -- MOS_MIGRATED_REVID=117982741
* Pass -F flags to Swift compilation rules.Gravatar Dmitry Shevchenko2016-03-24
| | | | | -- MOS_MIGRATED_REVID=117974145
* Add comments to analysis-phase objects so future developers won't ↵Gravatar Janak Ramakrishnan2016-03-23
| | | | | | | accidentally keep references to them after the analysis phase. -- MOS_MIGRATED_REVID=117855145
* Introduce ReleaseBundling class to contain all application specific ↵Gravatar Googler2016-03-23
| | | | | | | information required for creating a release bundle. -- MOS_MIGRATED_REVID=117843546
* ios_device's attribute ios_version defaults to the configuration iOS SDK versionGravatar Chris Parsons2016-03-23
| | | | | -- MOS_MIGRATED_REVID=117841917
* Introduce the linkopts attribute to the objc family of rules.Gravatar Cal Peyser2016-03-23
| | | | | -- MOS_MIGRATED_REVID=117821922
* Filter Well Known Type protos from being generated by the objc_proto_library ↵Gravatar Googler2016-03-22
| | | | | | | rule, as these protos have already been generated and linked in the released static library. -- MOS_MIGRATED_REVID=117747156
* Allow passing custom entitlements for iOS signing.Gravatar Peter Schmitt2016-03-22
| | | | | | | | RELNOTES[NEW]: --extra_entitlements allows passing additional entitlements for iOS signing -- MOS_MIGRATED_REVID=117735783
* Don't keep implicit reference to XcodeSupport during the execution phase. ↵Gravatar Janak Ramakrishnan2016-03-21
| | | | | | | Saves memory and keeps analysis-phase objects from bleeding into execution phase. -- MOS_MIGRATED_REVID=117709746
* Adds mcov tool label to IosTest.Gravatar Dmitry Shevchenko2016-03-21
| | | | | | | Adds source files to IosTest runfiles so that mcov/clang has access to them during coverage run. -- MOS_MIGRATED_REVID=117572134
* Deprecates output_cpp from objc_proto_library.Gravatar Googler2016-03-18
| | | | | -- MOS_MIGRATED_REVID=117494528
* Introduce skylark provider for objc.Gravatar Cal Peyser2016-03-18
| | | | | -- MOS_MIGRATED_REVID=117485208
* Uses J2ObjC's own JRE when tranpiling for j2objc_library.Gravatar Googler2016-03-18
| | | | | -- MOS_MIGRATED_REVID=117446080
* Don't keep packages in the default repository around after loading.Gravatar Brian Silverman2016-03-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, this would get thrown when referring to the same package from both the main and default repositories: java.lang.IllegalArgumentException: Multiple entries with same key: tools/cpp=/home/brian/971-Robot-Code and tools/cpp=/home/brian/971-Robot-Code at com.google.common.collect.ImmutableMap.checkNoConflict(ImmutableMap.java:136) at com.google.common.collect.RegularImmutableMap.checkNoConflictInKeyBucket(RegularImmutableMap.java:98) at com.google.common.collect.RegularImmutableMap.fromEntryArray(RegularImmutableMap.java:84) at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:295) at com.google.devtools.build.lib.buildtool.BuildTool.transformPackageRoots(BuildTool.java:301) at com.google.devtools.build.lib.buildtool.BuildTool.buildTargets(BuildTool.java:209) at com.google.devtools.build.lib.buildtool.BuildTool.processRequest(BuildTool.java:334) at com.google.devtools.build.lib.runtime.commands.TestCommand.doTest(TestCommand.java:119) at com.google.devtools.build.lib.runtime.commands.TestCommand.exec(TestCommand.java:104) at com.google.devtools.build.lib.runtime.BlazeCommandDispatcher.exec(BlazeCommandDispatcher.java:371) at com.google.devtools.build.lib.runtime.BlazeRuntime$3.exec(BlazeRuntime.java:1016) at com.google.devtools.build.lib.server.RPCService.executeRequest(RPCService.java:65) at com.google.devtools.build.lib.server.RPCServer.executeRequest(RPCServer.java:434) at com.google.devtools.build.lib.server.RPCServer.serve(RPCServer.java:229) at com.google.devtools.build.lib.runtime.BlazeRuntime.serverMain(BlazeRuntime.java:975) at com.google.devtools.build.lib.runtime.BlazeRuntime.main(BlazeRuntime.java:772) at com.google.devtools.build.lib.bazel.BazelMain.main(BazelMain.java:55) And this would get thrown for any packages in the main repository loaded from other repositories: java.lang.RuntimeException: Unrecoverable error while evaluating node 'PACKAGE:@//tools/build_rules/go/toolchain' (requested by nodes ) at com.google.devtools.build.skyframe.ParallelEvaluator$Evaluate.run(ParallelEvaluator.java:982) at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$WrappedRunnable.run(AbstractQueueVisitor.java:499) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.IllegalArgumentException: Invalid BUILD file name for package '@//tools/build_rules/go/toolchain': /home/brian/bazel/tools/build_rules/go/toolchain/BUILD at com.google.devtools.build.lib.packages.Package.finishInit(Package.java:299) at com.google.devtools.build.lib.packages.Package$Builder.finishBuild(Package.java:1308) at com.google.devtools.build.lib.skyframe.PackageFunction.compute(PackageFunction.java:501) at com.google.devtools.build.skyframe.ParallelEvaluator$Evaluate.run(ParallelEvaluator.java:933) ... 4 more Sponsor's comment: note the abundance of new Label.resolveRepositoryRelative() calls. They are ugly, but it's only making existing ugliness explicit. Yes, we should fix it, especially in the implementation of configurable attributes. Refs #940 -- Change-Id: I8bd7f7b00bec58a7157507595421bc50c81b404c Reviewed-on: https://bazel-review.googlesource.com/#/c/2591 MOS_MIGRATED_REVID=117429733
* Remove deprecated objc_options.Gravatar Dave MacLachlan2016-03-17
| | | | | | | RELNOTES[INC]: Any project that depended on the objc_options rule will be broken. Can be fixed by adding attrs (infoplists,copts) directly to rules depending on the options. -- MOS_MIGRATED_REVID=117393853