aboutsummaryrefslogtreecommitdiffhomepage
path: root/compile.sh
Commit message (Collapse)AuthorAge
...
* Tweak the bootstrapping and build process so that the prebuilt tools under ↵Gravatar Lukacs Berki2015-11-18
| | | | | | | | | tools/jdk are not necessary anymore. Fixes #508. -- MOS_MIGRATED_REVID=108123264
* Add xcrunwrapper to deal with DEVELOPER_DIR and SDKROOT.Gravatar Dave MacLachlan2015-11-06
| | | | | | | | | Replace uses of $SDKROOT and $DEVELOPER_DIR values in compile paths with __DEVELOPER_DIR__ and __SDKROOT__ to that xcrunwrapper can deal with them appropriately. RELNOTES:none -- MOS_MIGRATED_REVID=107259512
* Make the bootstrapping process work again after moving tools to the ↵Gravatar Lukacs Berki2015-10-12
| | | | | | | | | | | @bazel_tools repository. The fix is to always compile tools when the Bazel binary is compiled and add the bootstrap arguments to bootstrap_test. This stil litters the git client with output files in random places, which is a bit difficult to fix, since //src:bazel expects these files to be there so that it can embed them into the output binary. I didn't notice this issue because tools/jdk/*_deploy.jar is in the .gitignore file, thus, when "git status" reported nothing, I asumed I ran the build in a clean client. -- MOS_MIGRATED_REVID=105206124
* Move actoolzip, momczip and swiftstdlibtoolzip to tools/xcode and convert ↵Gravatar Dave MacLachlan2015-09-30
| | | | | | | | | them to scripts instead of java apps. RELNOTES: actoolzip, momczip and swiftstdlibtoolzip have all been made into bash scripts and have been renamed to actoolwrapper, momcwrapper and swiftstdlibtoolwrapper respectively. The old versions will be deleted in a later change. -- MOS_MIGRATED_REVID=104225062
* Rationalize copyright headersGravatar Damien Martin-Guillerez2015-09-25
| | | | | | | | | | | The headers were modified with `find . -type f -exec 'sed' '-Ei' 's|Copyright 201([45]) Google|Copyright 201\1 The Bazel Authors|' '{}' ';'` And manual edit for not Google owned copyright. Because of the nature of ijar, I did not modified the header of file owned by Alan Donovan. The list of authors were extracted from the git log. It is missing older Google contributors that can be added on-demand. -- MOS_MIGRATED_REVID=103938715
* 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
* Unbreak CI: the Android SDK test in compile.sh was wrong.Gravatar Damien Martin-Guillerez2015-09-04
| | | | | -- MOS_MIGRATED_REVID=102345101
* Setup the ci build to test also Android tests when availableGravatar Damien Martin-Guillerez2015-09-04
| | | | | | | | | | | | With this script, the easiest way to run the test suite is now: bash -c "export ANDROID_SDK_PATH=$HOME/bin/android-sdk-linux; \ export ANDROID_NDK_PATH=$HOME/bin/android-ndk-r10e; \ source ./scripts/ci/build.sh; \ bazel_build output/ci" -- MOS_MIGRATED_REVID=102334239
* Add an integration test for Android rules.Gravatar Lukacs Berki2015-09-03
| | | | | | | Currently only building them is tested, not running them or mobile-install, but it's still a good start. -- MOS_MIGRATED_REVID=102237496
* Fix "compile.sh tools" on OS X when XCode is not installedGravatar Kristina Chodorow2015-08-21
| | | | | | | Fixes #262. -- MOS_MIGRATED_REVID=101126149
* Add .sh extension to ibtoolwrapper bash script in bazel compileGravatar Chris Parsons2015-08-07
| | | | | -- MOS_MIGRATED_REVID=100083317
* Rollback of commit da3cb806351e929becef19652c65d39efa61b9d9.Gravatar Googler2015-08-04
| | | | | | | | | | | | | *** Reason for rollback *** Breaking builds. [] *** Original change description *** RELNOTES: actoolzip, momczip and swiftstdlibtoolzip have all been made into bash scripts and have been renamed to actoolwrapper, momcwrapper and swiftstdlibtoolwrapper respectively. The old versions will be deleted in a later change. -- MOS_MIGRATED_REVID=99742398
* RELNOTES: actoolzip, momczip and swiftstdlibtoolzip have all been made into ↵Gravatar Googler2015-08-04
| | | | | | | bash scripts and have been renamed to actoolwrapper, momcwrapper and swiftstdlibtoolwrapper respectively. The old versions will be deleted in a later change. -- MOS_MIGRATED_REVID=99521906
* Rollback of commit b8d1e700841d8aa7186ccbdfb0eba53e12a672d0.Gravatar Lukacs Berki2015-07-21
| | | | | | | | | | | | | | | *** Reason for rollback *** Breaks most of the iOS targets on our continuous build. *** Original change description *** Move actoolzip, momczip and swiftstdlibtoolzip to tools/xcode and convert them to scripts instead of java apps. RELNOTES: actoolzip, momczip and swiftstdlibtoolzip have all been made into bash scripts and have been renamed to actoolwrapper, momcwrapper and swiftstdlibtoolwrapper respectively. The old versions will be deleted in a later change. -- MOS_MIGRATED_REVID=98716081
* 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