aboutsummaryrefslogtreecommitdiffhomepage
path: root/compile.sh
Commit message (Collapse)AuthorAge
...
* Description redacted.Gravatar Googler2015-07-16
| | | | | -- MOS_MIGRATED_REVID=98347349
* Make binaries and scripts in tools/objc executable.Gravatar Googler2015-07-16
| | | | | | | | | Fix for https://github.com/google/bazel/issues/300. RELNOTES:none -- MOS_MIGRATED_REVID=98230557
* Adds gen jar and manifest proto outputs.Gravatar Alex Humesky2015-07-10
| | | | | | | Adds a jar output to Java and Android rules which contains the class files for source files generated from Java annotation processors. For a java_binary foo, the jar will be foo-gen.jar, and for a java_library foo the jar will be libfoo-gen.jar, and similarly for Android. Also adds a binary serialized proto manifest file output to Java and Android rules which describes the contents of the output class jar of those rules, which is used to create the -gen.jar. See src/main/protobuf/java_compilation.proto. -- MOS_MIGRATED_REVID=97793715
* Moves ibtoolzip from src/tools/xcode-common/j/c/g/devtools/ to src/tools/xcode.Gravatar Googler2015-07-08
| | | | | | | | | | Moves ibtoolzip from being java based to being bash based for easier dev/testing. Changes the name of ibtoolzip to ibtoolwrapper to avoid conflicts with currently deployed bazel depending on the ibtoolzip name. Updates realpath Cleans up update_binaries.sh -- MOS_MIGRATED_REVID=97724252
* Fixed the deterministic test flakinessGravatar Damien Martin-Guillerez2015-07-02
| | | | | | | | | | | | If you already ran the deterministic test with an earlier version of the depot, the second run would build only once Bazel and use the previous run log to do the diff, leading to an obvious failure as the code did change. It was due to an incorrect parameter default value that pointed to the diff of the previous run, skipping the first bazel compilation. -- MOS_MIGRATED_REVID=97399620
* Implementation of realpath for Mac OS X. This will allow us to move some of ↵Gravatar Googler2015-07-01
| | | | | | | | | our tools (ibtool, actool etc) to shell scripts which should be faster and easier to maintain. RELNOTES: -- MOS_MIGRATED_REVID=97263085
* Support the --[no]master_bazelrc flagGravatar Damien Martin-Guillerez2015-06-25
| | | | | | | And get rid of usage of "blazerc" flags in our scripts. -- MOS_MIGRATED_REVID=96776423
* Force two rounds for the deterministic tests when no BAZEL_SUM is providedGravatar Damien Martin-Guillerez2015-06-25
| | | | | | | | | This resulted in most of the time on doing only one compilation and comparing with the previous checksum of generally a older build, making the deterministic test fails weirdly. -- MOS_MIGRATED_REVID=96769326
* Enforce embed label only if not setGravatar Damien Martin-Guillerez2015-06-24
| | | | | | | | | | This way we can use it to build unstamped binary with an empty EMBED_LABEL. -- Change-Id: Id63360f2ccd85a4ba42d54ba670c53cbadacfeca Reviewed-on: https://bazel-review.googlesource.com/#/c/1560/ MOS_MIGRATED_REVID=96764907
* Disable tests that requires JDK 8 when using compile.shGravatar Damien Martin-Guillerez2015-06-24
| | | | | | | Also fix the OS X travis build file. -- MOS_MIGRATED_REVID=96683399
* StdRedirect library for interposing iOSSimulator so we can redirect ↵Gravatar Googler2015-06-19
| | | | | | | | | stdin,stdout,stderr. A full example of its usage is in RunTests.sh. -- MOS_MIGRATED_REVID=96319787
* Add ability to compile objc_binary targets with Swift sources.Gravatar Googler2015-06-17
| | | | | | | | | | | | | * Swift sources whitelisted * Swift compilation and module merging actions * Swift stdlib copying into IPA action * Special case for signing embedded swift stdlib dylibs during bundle signing * Works with mixed ObjC/Swift sources * Doesn't support working with dependencies from Swift code. * Requires Xcode 6.3.1 for swift compiler and tooling. -- MOS_MIGRATED_REVID=96141887
* Fix travis configuration for JDK 8Gravatar Damien Martin-Guillerez2015-06-16
| | | | | | | | This is a replay of the changes from https://bazel-review.googlesource.com/#/c/1520 and that didn't got imported on the import CL. -- MOS_MIGRATED_REVID=96099800
* Added /etc/bazel.bazelrc as a global Bazel's master rc.Gravatar Damien Martin-Guillerez2015-06-15
| | | | | | | | | | This will allow system-wide configuration for system-wide installation of Bazel. -- Change-Id: I71b7232e648f2690766c3b9184f863dc888524c0 Reviewed-on: https://bazel-review.googlesource.com/#/c/1540/ MOS_MIGRATED_REVID=95994630
* Improve platform and CPU detection, use the correct protoc binary for the ↵Gravatar Philipp Wollermann2015-06-12
| | | | | | | | | running system. Tested on OS X 10.10, Debian 8.1 (x86_64) and Debian 8.1 (i686). -- MOS_MIGRATED_REVID=95819163
* Reorganized compile.shGravatar Damien Martin-Guillerez2015-06-10
| | | | | | | | | | | | | | | | Now the blessed Bazel binary is self-hosted and correctly labeled. All tools are also built using Bazel and labeled with the release. At the end of the compilation, the output folder only host the Bazel binary now. We use temporary folders to store the intermediate artifacts. Also integrated ./bootstrap_test.sh in compile.sh so there is only one script for everything regarding bootstraping Bazel. -- Change-Id: Idadbd075e7b8ecb6e306b919b7a73c647c5cfbae Reviewed-on: https://bazel-review.googlesource.com/#/c/1460/ MOS_MIGRATED_REVID=95625880
* Bootstrapping tools using BazelGravatar Damien Martin-Guillerez2015-06-05
| | | | | | | | | | | | Added target to use java skylark rules to bootstrap JavaBuilder and SingleJar. Uses thoses target to bootstrap JavaBuilder and SingleJar and compiles all tools using Bazel. -- Change-Id: I5142917c8b31e04015fbab89382df36b4892d8c6 Reviewed-on: https://bazel-review.googlesource.com/#/c/1451/ MOS_MIGRATED_REVID=95281092
* Remove fetch step from compile.shGravatar Kristina Chodorow2015-06-01
| | | | | | | | | | Also updates the fetch documentation. Now that it's been in the wild for a bit, keeping --fetch=true the default seems like the right choice: it's less confusing to new users and anyone who cares can put `build --fetch=false` in their .bazelrc file. -- MOS_MIGRATED_REVID=94912125
* Use the ijar ZIP implementation in Blaze instead of libarchiveGravatar Damien Martin-Guillerez2015-06-01
| | | | | | | | | | | This ZIP implementation is lightweight and rely on zlib for compression. libarchive was a bit tricky to set-up so it's better to use that one. -- Change-Id: I607b492998572e834e095a4606eeb77c0b574542 Reviewed-on: https://bazel-review.googlesource.com/#/c/1410/ MOS_MIGRATED_REVID=94910072
* added comment to compile.shGravatar David Mankin2015-05-29
| | | | | | | -- Change-Id: Id9e80ebc9f05ee7dcdf5d77e84e29cfb89de72cb Reviewed-on: https://bazel-review.googlesource.com/#/c/1400/ MOS_MIGRATED_REVID=94696229
* Unset _JAVA_OPTIONS in compile.shGravatar Damien Martin-Guillerez2015-05-27
| | | | | | | See comment in https://github.com/google/bazel/commit/f925f078be973b9c5e6882a99e35ab4ffff51cf4 -- MOS_MIGRATED_REVID=94456605
* Adding git commit hash as version when using compile.shGravatar Damien Martin-Guillerez2015-05-21
| | | | | -- MOS_MIGRATED_REVID=94088974
* Add a plugin to drop Error Prone-specific javacoptsGravatar Liam Miller-Cushon2015-05-18
| | | | | -- MOS_MIGRATED_REVID=93915666
* Set up pkg path for the fetch and query commands in .bazelrcGravatar Kristina Chodorow2015-05-18
| | | | | | | Fixes #192. -- MOS_MIGRATED_REVID=93890217
* Do not create objc helper tools when the platform is Linux.Gravatar Thiago Farina2015-05-15
| | | | | | | | | This only makes sense on Darwin platform. -- Change-Id: I337a92bfb9a121b925b5e12e44108abb8c6cbd46 Reviewed-on: https://bazel-review.googlesource.com/#/c/1330/ MOS_MIGRATED_REVID=93651773
* Require fetch for external dependenciesGravatar Kristina Chodorow2015-05-15
| | | | | | | | | | This is a bit annoying from a UX perspective, as the JDK is an "external dependency" (and the C++ compiler really should be) so you have to run "fetch" on new repositories with nothing in the WORKSPACE file before doing your first build. -- MOS_MIGRATED_REVID=93532829
* Test for existence of $HOME before writing ~/.bazelrc in compile.shGravatar Damien Martin-Guillerez2015-05-15
| | | | | | | Without that change, the compile.sh script fails when $HOME is unset. -- MOS_MIGRATED_REVID=93412872
* Rewrite of ZipCombiner to improve performance and maintainabilityGravatar Googler2015-05-08
| | | | | | | | | | | Poorly performing features of the API have been deprecated in favor of better alternatives: - use addZip(File) over addZip(InputStream) or addZip(String, InputStream) - use addFile(ZipFileEntry) over addFile(String, Date, InputStream, DirectoryEntryInfo) New zip package for high performance ZIP file manipulation. Can directly work with compressed ZIP entry data and has support for Zip64 (forces Zip32 by default). -- MOS_MIGRATED_REVID=93128639
* Put quotes around all paths that might have spacesGravatar Kristina Chodorow2015-04-28
| | | | | | | Kicks the can down the road for #167. -- MOS_MIGRATED_REVID=92270128
* compile.sh: Use $CXX/$CXXFLAGS for C++ compiler and its options.Gravatar Kyle Moffett2015-04-24
| | | | | | | | Traditionally, "$CPP" is the C preprocessor, not the C++ compiler, and the $CFLAGS variable is only for C compilation, not C++. -- MOS_MIGRATED_REVID=91898356
* Fix compile.sh for macportsGravatar Allen Porter2015-04-22
| | | | | | | | | | | | | | Add a newline to compile.sh so that the archive_dir variable is preserved when building with macports. Without this, we see the following: $ ./compile.sh cp: /include/archive.h: No such file or directory cp: /include/archive_entry.h: No such file or directory -- Change-Id: c03f3ba7070339ad2e9a0373f98135f780484431 MOS_MIGRATED_REVID=91703218
* Header cleanups.Gravatar Han-Wen Nienhuys2015-04-22
| | | | | -- MOS_MIGRATED_REVID=91681168
* Bazel compile.sh: prevent BUILD file to be copied in the outputGravatar Damien Martin-Guillerez2015-04-20
| | | | | | | | We should also move the output directory to bazel-something so it get excluded from the package path. -- MOS_MIGRATED_REVID=91567602
* Bazel compile.sh: test for existence of the protoc compilerGravatar Damien Martin-Guillerez2015-04-16
| | | | | | | | | Tested with removing the protoc binaries from a github copy. Fixes #128. -- MOS_MIGRATED_REVID=91297812
* Correctly quotes JAVA_HOME in Bazel's compile.shGravatar Damien Martin-Guillerez2015-04-16
| | | | | | | | | Part the fix for bug #128 Tested by making JDK point to a folder with space. -- MOS_MIGRATED_REVID=91295878
* Cleanup: Build file.cc as part of util library.Gravatar Thiago Farina2015-04-14
| | | | | | | | | | | | | | | | | | | | | | Looks like in the transition it was forgotten to be moved to the new location. As an effect of this change it was discovered that file.cc had an dependency back on blaze_util.cc (from client binary for die/pdie functions). In order to fix that dependency we have had to move die/pdie functions into util library (added errors.(cc|h)) for this. Tested on Linux with the following command lines: $ ./compile.sh $ ./output/bazel build //src/main/cpp:all $ ./output/bazel build //src:bazel $ ./bootstrap_test.sh all -- Change-Id: I70fb1b6189dc5af31f816332d76efe380ef26302 MOS_MIGRATED_REVID=90987514
* Create a clean base directory for Bazel toolsGravatar Kristina Chodorow2015-04-10
| | | | | | | | | Suggested on https://github.com/google/bazel/issues/103#issuecomment-91290723, this way the workspace on the package path doesn't include any (unwanted) build artifacts. -- MOS_MIGRATED_REVID=90733730
* Use new protoc binary for compiling Bazel on linux.Gravatar Han-Wen Nienhuys2015-04-09
| | | | | -- MOS_MIGRATED_REVID=90725916
* Update getting started instructions with .bazelrc strategyGravatar Kristina Chodorow2015-04-06
| | | | | -- MOS_MIGRATED_REVID=90418845
* Automated [] rollback of [].Gravatar Googler2015-04-06
| | | | | | | | | | | | | | | *** Reason for rollback *** New ZipCombiner creates malformed output ZIP files when input ZIP files contain more than 65535 entries, the maximum amount for non-64-bit ZIP files. *** Original change description *** Rewrite of ZipCombiner to improve performance and maintainability. Added devtools/build/zip to allow reading and writing of ZIP files without requiring decompressing file data to manipulate them. ZipCombiner API has some changes. ZipCombiner#addZip takes a File instead of InputStream. ZipCombiner#addFile takes a ZipFileEntry instead of DirectoryEntryInfo -- MOS_MIGRATED_REVID=90279976
* Description redacted.Gravatar Googler2015-04-03
| | | | | -- MOS_MIGRATED_REVID=90162183
* Detect the macport installation root automaticallyGravatar Volker Braun2015-04-01
| | | | | | -- Change-Id: I270ea8e2a0eebba4af252a7f29fb3347643903b4 MOS_MIGRATED_REVID=90055215
* Bazel: Patch in changes of pull request #83.Gravatar Laszlo Csomor2015-03-31
| | | | | | | https://github.com/google/bazel/pull/83 -- MOS_MIGRATED_REVID=89989164
* Unset JAVA_TOOL_OPTIONS in compile.shGravatar Damien Martin-Guillerez2015-03-25
| | | | | | | | | | | | If this option is set, the java version check fails. Fixing the java version check to support JAVA_TOOL_OPTIONS is more dangerous than simply unsetting it. Keeping JAVA_TOOL_OPTIONS would allow to override java compilation configuration of Bazel. Fixes #41 -- MOS_MIGRATED_REVID=89500863
* compile.sh: Show location of the new binaryGravatar Laurent Le Brun2015-03-25
| | | | | -- MOS_MIGRATED_REVID=89495398
* Fixed compile.sh with homebrew on OS XGravatar Damien Martin-Guillerez2015-03-25
| | | | | | | A previous commit was incomplete. -- MOS_MIGRATED_REVID=89490186
* Allow compile.sh to find libarchive on Mac with custom Homebrew directory.Gravatar Lukacs Berki2015-03-25
| | | | | | | | | This is a merge of https://github.com/safarmer/bazel/commit/dcddddcd2a3f61d1b760825a8f77f0e069f77e66 -- MOS_MIGRATED_REVID=89487751
* Move all examples into Bazel workspaceGravatar Damien Martin-Guillerez2015-03-24
| | | | | | | | Those examples will be used for Bazel integration tests and their sources should be available directly to the Bazel workspace itself. -- MOS_MIGRATED_REVID=89380736
* Add compilation of objc helper tools to compile.shGravatar Daniel Wagner-Hall2015-03-23
| | | | | -- MOS_MIGRATED_REVID=89147775
* Move all actual compilation to after function definitionsGravatar Daniel Wagner-Hall2015-03-20
| | | | | | | | This makes it easier to comment out large blocks of compilation, when testing only particular stages. -- MOS_MIGRATED_REVID=89099305