Created
April 27, 2013 16:55
-
-
Save archon810/5473767 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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