aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
Commit message (Collapse)AuthorAge
...
* In J2ObjC proto aspect, add a proto file blacklist to filter out unnecessary ↵Gravatar Rumou Duan2016-09-27
| | | | | | | protos from linking into the final binary. -- MOS_MIGRATED_REVID=134409481
* Some changes in MSVC toolchainGravatar Yun Peng2016-09-26
| | | | | | | | | These changes could help use build TensorFlow on Windows -- Change-Id: I98962add450da234d5965b091607817e991af383 Reviewed-on: https://bazel-review.googlesource.com/#/c/6270 MOS_MIGRATED_REVID=134266671
* Add bitcode handling to swift_libraryGravatar Dmitry Shevchenko2016-09-26
| | | | | -- MOS_MIGRATED_REVID=134110312
* 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
* Change the filegroup for the android sdk to an alias to unbreak android in ↵Gravatar Alex Humesky2016-09-23
| | | | | | | bazel after commit 1092e9d68773adb7444cc85a47af650aeeaf65fc -- MOS_MIGRATED_REVID=134036851
* Implementation of maven_jar rule in Skylark.Gravatar Jingwen Chen2016-09-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | **Experimental** This is an initial implementation of the maven_jar rule in Skylark, targeted at the FRs in issue #1410. Implemented a wrapper around the maven binary to pull dependencies from remote repositories into a directory under {output_base}/external. Attributes `name`, `artifact`, `repository`, `sha1` have been implemented, but not `server`. Caveat: this rule assumes that the Maven dependency is installed in the system. Hence, the maven_skylark_test integration tests are tagged with "manual" and commented out because the Bazel CI isn't configured with the Maven binary yet. Added a serve_not_found helper for 404 response tests. Usage: ``` load("@bazel_tools//tools/build_defs/repo:maven_rules.bzl", "maven_jar") maven_jar( name = "com_google_guava_guava", artifact = "com.google.guava:guava:18.0", sha1 = "cce0823396aa693798f8882e64213b1772032b09", repository = "http://uk.maven.org/maven2", ) ``` With regards to server, there are some limitations with retrieving a maven_server's attribute at Loading Phase without the use of hacky macros (issue #1704), and even if macros are used, the maven_server is not treated as an actual dependency by maven_jar. There is a test (`test_unimplemented_server_attr`) to ensure that the error message to shown to users if they use the server attribute with this rule. -- Change-Id: I167f9d13835c30be971928b4cc60167a8e396893 Reviewed-on: https://bazel-review.googlesource.com/c/5770 MOS_MIGRATED_REVID=133971809
* Cleanup swift_library after Blaze release.Gravatar Dmitry Shevchenko2016-09-22
| | | | | | | * Removes iOS specific platform/cpu calls in favor of platform-agnostic counterparts. -- MOS_MIGRATED_REVID=133966024
* Add test for //tools/zip/zip_manifest_creatorGravatar Adam Michael2016-09-22
| | | | | -- MOS_MIGRATED_REVID=133847278
* Add copts attribute to swift_library.Gravatar Dmitry Shevchenko2016-09-21
| | | | | -- MOS_MIGRATED_REVID=133752908
* In local_xcode_config rule, when xcode-locator-bin fails (generally due to ↵Gravatar Chris Parsons2016-09-21
| | | | | | | xcode not being installed), create a stub xcode_version target instead of a malformed one. -- MOS_MIGRATED_REVID=133709696
* Description redacted.Gravatar Laurent Le Brun2016-09-21
| | | | | -- MOS_MIGRATED_REVID=133693782
* Enable the generation of Objc protos in whichever host machine it is running.Gravatar Sergio Campama2016-09-20
| | | | | -- MOS_MIGRATED_REVID=133629682
* Replace HOST_CFG with "host" as the former has been marked as deprecated.Gravatar Sergio Campama2016-09-20
| | | | | -- MOS_MIGRATED_REVID=133618837
* Java 8 support for Android builds, initially with incremental dexing only.Gravatar Googler2016-09-19
| | | | | -- MOS_MIGRATED_REVID=133436157
* Clarify the intermediate outputs handling in swift_libraryGravatar Dmitry Shevchenko2016-09-19
| | | | | | | * Also rename the partial swift module outputs so they don't clash with final modules. -- MOS_MIGRATED_REVID=133410717
* Make aar_import not fail on aars that do not contain resources.Gravatar Adam Michael2016-09-16
| | | | | | | Previously, zip_manifest_creator.sh would return an exit code of 1 if grep did not match any files. -- MOS_MIGRATED_REVID=133289788
* Checking BAZEL_SH first when looking for bash on WindowsGravatar Yun Peng2016-09-16
| | | | | | | | | | In case cc_configure finds the wrong bash binary if user is running Windows 10 with bash on Windows. This should help https://github.com/bazelbuild/bazel/issues/1453 -- Change-Id: Iffd365e3e2dd2389882390dffdf6f3a88719530e Reviewed-on: https://bazel-review.googlesource.com/#/c/6072 MOS_MIGRATED_REVID=133270634
* Adds aar_import rule to Bazel along with tools needed to implement it. ↵Gravatar Adam Michael2016-09-14
| | | | | | | | | | | | | | | Currently only uses AndroidManifest.xml, classes.jar and res/ from AARs. This is sufficient for many of the AARs of Google Play Services and Android Support Repository. The next step will be for AndroidSdkRepositoryRule to scan the SDK and generate aar_import rules for the AARs within. The rule is not yet documented because it is not intended for end users to use it yet. We should probably support more of the features of AARs before that time. See http://tools.android.com/tech-docs/new-build-system/aar-format for all of the files that can be included in AARs. Also note that R.txt from the AAR is intentionally ignored and regenerated based on the contents of res/. This is more correct, because the R.txt inside of an AAR can contain ids for dependencies of the AAR that are not included in res/. See https://github.com/bazelbuild/bazel/issues/564 for discussion of supporting AARs and https://github.com/bazelbuild/bazel/issues/1745 for motivation to get it done soon. -- MOS_MIGRATED_REVID=133127933
* Move Skylark git_repository rules to git.bzl.Gravatar David Chen2016-09-14
| | | | | | | | | | | | | | The main motivations for this are: * This makes the load label for the Skylark git rules cleaner. * I am planning to add similar rules, such as hg.bzl, in the future. Tagging #1408 for FYI RELNOTES: Move Skylark git_repository rules to git.bzl -- MOS_MIGRATED_REVID=133094634
* Handle minimum OS version in swift_library.Gravatar Dmitry Shevchenko2016-09-14
| | | | | -- MOS_MIGRATED_REVID=133045120
* Rollback of commit 4381a1d6e8f711957f430aac0c301acec6dfa0eb.Gravatar Damien Martin-Guillerez2016-09-14
| | | | | | | | | | | | | *** Reason for rollback *** Breaks all projects using Bazel, see https://ci.bazel.io *** Original change description *** Deprecated and removed HOST_CFG and DATA_CFG global variables. -- MOS_MIGRATED_REVID=133005398
* Global cleanup change.Gravatar Vladimir Moskva2016-09-13
| | | | | -- MOS_MIGRATED_REVID=132976702
* Fix error message to actually use python string formattingGravatar Kristina Chodorow2016-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | This is using printf-style formatting, which Python happily accepts and ignores. Part of #1750: now, instead of printing ``` xcode_configure.bzl:57:5: Invoking xcodebuild failed, return code %s, stderr: %s 1 ``` it prints: ``` xcode_configure.bzl:57:5: Invoking xcodebuild failed, return code 1, stderr: xcrun: error: missing DEVELOPER_DIR path: E.g. no application claims the file" ``` Closes #1751. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/1751 MOS_MIGRATED_REVID=132884125
* Global cleanup change.Gravatar Vladimir Moskva2016-09-12
| | | | | -- MOS_MIGRATED_REVID=132675557
* Modify BUILD.static to use cc_toolchain_suiteGravatar Yun Peng2016-09-08
| | | | | | | Fixed #1736 -- MOS_MIGRATED_REVID=132529145
* Scope swift_library object outputs to a unique directory.Gravatar Dmitry Shevchenko2016-09-08
| | | | | -- MOS_MIGRATED_REVID=132458460
* Remove debugging print.Gravatar Dmitry Shevchenko2016-09-08
| | | | | -- MOS_MIGRATED_REVID=132436354
* Global cleanup change.Gravatar Vladimir Moskva2016-09-07
| | | | | -- MOS_MIGRATED_REVID=132422029
* Re-add support for watchOS in swift_library.Gravatar Dmitry Shevchenko2016-09-07
| | | | | | | RELNOTES: swift_library can be used to build watchOS apps. -- MOS_MIGRATED_REVID=132355955
* Remove dependency on gnu sedGravatar Paul Cody Johnston2016-09-07
| | | | | | | | | | BSD sed (the default on osx) does not support the -r --regexp-extended flag. Fixes #1651 Closes #1716. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/1716 MOS_MIGRATED_REVID=132350276
* Fix docker_build() run when using Docker < 1.8Gravatar Sam Guymer2016-09-07
| | | | | | | | | | | The docker version command does not have a format flag until Docker 1.8, so if it exits with a non zero exit code default to Docker version 1.5 instead of 1.10. -- Change-Id: I971bb0d8d0108e4bb6076710be5e9dfe1893e472 Reviewed-on: https://bazel-review.googlesource.com/#/c/5771 MOS_MIGRATED_REVID=132341532
* Update all tests so that they use a cc_toolchain_suite instead of a ↵Gravatar Lukacs Berki2016-09-06
| | | | | | | | | filegroup to declare C++ toolchains. Tested by actually removing support for filegroups; it's a ~5-line change, but it's better to do that separately so that it can be rolled back easily if need be. -- MOS_MIGRATED_REVID=132320198
* Adds a jar filter to the IntelliJ IDE aspect.Gravatar Googler2016-09-06
| | | | | | | | | | | | | | | | Any java rule that mixes generated and non-generated sources will produce a filtered jar containing only the generated output. For a java rule with only "normal" sources or only generated source files, no filtered jar is produced. This will allow the IDE to resolve those generated sources. RELNOTES:None -- MOS_MIGRATED_REVID=132113568
* Add BUILD target for bazel apksigner and BUILD.tools so that it can be used inGravatar Adam Michael2016-09-02
| | | | | | | | | | the embedded_tools repo. Do not submit until https://bazel-review.googlesource.com/#/c/5630/6 is merged. Also do not submit until unknown commit goes in. -- MOS_MIGRATED_REVID=131950953
* Disable references to single_arch_{cpu,platform}.Gravatar Julio Merino2016-09-01
| | | | | | | | | These two Skylark symbols are functions, not variables. I attempted to correct the references to match the symbol type, but I cannot get the tests to fully pass -- so better disable this until properly fixed. -- MOS_MIGRATED_REVID=131942175
* Python bits split from 130443322Gravatar Googler2016-09-01
| | | | | | | | Improve build determinism by squashing timestamps. -) Set ZERO_AR_DATE for ar invocations. -- MOS_MIGRATED_REVID=131861235
* 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
* pkg_deb: Make distribution and urgency adjustableGravatar Benjamin Staffin2016-08-31
| | | | | | | -- Change-Id: Ib2066597f3aeec2b160dd56fd19c60d618cb925d Reviewed-on: https://bazel-review.googlesource.com/#/c/4280 MOS_MIGRATED_REVID=131699503
* Add support for watchOS in swift_libraryGravatar Dmitry Shevchenko2016-08-30
| | | | | -- MOS_MIGRATED_REVID=131631222
* Add a resource validator action for android_libraryGravatar Googler2016-08-30
| | | | | | | | | | | | | | | | | | Part 3 of the 3 new proposed android_library res processing actions. Pulls a zip file from the merging action, unpacks it, and then validates the results with aapt. Get an R.txt and srcjar w/ javadocs from aapt. In order to the get the R.txt, I think you need to ask for the R.java sources anyway. Split the processResources() into a runAapt() function that can be reused. Hookup in bazel coming separately. -- MOS_MIGRATED_REVID=131618410
* Add a lightweight resource merge action.Gravatar Googler2016-08-30
| | | | | | | | | | | | | | | | | | | | | | | | | | Part 2 of the 3 new proposed android_library res processing actions. The primary and deps are all assumed to be parsed+summarized in a protobuf. Represent that with a new class (similar to DependencyAndroidData but w/out R.txt). Avoid having "manifest" artifacts as deps input, and instead use "label", since that is only used in a warning. DepAD still uses the manifest for #asSymbolFileProvider, so we keep it there. Move loading the primary out of the merge function so that we can share the merge function with this style of primary data, and the existing style of of primary data (UnvalidatedAndroidData). This produces an R class.jar and a zip file to pass along to a future validation action. Images are stubbed out since they are irrelevant to the validation action. -- MOS_MIGRATED_REVID=131604421
* Add conffiles support to pkg_debGravatar Michal Rydlo2016-08-26
| | | | | | | | | | | | | pkg_deb can have either conffiles or conffiles_file parameter that propagates the list of conffiles into the deb archive. Also the tests in //tools/build_defs/pkg were fixed to run against the rules from the source tree and not from the bazel distribtution. -- Change-Id: I61c447feef16511acbb0078d91954dcd7d3375f4 Reviewed-on: https://bazel-review.googlesource.com/#/c/5610 MOS_MIGRATED_REVID=131391925
* Merge xmlns decls in old manifest merger to help transitionGravatar Googler2016-08-26
| | | | | | | | | | | | | | | The old manifest merger doesn't merge xmlns decls. That could be a problem if a library has xmlns:tools but the binary doesn't (and we don't strip tools:). Library manifests may end up with more xmlns:tools annotations while transitioning from the old manifest merger to the new. It would be a problem if the same manifest is used by both the old and new merger. An alternative may be to strip the tools annotations after merging w/ this old merger... other options? -- MOS_MIGRATED_REVID=131332171
* Add external reference for android customtabsGravatar Simon Horlick2016-08-25
| | | | | | | -- Change-Id: If9b46439d0c0df36737030c9d78c201a87f1a4e9 Reviewed-on: https://bazel-review.googlesource.com/c/5590/ MOS_MIGRATED_REVID=131317750
* Remove support for thin archives.Gravatar Lukacs Berki2016-08-23
| | | | | -- MOS_MIGRATED_REVID=130938527
* Use -fno-canonical-system-headers when supportedGravatar Brian Silverman2016-08-18
| | | | | | | | | | This makes the same change to cc_configure.bzl made to the hard-coded CROSSTOOL in 763f1397155fc7c12e1f1071a1bc942f91b867c4 to fix #1642 -- Change-Id: Ia05788243d0128ea4921f12c437ef6cebd83a4ff Reviewed-on: https://bazel-review.git.corp.google.com/#/c/5450/ MOS_MIGRATED_REVID=130636065
* Delete unused empty file.Gravatar Adam Michael2016-08-18
| | | | | | | The filegroup using this file was deleted in commit c9d4fae25137cf480e83566d992bef813fcad7ee -- MOS_MIGRATED_REVID=130553843
* Replaces sh_binary redirects with aliases in Bazel.Gravatar Adam Michael2016-08-18
| | | | | -- MOS_MIGRATED_REVID=130549870
* Include the location of the current swiftmodule for LLDB.Gravatar Dmitry Shevchenko2016-08-12
| | | | | | | * LLDB spawns an instance of Swift compiler under the hood, which is configured via command line flags recorded in DWARF at the time of compilation. In order for LLDB to properly import the module for the target being built, that command line has to provide a path to that module. -- MOS_MIGRATED_REVID=130045157
* Remove all temporary detrius upon exiting objc action scripts.Gravatar Peter Schmitt2016-08-11
| | | | | -- MOS_MIGRATED_REVID=129867284