This is a sample project for Bazel build.
- Android NDK r12b
- Android SDK 23
- Bazel 0.4.3
add path to android_sdk_repository and android_ndk_repository in WORKSPACE .
then run;
$ bazel build //Sandbox:android_app --crosstool_top=//external:android/crosstool --host_crosstool_top=@bazel_tools//tools/cpp:toolchain --cpu=x86_64
apk will be created in the directory below
bazel-bin/Sandbox/android_app.apk
run
$ bazel build //Sandbox:ios_app --ios_sdk_version=9.0
ios_sdk_version must be the one installed in your environment.
Xcode project will be generated in the directory below
bazel-bin/Sandbox/ios_app.xcodeproj