aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
Commit message (Collapse)AuthorAge
* Delete //external references related to protos.Gravatar Carmi Grushko2017-02-03
| | | | | | | | These are not used anymore. -- PiperOrigin-RevId: 146381129 MOS_MIGRATED_REVID=146381129
* Fix skylark syntax error in Bazel git_repositories.bzl.Gravatar Adam Michael2017-02-02
| | | | | | | | Identified in https://github.com/bazelbuild/bazel/issues/1408. -- PiperOrigin-RevId: 146308540 MOS_MIGRATED_REVID=146308540
* Add emulator shared libs to android_device launcher runfiles.Gravatar Adam Michael2017-02-02
| | | | | | -- PiperOrigin-RevId: 146300001 MOS_MIGRATED_REVID=146300001
* Clean up intellij_info provider.Gravatar Googler2017-02-02
| | | | | | | | No need to confusingly separate out providers and pollute the namespace -- instead collect everything under the "intellij_info" provider. -- PiperOrigin-RevId: 146279148 MOS_MIGRATED_REVID=146279148
* Rollback of commit 932d1abfa34267a9e5abc7441c9e2a081beedd85.Gravatar Adam Michael2017-02-02
| | | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Rollforward with fixes and a test. Previously AndroidSdkRepository required that system-images/ directory exist in the Android SDK. However, it does not exist until you download the first system image. *** Original change description *** Automated [] rollback of commit 06072c557290b97cb2d2e4fd255b647a9208cb5c. *** Reason for rollback *** Broke andriod_sdk_repository on ci.bazel.io See https://github.com/bazelbuild/bazel/issues/2465 *** Original change description *** Make android_sdk_repository discover all system-images directories in the sdk. This will be used by the upcoming android_device rule that launches emulators. -- PiperOrigin-RevId: 146258003 MOS_MIGRATED_REVID=146258003
* Rollback of commit 06072c557290b97cb2d2e4fd255b647a9208cb5c.Gravatar Yun Peng2017-02-01
| | | | | | | | | | | | | | | | | *** Reason for rollback *** Broke andriod_sdk_repository on ci.bazel.io See https://github.com/bazelbuild/bazel/issues/2465 *** Original change description *** Make android_sdk_repository discover all system-images directories in the sdk. This will be used by the upcoming android_device rule that launches emulators. -- PiperOrigin-RevId: 146235800 MOS_MIGRATED_REVID=146235800
* Windows, cc_configure: use BAZEL_SH, not cygpathGravatar Laszlo Csomor2017-02-01
| | | | | | | | | | | | | | Use the BAZEL_SH envvar while creating the Windows CROSSTOOL file, instead of calling "cygpath -m /". The latter is based on the assumption that we are running under MSYS. Fixes https://github.com/bazelbuild/bazel/issues/2463 See https://github.com/bazelbuild/bazel/issues/2107 -- PiperOrigin-RevId: 146227581 MOS_MIGRATED_REVID=146227581
* Make android_sdk_repository discover all system-images directories in the sdk.Gravatar Adam Michael2017-02-01
| | | | | | | | This will be used by the upcoming android_device rule that launches emulators. -- PiperOrigin-RevId: 146183077 MOS_MIGRATED_REVID=146183077
* Make the Bazel unified launcher alias point to unified_launcher_head.Gravatar Adam Michael2017-02-01
| | | | | | -- PiperOrigin-RevId: 146142811 MOS_MIGRATED_REVID=146142811
* Create aliases for tools for upcoming android_device rule.Gravatar Adam Michael2017-01-27
| | | | | | | | Note that these aliases are intentionally not yet functional. Nothing should be trying to build them. -- PiperOrigin-RevId: 145746166 MOS_MIGRATED_REVID=145746166
* Fix build_split_manifest.py to not include the versionCode or versionNameGravatar Alex Humesky2017-01-27
| | | | | | | | attributes if they aren't present in the original manifest. Before, it would make them None, and aapt would fail. -- PiperOrigin-RevId: 145726642 MOS_MIGRATED_REVID=145726642
* msvc_tools.py.tpl: Suppress all warning messages if /w is specified Gravatar Yun Peng2017-01-26
| | | | | | | | | | | Fixed #2433 Working towards #1897 -- Change-Id: I62ed4eabac5c788f90b10e9dfe4c9ffee6883097 Reviewed-on: https://cr.bazel.build/8492 PiperOrigin-RevId: 145675987 MOS_MIGRATED_REVID=145675987
* Switch Bazel to use the common test env variables.Gravatar Ulf Adams2017-01-26
| | | | | | | | | | | | | | | | | | The effect of this change on Bazel is that we now set the entire list of env variables needed for the various protocols: sharding protocol, undeclared outputs protocol, test warnings, unused runfiles, premature exit signalling, and coverage. We also now set TEST_SIZE, TEST_TIMEOUT, and TEST_RANDOM_SEED. I'm not sure if all of the Bazel-side infrastructure for those protocols is ready yet. With further progress on code sharing, they should fall into place soon, though. Also set GUNIT_OUTPUT for now. Ideally, we'd change upstream to accept our more generic names, but this should do for now. -- PiperOrigin-RevId: 145660945 MOS_MIGRATED_REVID=145660945
* msvc_tools.py.tpl: Change default runtime library to staticGravatar Yun Peng2017-01-25
| | | | | | | | Fixed https://github.com/bazelbuild/bazel/issues/2415 -- PiperOrigin-RevId: 145530562 MOS_MIGRATED_REVID=145530562
* Update _get_cpu_value() to fix issue #1264 Gravatar Marcel Hlopko2017-01-24
| | | | | | | | | | | | | I have tested on NVIDA Jetson TK1 and bazel was able to compile. I believe with this quick fix would make bazel installation on Linux ARM devices easier. I have been spending 5 hours to figure out a correct way to install bazel. Closes #2389. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2389 PiperOrigin-RevId: 145401787 MOS_MIGRATED_REVID=145401787
* Consume linker_param_file build variable in windows crosstoolGravatar Marcel Hlopko2017-01-24
| | | | | | | | Fixes #2405 -- PiperOrigin-RevId: 145394624 MOS_MIGRATED_REVID=145394624
* Windows: fix MSVC compilations at HEAD Gravatar László Csomor2017-01-23
| | | | | | | | | | | | | | | | | | | | | | Strip quotes from arg0 in call_python.bat . This bug was has been there longer, but never got triggered, because we only quoted arg0 if it contained spaces, which it most likely never actually did, or not in this particular case. After submitting e68c6b5 and 9e8bc63 which fixed the compilation errors in the former, we started always quoting argv0 in subprocesses, which exposed this bug, leading to a corrupt DRIVER_DIR value in call_python.bat. Fixes https://github.com/bazelbuild/bazel/issues/2402 -- Change-Id: Iab5c00001fc4307f2e23c46c8187f5ef15d83d41 Reviewed-on: https://cr.bazel.build/8436 PiperOrigin-RevId: 145310121 MOS_MIGRATED_REVID=145310121
* Makes the ios runner script open the simulator in the foreground as opposed ↵Gravatar Sergio Campama2017-01-23
| | | | | | | | to behind the terminal when using blaze run ios_app_target. -- PiperOrigin-RevId: 145279294 MOS_MIGRATED_REVID=145279294
* Expose type of library_to_link in CROSSTOOLGravatar Marcel Hlopko2017-01-23
| | | | | | | | | | This cl relieves us from hard-coding -l and -l: flags in Bazel. To be able to express the behavior in CROSSTOOL, we need to know what type of library are we dealing with. -- PiperOrigin-RevId: 145271426 MOS_MIGRATED_REVID=145271426
* Don't bundle android tests into the Bazel binary.Gravatar Adam Michael2017-01-20
| | | | | | | | Saves 12kB! :) -- PiperOrigin-RevId: 144997917 MOS_MIGRATED_REVID=144997917
* maven_rules.bzl: Fix maven coordinates order mismatch Gravatar David Ostrovsky2017-01-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Classifier should be provided in the form: "groupId:artifactId:version[:packaging][:classifier]" because that's what maven-dependency-plugin expects and not in the form: "groupId:artifactId[:packaging][:classifier]:version" as documented here: [1]. Also it was missed to reflect the classifier in the output artifact name. TEST PLAN: WORKSPACE: load("//tools:maven_rules.bzl", "maven_jar", "maven_dependency_plugin") maven_dependency_plugin() maven_jar( name = "jetty_server_sources", artifact = "org.eclipse.jetty:jetty-server:9.3.11.v20160721:jar:sources", sha1 = "b23cac190808baed928260b2c9beca3b1ed232b4", ) BUILD: java_library( name = "jetty-server-sources", exports = ["@jetty_server_sources//jar"], ) $ bazel build :jetty-server-sources [...] Target //:jetty-server-sources up-to-date: bazel-bin/libjetty-server-sources.jar [1] https://maven.apache.org/pom.html#Maven_Coordinates Fixes #2049. -- Change-Id: I3297fb3676324cc6b4bb6ff6b2b6e18ce33f633c Reviewed-on: https://cr.bazel.build/7213 PiperOrigin-RevId: 144972944 MOS_MIGRATED_REVID=144972944
* Fix-up release-related TODOs.Gravatar Dmitry Shevchenko2017-01-19
| | | | | | -- PiperOrigin-RevId: 144965639 MOS_MIGRATED_REVID=144965639
* C++ test: test with Debian stretch Gravatar Damien Martin-Guillerez2017-01-17
| | | | | | | | | | Fixes #2360. -- Change-Id: I33dcfa1128b74f20dde14c5b5e095790a8961bd5 Reviewed-on: https://cr.bazel.build/8219 PiperOrigin-RevId: 144685099 MOS_MIGRATED_REVID=144685099
* Rollback of commit 156adeec613ab140a91d73e1147bc688689bcfb7.Gravatar Lukacs Berki2017-01-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Breaks Bazel on JDK 7: http://ci.bazel.io/view/Dashboard/job/bazel-tests/BAZEL_VERSION=HEAD-jdk7,PLATFORM_NAME=linux-x86_64/475/console *** Original change description *** Automated [] rollback of commit 5163ec2c0db8fbdc7f367bb4aca5b6d7ae6d80b0. *** Reason for rollback *** See unknown commit *** Original change description *** Automated [] rollback of commit c9dbd4c1a4a4b4345c0b3924f86e01612ae12807. *** Reason for rollback *** Breaks bazel-docker-tests http://ci.bazel.io/view/Dashboard/job/bazel-docker-tests/lastCompletedBuild/BAZEL_VERSION=HEAD,PLATFORM_NAME=docker/console *** Original change description *** Enable header compilation by default -- PiperOrigin-RevId: 144443446 MOS_MIGRATED_REVID=144443446
* Rollback of commit 5163ec2c0db8fbdc7f367bb4aca5b6d7ae6d80b0.Gravatar Liam Miller-Cushon2017-01-13
| | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** See unknown commit *** Original change description *** Automated [] rollback of commit c9dbd4c1a4a4b4345c0b3924f86e01612ae12807. *** Reason for rollback *** Breaks bazel-docker-tests http://ci.bazel.io/view/Dashboard/job/bazel-docker-tests/lastCompletedBuild/BAZEL_VERSION=HEAD,PLATFORM_NAME=docker/console *** Original change description *** Enable header compilation by default -- PiperOrigin-RevId: 144344329 MOS_MIGRATED_REVID=144344329
* Make android_sdk_repository create one android_sdk per api level in the SDK.Gravatar Adam Michael2017-01-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | api_level is no longer required. It now sets the default android_sdk that is used if the --android_sdk flag is not passed. If it is not set, the highest api_level will be used as the default. The new behavior is demonstrated by the following example: $ ls $ANDROID_HOME/platforms android-21 android-22 android-23 $ cat WORKSPACE android_sdk_repository( name = "foo", ) $ bazel build //java/my/app # uses api level 23 $ bazel build --android_sdk=@foo//:sdk-22 //java/my/app # uses api level 22 $ cat > WORKSPACE <<EOF android_sdk_repository( name = "foo", api_level = 21, ) EOF $ bazel build //java/my/app # uses api level 21 $ bazel build --android_sdk=@foo//:sdk-23 //java/my/app # uses api level 23 See https://github.com/bazelbuild/bazel/issues/2284 for the master plan for android_sdk_repository. RELNOTES: android_sdk_repository no longer requires api_level. If one is not specified, the highest android platform installed will be used. Furthermore, android_sdk's are created for all android platforms installed and can be specified with the --android_sdk flag. -- PiperOrigin-RevId: 144258881 MOS_MIGRATED_REVID=144258881
* Add --swiftcopt support to swift_libraryGravatar Dmitry Shevchenko2017-01-12
| | | | | | -- PiperOrigin-RevId: 144231300 MOS_MIGRATED_REVID=144231300
* Rollback of commit c9dbd4c1a4a4b4345c0b3924f86e01612ae12807.Gravatar Marcel Hlopko2017-01-11
| | | | | | | | | | | | | | | | *** Reason for rollback *** Breaks bazel-docker-tests http://ci.bazel.io/view/Dashboard/job/bazel-docker-tests/lastCompletedBuild/BAZEL_VERSION=HEAD,PLATFORM_NAME=docker/console *** Original change description *** Enable header compilation by default -- PiperOrigin-RevId: 144176396 MOS_MIGRATED_REVID=144176396
* In the j2objc wrapper script, add the ability to process more than one ↵Gravatar Rumou Duan2017-01-10
| | | | | | | | | | source jars. In the j2objc dead code removal script, quote the object file names when invoking ar. They may contain special shell characeters. -- PiperOrigin-RevId: 143993977 MOS_MIGRATED_REVID=143993977
* Enable header compilation by defaultGravatar Liam Miller-Cushon2017-01-10
| | | | | | -- PiperOrigin-RevId: 143972504 MOS_MIGRATED_REVID=143972504
* Remove method presence check after a bazel releaseGravatar Dmitry Shevchenko2017-01-10
| | | | | | -- PiperOrigin-RevId: 143966520 MOS_MIGRATED_REVID=143966520
* Separate bazel/blaze-specific changes in IntelliJ aspect.Gravatar Googler2017-01-09
| | | | | | -- PiperOrigin-RevId: 143905310 MOS_MIGRATED_REVID=143905310
* Create indirections to intellij_info.bzl.Gravatar Googler2017-01-09
| | | | | | -- PiperOrigin-RevId: 143864069 MOS_MIGRATED_REVID=143864069
* Remove filegroups in tools/android/BUILD.tools in favor of aliases.Gravatar Adam Michael2017-01-09
| | | | | | -- PiperOrigin-RevId: 143825037 MOS_MIGRATED_REVID=143825037
* Rollback of commit 27895101ce3d8e88b80e53f98fccf1d72310b54d.Gravatar Googler2017-01-09
| | | | | | | | | | | | | | *** Reason for rollback *** Breaks mac integration test *** Original change description *** Create indirections to intellij_info.bzl. -- PiperOrigin-RevId: 143802424 MOS_MIGRATED_REVID=143802424
* Create indirections to intellij_info.bzl.Gravatar Googler2017-01-09
| | | | | | -- PiperOrigin-RevId: 143793200 MOS_MIGRATED_REVID=143793200
* Remove conditionals in skylark apple rules for presence of ↵Gravatar Chris Parsons2017-01-06
| | | | | | | | objc.dynamic_framework_dir -- PiperOrigin-RevId: 143700968 MOS_MIGRATED_REVID=143700968
* Force debug info output into Swift modulesGravatar Dmitry Shevchenko2017-01-05
| | | | | | | | * This makes sure that all swiftmodule artifacts contain debug information needed for LLDB to recreate the module at runtime. -- PiperOrigin-RevId: 143685225 MOS_MIGRATED_REVID=143685225
* Split tools/android/BUILD into BUILD and BUILD.tools.Gravatar Adam Michael2017-01-05
| | | | | | | | | | | | | | This should help clear up the confusion that caused https://github.com/bazelbuild/bazel/issues/2283. Now all of the following work: bazel build //tools/android/... bazel test //tools/android/... bazel build @bazel_tools//tools/android/... -- PiperOrigin-RevId: 143666995 MOS_MIGRATED_REVID=143666995
* xcode locator prefers xcodes installed under /Applications/Gravatar Chris Parsons2017-01-03
| | | | | | -- PiperOrigin-RevId: 143463741 MOS_MIGRATED_REVID=143463741
* Support gold linker in cc_configure.bzlGravatar Marcel Hlopko2017-01-03
| | | | | | | | RELNOTES: Autodetect gold linker in cc_configure.bzl -- PiperOrigin-RevId: 143374572 MOS_MIGRATED_REVID=143374572
* Guard -pass-exit-codes to support clangGravatar Marcel Hlopko2016-12-23
| | | | | | | | | | | | | Currently using CC=clang will fail because -pass-exit-codes is an unsupported option (Github issue #2121). This is a minimal fix to add a guard for this option. -- Change-Id: I86c3415ea7280a3af1d5579c1374bfa74ce31b5d Reviewed-on: https://cr.bazel.build/8070 PiperOrigin-RevId: 142829737 MOS_MIGRATED_REVID=142829737
* 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
* Add stub ios toolchain to bazel BUILD.staticGravatar Cal Peyser2016-12-23
| | | | | | -- PiperOrigin-RevId: 142775180 MOS_MIGRATED_REVID=142775180
* Rollback of commit e81ff0e156647ae680346ac833313319e7ea69d6.Gravatar Alex Humesky2016-12-22
| | | | | | | | | | | | | | | | | *** Reason for rollback *** breaks bazel: https://github.com/bazelbuild/bazel/issues/2283 http://ci.bazel.io/job/bazel-tests/432/BAZEL_VERSION=HEAD,PLATFORM_NAME=linux-x86_64/console *** Original change description *** Remove broken and unused Android tools aliases. -- PiperOrigin-RevId: 142768488 MOS_MIGRATED_REVID=142768488
* Rename toolchain_flags to legacy_link_flags build variableGravatar Marcel Hlopko2016-12-22
| | | | | | -- PiperOrigin-RevId: 142767245 MOS_MIGRATED_REVID=142767245
* Rollback of commit 87fd5baeaa3f983bbec0c0dbc7b16eb52cf2267f.Gravatar Tobias Werth2016-12-22
| | | | | | -- PiperOrigin-RevId: 142758502 MOS_MIGRATED_REVID=142758502
* Rollback of commit b7c00d8762d74fb54d0a6b0eb355abc6dc7a97c3.Gravatar Damien Martin-Guillerez2016-12-22
| | | | | | | | | | | | | | *** Reason for rollback *** Does not build: http://ci.bazel.io/job/Bazel/1129/ *** Original change description *** Export dot-format graphs as-is and download dot as an external repo -- PiperOrigin-RevId: 142748151 MOS_MIGRATED_REVID=142748151
* Move hardcoded toolchain linker flags to CROSSTOOLGravatar Marcel Hlopko2016-12-22
| | | | | | | | | | | | | This cl introduces another build variable: toolchain_flags and updates all the affected crosstools (those which started using action_configs, because the defaults from CppLinkActionConfigs are not applied then). This build variable is a requirement for follow-up refactoring exposing param_files build variable. With toolchain_flags and param_files we will have full control over flags placement on the link command line. -- PiperOrigin-RevId: 142741060 MOS_MIGRATED_REVID=142741060
* Move hardcoded -L linker flags to CROSSTOOLGravatar Marcel Hlopko2016-12-22
| | | | | | | | | | | This cl introduces another build variable: library_search_directories, removes hardcoded -L generation from blaze and updates all the affected crosstools (those which started using action_configs, because the defaults from CppLinkActionConfigs are not applied then). -- PiperOrigin-RevId: 142738674 MOS_MIGRATED_REVID=142738674