aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules
Commit message (Collapse)AuthorAge
* Parse the label syntax "@//a:b" so that eventually we can make that the ↵Gravatar Lukacs Berki2015-09-15
| | | | | | | | | syntax that means "refer to the main repository". There isn't an overarching plan for what we are going to do with the cmdline package, which seems to be separated from the .syntax one in all sorts of awkward ways. -- MOS_MIGRATED_REVID=103088960
* Parses the correct values of SDK, Platform and XCode version numbers when ↵Gravatar Anastasios Kakalis2015-09-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | generating the environment's plist. The script no longer parses the values from the Platform's Info.plist, which contained the values used to compile the Platform's library *itself*, rather than the values of the actual running environment. Also the BuildMachineOSBuild is being read from the sw_version, rather than the Xcode's plist, and the DTSDKBuild is determined by the plist under sdk-path. An example environment.plist: { BuildMachineOSBuild = 14F27; DTCompiler = "com.apple.compilers.llvm.clang.1_0"; DTPlatformBuild = 12H141; DTPlatformVersion = "8.4"; DTSDKBuild = 12H141; DTXCodeBuild = 6E35b; DTXcode = 0640; } -- MOS_MIGRATED_REVID=103079006
* Generate module maps for each objc_* target with compilation support.Gravatar Googler2015-09-15
| | | | | | | | | This uses CppModuleMap and CppModuleMapAction to generate clang module maps for the target and its transitive dependencies. To enable this feature, you must pass -experimental_objc_enable_module_maps to bazel. For objc_* targets that need to use the "modules" language features (@import, Swift interop, etc), set the "enable_modules" attribute to 1. -- MOS_MIGRATED_REVID=103045673
* Have clang output .d dependency files during ObjcCompile.Gravatar Googler2015-09-15
| | | | | | | | | These are not currently used by anything. The next step is for bazel to read these files and use them to check the declared dependencies for correctness. RELNOTES: -- MOS_MIGRATED_REVID=103023531
* Support multiarchitecture objc libraries for both simulator and device ↵Gravatar Chris Parsons2015-09-15
| | | | | | | architectures in a single build, refining the multiarchitecture device restriction only to rules which require bundling. -- MOS_MIGRATED_REVID=103016981
* Package that is dependency of genquery cannot be null when genquery is being ↵Gravatar Janak Ramakrishnan2015-09-15
| | | | | | | analyzed. -- MOS_MIGRATED_REVID=103003180
* When generating Xcode projects, remove -I options from copts and instead add ↵Gravatar Rumou Duan2015-09-14
| | | | | | | the -I include paths as non-propagated header search paths. If the paths are relative, prepend $(WORKSPACE_ROOT) to them. -- MOS_MIGRATED_REVID=102994196
* Prevented catching/wrapping of InterruptedExceptions, especially in ↵Gravatar Florian Weikert2015-09-14
| | | | | | | BaseFunction. -- MOS_MIGRATED_REVID=102988766
* Skylark doc: clarify that new_file takes argument is relative to packageGravatar Laurent Le Brun2015-09-14
| | | | | -- MOS_MIGRATED_REVID=102984840
* Rollforward of [], which was rolled back in []. Cleans up support for ↵Gravatar Michael Thvedt2015-09-14
| | | | | | | objc_proto_library with native proto_library. -- MOS_MIGRATED_REVID=102962083
* Clarify Skylark doc for ctx.files and ctx.fileGravatar Laurent Le Brun2015-09-14
| | | | | -- MOS_MIGRATED_REVID=102921160
* Make StdRedirect.dylib as a dependency of all ios_test and ↵Gravatar Googler2015-09-14
| | | | | | | | | experimental_ios_test, and pass in its path instead of using the one wrapped in the _deploy.jar file. Now we're still using iossim to launch the app when we invoke "blaze run", will change it in another CL. -- MOS_MIGRATED_REVID=102886514
* Allows objc_* rules to depend on cc_inc_library.Gravatar Peter Schmitt2015-09-11
| | | | | -- MOS_MIGRATED_REVID=102862462
* Fixed Skylark stack trace:Gravatar Florian Weikert2015-09-11
| | | | | | | | | - Moved registration mechanism from BaseFunction into ASTNode / Statement / Expression - Added more details about statements/expressions to the output trace (including if's) - Fixed wrong locations -- MOS_MIGRATED_REVID=102841164
* Refactor Skylark Environment-sGravatar Francois-Rene Rideau2015-09-11
| | | | | | | | | | | | | | | | | | | | Make Environment-s freezable: Introduce a class Mutability as a revokable capability to mutate objects in an Environment. For now, only Environment-s carry this capability. Make sure that every Mutability is revoked in the same function that create... This reinstates a change that previously rolled-back because it broke the serializability of SkylarkLookupValue. Bad news: serializing it succeeds for the wrong reason, because a SkylarkEnvironment was stored as a result (now an Environment.Extension) that was Serializable but inherited its bindings from an Environment (now an Environment.BaseExtension) which wasn't Serializable. Apparently, Java doesn't try to serialize the bindings then (or at least doesn't error out when it fails), because these bindings map variable names to pretty arbitrary objects, and a lot of those we find in practice aren't Serializable. Thus the current code passes the same tests as the previous code, but obviously the serialization is just as ineffective as it used to be. -- MOS_MIGRATED_REVID=102776694
* Propagate includes and defines attributes from cc_library to dependent ↵Gravatar Peter Schmitt2015-09-11
| | | | | | | objc_libraries. -- MOS_MIGRATED_REVID=102775222
* Add experimental_ios_test to the list of rules that objc_xcodeproj can ↵Gravatar Chris Parsons2015-09-11
| | | | | | | depend on. -- MOS_MIGRATED_REVID=102763340
* Fix typo in a comment.Gravatar Philipp Wollermann2015-09-11
| | | | | -- MOS_MIGRATED_REVID=102743729
* Remove expectation of clang in producing .gcno of assembly files for ↵Gravatar Chris Parsons2015-09-11
| | | | | | | | | instrumentation/coverage purposes. This is easier by grouping together all assembly files in a file set, thus justifying a simultaneous cleanup of the redundant usage of the assembler-with-cpp flag -- MOS_MIGRATED_REVID=102671848
* StandaloneTestStrategy: Remove unnecessary TODO, as dmarting recently ↵Gravatar Philipp Wollermann2015-09-09
| | | | | | | implemented timeout support. -- MOS_MIGRATED_REVID=102651003
* StandaloneTestStrategy: Make sure to create a fresh TEST_TMPDIR when running ↵Gravatar Philipp Wollermann2015-09-09
| | | | | | | a test. Fixes #431. -- MOS_MIGRATED_REVID=102650964
* Save information about transitive packages in ConfiguredTargetValue and ↵Gravatar Marian Lobur2015-09-09
| | | | | | | AspectValue. -- MOS_MIGRATED_REVID=102643564
* Base .entitlements (and related extension) files on the full target label as ↵Gravatar Chris Parsons2015-09-09
| | | | | | | | | opposed to treating the label name as a file (which the extension is stripped from). This prevents this functionality from breaking if the target contains what looks like an extension (e.g. test.foo) -- MOS_MIGRATED_REVID=102600479
* Rollback of commit a708acd02baf3821c975801ae0e5cad6867a6735.Gravatar Mark Schaller2015-09-08
| | | | | | | *** Reason for rollback *** -- MOS_MIGRATED_REVID=102590114
* Make Android rules work againGravatar Lukacs Berki2015-09-08
| | | | | | | They were broken by commit 05e2c5b4e0da2f88e12d95adbc63cc3d46a6fca6. -- MOS_MIGRATED_REVID=102546907
* Display TIMEOUT for test that times outGravatar Damien Martin-Guillerez2015-09-08
| | | | | | | | | Previously the timing out information wasn't propagated to the user, leading to a wrong FAILED message whereas the test was timing out. -- MOS_MIGRATED_REVID=102535481
* Remove references to the legacy android_resources rule from the Bazel BUILD ↵Gravatar Lukacs Berki2015-09-08
| | | | | | | | | encyclopedia. Fixes #426. -- MOS_MIGRATED_REVID=102496247
* Skylark: configuration fragments for host configuration can now be accessed ↵Gravatar Florian Weikert2015-09-08
| | | | | | | via ctx.host_fragments. -- MOS_MIGRATED_REVID=102490502
* Inline the native deps suffix constant in one location.Gravatar Ulf Adams2015-09-08
| | | | | | | Only one for now, as we need to migrate internally. -- MOS_MIGRATED_REVID=102477370
* Rollback of commit 5a94e59f02833f9142bad9203acd72626b089535.Gravatar Janak Ramakrishnan2015-09-08
| | | | | | | | | *** Reason for rollback *** Breaks serialization of SkyValues. -- MOS_MIGRATED_REVID=102457225
* Refactor Skylark Environment-sGravatar Francois-Rene Rideau2015-09-08
| | | | | | | | | | | | | | | | | Make Environment-s freezable: Introduce a class Mutability as a revokable capability to mutate objects in an Environment. For now, only Environment-s carry this capability. Make sure that every Mutability is revoked in the same function that creates it, so no Environment is left open for modification after being created and exported; exceptions for tests, the shell and initialization contexts. Unify Environment, SkylarkEnvironment and EvaluationContext into Environment. Have a notion of Frame for the bindings + parent + mutability. Replace the updateAndPropagate mechanism by a dynamicFrame. Simplify ValidationEnvironment, that is now always deduced from the Environment. -- MOS_MIGRATED_REVID=102363438
* Teach Bazel to accept assembler-without-preprocessor source files.Gravatar Googler2015-09-04
| | | | | | | | | | | Adding the accepted file extensions was a minor issue. The bulk of this change was to weaken the assertion that all cxx compiler actions produce a '.d' file. RELNOTES[NEW]: a cc_binary rule may list '.s' and '.asm' files in the srcs -- MOS_MIGRATED_REVID=102346882
* Rollback of commit 47107aad33695a040b0f771f0c09d66874c4d533.Gravatar Ulf Adams2015-09-04
| | | | | | | | | | | | | | *** Reason for rollback *** Breaks a few thousand targets in the depot. It's weird, but I confirmed manually that this rollback fixes the issue. *** Original change description *** Distinguish between user-supplied ios_cpu and the default, and don't propagate the default to the XCode project control. -- MOS_MIGRATED_REVID=102340901
* Fix some warnings.Gravatar Ulf Adams2015-09-04
| | | | | -- MOS_MIGRATED_REVID=102332437
* Teach java_import about deps.Gravatar Googler2015-09-04
| | | | | | | | If a jar uses another in its API, using runtime_deps leads to compile time errors for dependent libraries. In these cases, deps can be used instead. -- MOS_MIGRATED_REVID=102331597
* Rollback of commit 17e9d7cd408eee1e4e73a1fe6f76917954475937.Gravatar Carmi Grushko2015-09-04
| | | | | -- MOS_MIGRATED_REVID=102299629
* Turn Bazel proto_library on for objc_proto_library.Gravatar Michael Thvedt2015-09-04
| | | | | -- MOS_MIGRATED_REVID=102294703
* Fix Swift merge action to use combined arch binaryGravatar Dmitry Shevchenko2015-09-03
| | | | | | | * This fixes the crash when trying to build multi-arch ios_application with Swift code. -- MOS_MIGRATED_REVID=102264637
* Always inject the runfiles prefix into the Runfiles.Builder.Gravatar Ulf Adams2015-09-03
| | | | | | | The other constructor is now private. -- MOS_MIGRATED_REVID=102252544
* Link Android native code with libstdc++, statically.Gravatar Ulf Adams2015-09-03
| | | | | | | | | | | | | | | | | | | | | | - Refactor the ndk toolchain generation to properly set the dynamic and static runtime lib filegroups. - Enable the runtime filegroups. - Change the NativeDepsHelper to work as documented - mostly static means statically linking the runtime filegroups; but only for Android to remain backwards compatible with other users of NativeDepsHelper. - This is safe as we don't use runtime filegroups internally for Android... yet. - Clean up the NativeDepsHelper a bit. Fixes #392. Next steps are to make this configurable at the android_binary level. We should also disable whole-archive in this case. -- Change-Id: I95b0ce45d8b3adcf5424544c92ec30102b7fac6b Reviewed-on: https://bazel-review.googlesource.com/1879 MOS_MIGRATED_REVID=102239337
* Code cleanupGravatar Laurent Le Brun2015-09-03
| | | | | -- MOS_MIGRATED_REVID=102239051
* Fix ios debug symbol generation on Bazel.Gravatar Rumou Duan2015-09-02
| | | | | -- MOS_MIGRATED_REVID=102175026
* Allow .dylib libraries in srcsGravatar Kristina Chodorow2015-09-02
| | | | | | | Fixes some of #407. -- MOS_MIGRATED_REVID=102148776
* Update xctest_app documentation to reflect that ios_application rules are a ↵Gravatar Chris Parsons2015-09-02
| | | | | | | valid target. -- MOS_MIGRATED_REVID=102146021
* When a Skylark macro creates a native rule, it also sets the following rule ↵Gravatar Florian Weikert2015-09-02
| | | | | | | attributes: generator_{function, name, location} -- MOS_MIGRATED_REVID=102139196
* Update error messages for missing fields. Make them more standard.Gravatar Laurent Le Brun2015-09-02
| | | | | -- MOS_MIGRATED_REVID=102137469
* Aspects can get information from their base rule.Gravatar Marian Lobur2015-09-02
| | | | | -- MOS_MIGRATED_REVID=102126786
* Declare the xcode_options flag deprecatedGravatar Googler2015-09-02
| | | | | | | RELNOTES: deprecate the xcode_options flag -- MOS_MIGRATED_REVID=102089578
* Add a BazelProtoLibrary representing a collection of .proto files.Gravatar Michael Thvedt2015-09-02
| | | | | -- MOS_MIGRATED_REVID=102079110
* Move common proto functions into a new open-source class, ProtoCommon, in ↵Gravatar Michael Thvedt2015-09-02
| | | | | | | preperation for BazelProtoLibrary. -- MOS_MIGRATED_REVID=102070904