Skip to content

Instantly share code, notes, and snippets.

@archon810
Created April 27, 2013 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save archon810/5473767 to your computer and use it in GitHub Desktop.
Save archon810/5473767 to your computer and use it in GitHub Desktop.
This is placed with each library in your project.
android_library(
name = 'activity',
srcs = glob(['*.java']),
visibility = [ 'PUBLIC' ],
)
project_config(
src_target = ':activity',
)
This one is placed with the app resources (images, stringes, etc.)
android_resource(
name = 'res',
res = 'res',
package = 'com.example',
visibility = [
'//apps/myapp:',
],
)
project_config(
src_target = ':res',
)
And this one goes with your AndroidManifest.xml file.
android_binary(
name = 'app',
manifest = 'AndroidManifest.xml',
target = 'Google Inc.:Google APIs:16',
keystore_properties = 'debug.keystore.properties',
deps = [
'//java/com/example/activity:activity',
'//res/com/example/activity:res',
],
)
project_config(
src_target = ':app',
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment