aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools
Commit message (Collapse)AuthorAge
* Minor usability fixes for the incremental deployment stub application:Gravatar Lukacs Berki2015-09-25
| | | | | | | | - Pass a File around for cacheDir instead of its String name. It was needlessly converted to String, which made the stub application fail if cacheDir was null (odd, but seems to happen) - Enhance a log message so that it contains more than zero information -- MOS_MIGRATED_REVID=103928940
* Stop AndroidResourceProcessingAction from creating a "_resources" folder in ↵Gravatar Andrew Pellegrini2015-09-22
| | | | | | | the source tree when invoked from ApplicationManifest and AndroidLibrary. -- MOS_MIGRATED_REVID=103648946
* Do not store a separate map for external package data. This ensures that ↵Gravatar Han-Wen Nienhuys2015-09-21
| | | | | | | | | serialization works correctly. Removes ExternalPackage as Package specialization. -- MOS_MIGRATED_REVID=103395682
* Separate build-specific types and types inherent to Skylark.Gravatar Lukacs Berki2015-09-21
| | | | | -- MOS_MIGRATED_REVID=103374106
* Add a maven_server ruleGravatar Kristina Chodorow2015-09-16
| | | | | | | | This will also be used for authentication, but that has not been implemented yet. -- MOS_MIGRATED_REVID=103194964
* Makes the generation of the Info.plist environment variables fail-safe.Gravatar Anastasios Kakalis2015-09-16
| | | | | | | | | | | | | | | | | | | | | | | | | | This prevents the invocation from failing, when one of the variables could not be discovered (and mimics the behavior of Xcode 7.1 and SDK 9.1). An example generated with SDK 9.1 { ... BuildMachineOSBuild = 14F27; DTCompiler = "com.apple.compilers.llvm.clang.1_0"; DTPlatformBuild = ""; DTPlatformVersion = "9.1"; DTSDKBuild = 13B5110e; DTXCodeBuild = 7B60; DTXcode = 0710; ... } RELNOTES: -- MOS_MIGRATED_REVID=103191602
* 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
* 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
* Use ApplicationInfo.dataDir instead of hardcoding "/data/data/<PACKAGE ↵Gravatar Lukacs Berki2015-09-11
| | | | | | | NAME>" in the stub application. -- MOS_MIGRATED_REVID=102733123
* Prevent android_binary rule from overwriting the <compatible-screens> ↵Gravatar Andrew Pellegrini2015-09-11
| | | | | | | | | section in the AndroidManifest.xml when it already contains a <screen> tag for each density specified in the densities attribute. RELNOTES: The <compatible-screens> section of the AndroidManifest.xml will not be overwritten if it already contains a <screen> tag for each of the densities specified on the android_binary rule. -- MOS_MIGRATED_REVID=102691148
* 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
* Move generate_workspace to src/toolsGravatar Kristina Chodorow2015-09-04
| | | | | | | | Seems like a better location for it (easier for people to run than src/main/java/com/google/devtools/build etc). -- MOS_MIGRATED_REVID=102354250
* Quick fix for shipping the android tools in the Bazel binaryGravatar Damien Martin-Guillerez2015-09-03
| | | | | | | | | | | | | | This is not really nice, there are several hacks there. This repository will get removed in the future and linked to a remote one instead. I tested it against the tutorial and it works like a charm. mobile-install seems like to work, maybe that's also fixing the last issue reported in #392. Known issue: Java compilation output errors about files being modified in the future. -- MOS_MIGRATED_REVID=102282979
* 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 up StdRedirect.c so it reports errors into CrashLogs and crashes instead ↵Gravatar Dave MacLachlan2015-08-11
| | | | | | | | | | | of just to system log which can be missed. Fix up update_binaries so that StdRedirect.dylib is built before testrunner, because at this time testrunner is bundling StdRedirect into its jar file and there testrunner could easily pick up older binaries. RELNOTES:none -- MOS_MIGRATED_REVID=100300804
* Show build options on dashboardGravatar Kristina Chodorow2015-08-06
| | | | | | | getEffectiveOptions wasn't returning any of the options. -- MOS_MIGRATED_REVID=100041131
* Actually export the dashboard README to the public repoGravatar Kristina Chodorow2015-08-05
| | | | | -- MOS_MIGRATED_REVID=99867246
* 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
* Make three logging statements fine instead of info, so they don't show up in ↵Gravatar Googler2015-07-30
| | | | | | | normal builds. -- MOS_MIGRATED_REVID=99474480
* Fix fallout from []: it broke "blaze mobile-install" when no --native_lib ↵Gravatar Lukacs Berki2015-07-29
| | | | | | | arguments were passed to the install script. -- MOS_MIGRATED_REVID=99271033
* Make the stub application support incremental deployment of native libraries.Gravatar Lukacs Berki2015-07-29
| | | | | | | Care is taken so that this works without Bazel or the installer script supporting it so that the changes can be submitted separately. -- MOS_MIGRATED_REVID=99258564
* Include test information in target fieldsGravatar Kristina Chodorow2015-07-27
| | | | | | | -- Change-Id: I8b896e6d4234b5a92d769a16cff70704f1fc9d40 Reviewed-on: https://bazel-review.googlesource.com/1700 MOS_MIGRATED_REVID=99176169
* Updates AndroidResourceProcessingAction and AarGeneratorAction to use temp ↵Gravatar Alex Humesky2015-07-23
| | | | | | | directories so that their files don't conflict with subsequent or concurrent invocations of those actions. -- MOS_MIGRATED_REVID=98848810
* Fix dashboard buildGravatar Kristina Chodorow2015-07-21
| | | | | -- MOS_MIGRATED_REVID=98733621
* 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
* Add tests for dashGravatar Kristina Chodorow2015-07-17
| | | | | | | Time-traveling test-driven-development. -- MOS_MIGRATED_REVID=98399070
* Description redacted.Gravatar Googler2015-07-16
| | | | | -- MOS_MIGRATED_REVID=98347349
* Allows bundlemerge to handle zip files that have directory entries in them. ↵Gravatar Googler2015-07-10
| | | | | | | | | Directory entries are allowed to exist in multiple zip files. File entries are only allowed to exist in one zip file. RELNOTES:None -- MOS_MIGRATED_REVID=97887821
* Add "errors" to the list of things that actool should report to us.Gravatar Googler2015-07-10
| | | | | | | RELNOTES: errors should now be reported correctly by actoolzip -- MOS_MIGRATED_REVID=97819979
* 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
* Basic dashboard for build resultsGravatar Kristina Chodorow2015-07-07
| | | | | -- MOS_MIGRATED_REVID=97675174
* 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
* The final CL in getting Android support to work: add resources_processor.sh ↵Gravatar Lukacs Berki2015-06-30
| | | | | | | and aar_generator.sh to the tools directory and make stub applications proper android_library rules instead of stub filegroups. -- MOS_MIGRATED_REVID=97206853
* Fix of intermittent hang when building Aar files. This is an untested fix ↵Gravatar Andrew Pellegrini2015-06-26
| | | | | | | because the hang cannot be reproduced on demand, but not calling System.exit() has caused the same problem previously in both AndroidResourceProcessingAction and AarGeneratorAction. Mimics the exception handling behavior in AndroidResourceProcessingAction, which is not known to cause any hangs. -- MOS_MIGRATED_REVID=96911485
* Open source AarGeneratorAction and AndroidResourceProcessingAction.Gravatar Andrew Pellegrini2015-06-26
| | | | | -- MOS_MIGRATED_REVID=96883818
* Add warnings, notices, human readable output and png compression to actool ↵Gravatar Googler2015-06-19
| | | | | | | | | by default. RELNOTES:none -- MOS_MIGRATED_REVID=96332527
* 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
* Move the parallel dexing tools to the Bazel tree.Gravatar Lukacs Berki2015-06-05
| | | | | -- MOS_MIGRATED_REVID=95278949
* Added BUILD files for X-code / Objective-C toolingGravatar Damien Martin-Guillerez2015-05-27
| | | | | | | -- Change-Id: I700baf9056bcb75c87579136fc764e84a5286c55 Reviewed-on: https://bazel-review.googlesource.com/#/c/1370/ MOS_MIGRATED_REVID=94465718
* Fixes for several issues with using ibtool.Gravatar Googler2015-05-22
| | | | | | | | | | | | Added support for errors, warnings, notices from ibtool Canonicalizes paths passed to ibtool to get around radar 21045660 'ibtool has difficulty dealing with relative paths'. Added support for module argument to ibtool. Consolidates argument passing for storyboards and xibs. Sets output for ibtool to human readable. Turns on auto-activate-custom-fonts for ibtool to match Xcode invocations. -- MOS_MIGRATED_REVID=94240330
* Update to use new, more performant, API of ZipCombiner instead of now ↵Gravatar Googler2015-05-15
| | | | | | | deprecated features in XCode tooling. -- MOS_MIGRATED_REVID=93552526
* Get the code cache directory for stub application from the Context instead ↵Gravatar Lukacs Berki2015-05-11
| | | | | | | | | | | of hard-coding it and move the incremental deployment directory from /sdcard/incrementaldeployment to /data/local/tmp/incrementaldeployment. The first is necessary because if the app is not run under the default user profile (e.g. Android For Work), the default location is not writable, thus, sadness, the second is necessary because /sdcard is not accessible from the non-default profile. This also makes it possible to eventually install .so files there, because the +x bit can be set under /data/local/tmp (unlike under /sdcard). -- MOS_MIGRATED_REVID=93287264
* Fix Bazel integration tests.Gravatar Lukacs Berki2015-04-14
| | | | | -- MOS_MIGRATED_REVID=91082035
* Move the Android incremental deployment stub application to the Bazel tree.Gravatar Lukacs Berki2015-04-14
| | | | | | | Note that the code in the Android source tree does not currently compile because Bazel does not make the Android classes available yet in any form. -- MOS_MIGRATED_REVID=91077712
* 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