Allow Buck to run without Android SDK #7
Comments
Thanks for filing: this is definitely an oversight on our part. Buck is meant to be able to support "pure Java" projects, as well as Android projects. |
If you are interested in looking at a real world pure Java project's usage of Buck, see https://gerrit.googlesource.com/gerrit/+/57a4d597cd1111ebabf9bbf495ecd45324e7acdd as it contains a complete, non-trivial "pure Java" project build system alongside of the existing Maven build. I unfortunately had to use 22 genrules() to provide a number of hacks for features missing from Buck. The worst hack of all was committing local.properties to work around the Android SDK. :-) |
I have a fix for this internally, but I'm waiting for a code review :( On Wed, May 1, 2013 at 10:02 AM, Shawn O. Pearce
|
Fixed: |
…to master * commit '5860f1ccb114d2a1786748603a444996debd09f6': (680 commits) Fix crash building Android rules Ignore classes within anonymous or local classes Fix annotations on inner class constructor params Enable `abi_verification_mode=fail` Fix stubs for deeply-nested static inner classes Fix references to deeply-nested enums Close cache at the end of cache command Add ndk.extra_ldflags Refactor creation of NDK ldflags Handle race conditions in Buck project constructor. ClassLoaderBootstrapper: Create ClassLoader earlier Stop logging "No Android platform target specified" to console JarBuilder: Eliminate checkNotNull Add more info for cannot delete directory failures AndroidLibraryDescription: Move ABI rule construction into the builder AndroidLibraryDescription: Move graph enhancement into the builder AndroidLibraryDescription: Push provided_deps_query into the builder DefaultJavaLibraryBuilder: Factor out getJavac DefaultJavaLibraryBuilder: Make initial BuildRuleParams accessible to subclasses Plumb TargetGraph and CellPathResolver into DefaultJavaLibraryBuilder ...
Add a new option to .buckconfig that indicates the project does not need the Android SDK. Disabling the Android SDK check allows Buck to run for normal Java projects that only need java_library(), java_binary(), and prebuilt_jar().
The text was updated successfully, but these errors were encountered: