aboutsummaryrefslogtreecommitdiff
path: root/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk88
1 files changed, 88 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
new file mode 100644
index 000000000..08b6af514
--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,88 @@
+# Copyright (C) 2015 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+LOCAL_PATH := $(call my-dir)
+
+# build dagger2 host jar
+# ============================================================
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := dagger2-host
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_CLASS := JAVA_LIBRARIES
+LOCAL_SRC_FILES := $(call all-java-files-under, core/src/main/java/)
+
+LOCAL_STATIC_JAVA_LIBRARIES := \
+ dagger2-inject-host \
+ guavalib
+
+#LOCAL_JACK_ENABLED := disabled
+include $(BUILD_HOST_JAVA_LIBRARY)
+
+# build dagger2 producers host jar
+# ============================================================
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := dagger2-producers-host
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_CLASS := JAVA_LIBRARIES
+LOCAL_SRC_FILES := $(call all-java-files-under, producers/src/main/java/)
+
+LOCAL_STATIC_JAVA_LIBRARIES := \
+ dagger2-host \
+ dagger2-inject-host \
+ guavalib
+
+#LOCAL_JACK_ENABLED := disabled
+include $(BUILD_HOST_JAVA_LIBRARY)
+
+# build dagger2 compiler host jar
+# ============================================================
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := dagger2-compiler-host
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_CLASS := JAVA_LIBRARIES
+LOCAL_SRC_FILES := $(call all-java-files-under, compiler/src/main/java/)
+
+LOCAL_STATIC_JAVA_LIBRARIES := \
+ dagger2-host \
+ dagger2-auto-common-host \
+ dagger2-auto-factory-host \
+ dagger2-auto-service-host \
+ dagger2-auto-value-host \
+ dagger2-google-java-format \
+ dagger2-inject-host \
+ dagger2-producers-host \
+ guavalib
+
+#LOCAL_JACK_ENABLED := disabled
+include $(BUILD_HOST_JAVA_LIBRARY)
+
+# Build host dependencies.
+# ============================================================
+include $(CLEAR_VARS)
+
+LOCAL_PREBUILT_JAVA_LIBRARIES := \
+ dagger2-auto-common-host:lib/auto-common-1.0-20151022.071545-39$(COMMON_JAVA_PACKAGE_SUFFIX) \
+ dagger2-auto-factory-host:lib/auto-factory-1.0-20150915.183854-35$(COMMON_JAVA_PACKAGE_SUFFIX) \
+ dagger2-auto-service-host:lib/auto-service-1.0-rc2$(COMMON_JAVA_PACKAGE_SUFFIX) \
+ dagger2-auto-value-host:lib/auto-value-1.0$(COMMON_JAVA_PACKAGE_SUFFIX) \
+ dagger2-google-java-format:lib/google-java-format-0.1-20151017.042846-2$(COMMON_JAVA_PACKAGE_SUFFIX) \
+ dagger2-inject-host:lib/javax-inject$(COMMON_JAVA_PACKAGE_SUFFIX) \
+
+include $(BUILD_HOST_PREBUILT)