blob: 30b70eda37932fa4c22b75b4fda296d34d9e27eb [file] [log] [blame]
android_library(
name = 'agent-lib',
srcs = glob(['*.java']),
# Because this code gets dx'd, we restrict the source to Java 6 so that
# trying to use something like try-with-resources is a compile-time error.
source = '6',
target = '6',
deps = [
'//src/com/facebook/buck/android/agent/util:util',
# Do not add other deps here. The agent should remain very small.
],
)
java_library(
name = 'manifest-as-resource',
resources = [
'AndroidManifest.xml',
],
visibility = [
'//test/...',
],
)
java_binary(
name = 'agent-for-host',
main_class = "com.facebook.buck.android.agent.AgentMain",
deps = [
':agent-lib',
],
)
android_binary(
name = 'agent',
manifest = 'AndroidManifest.xml',
target = 'Google Inc.:Google APIs:19',
keystore = ':debug_keystore',
deps = [
':agent-lib',
'//src/com/facebook/buck/android/agent/native:native',
],
)
keystore(
name = 'debug_keystore',
store = 'debug.keystore',
properties = 'debug.keystore.properties',
)