Getting Started
brew install bazel
Common
Command Line
bazel build //src:common
IntelliJ
- Install IntelliJ.
- Install the Intellij with Bazel plugin.
- "Import from workspace" the
src/common.bazelproject
file.
Android
Command Line
Using Android Studio to get the Android SDK here...
- Install Android Studio.
ln -s ~/Library/Android third_party/android
./tools/android
- Tools
- Android SDK Build-tools 22.0.1
- Android 5.1.1 (API 22)
- SDK Platform
- Intel x86 Atom 64 System Image
- Sources for Android SDK
bazel build //src:android
Virtual Device
./tools/android create avd -t android-22 -device "Nexus 4" -n matthewtodd
- In Android Studio -> Tools -> Android -> AVD Manager, check Enable Device Frame.
./tools/emulator -avd matthewtodd &
bazel mobile-install //src:android
Physical Device
- Turn on Settings -> Developer options -> USB Debugging.
bazel mobile-install //src:android
Android Studio
- Install the Android Studio with Bazel plugin.
- "Import from workspace" the
src/android.bazelproject
file.
Adding dependencies
./tools/third_party com.google.guava:guava:20.0
Roadmap
-
Common
-
Android
-
Web
-
Spike on GWT transpiling. * Use rules_gwt? * How about rules_closure?
-
iOS
-
Could work around it, but waiting for j2objc_library to work.
-
macOS! 1. Waiting for crosstool support in ObjC rules.