• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2015 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15LOCAL_PATH := $(call my-dir)
16
17# build dagger2 host jar
18# ============================================================
19
20include $(CLEAR_VARS)
21
22LOCAL_MODULE := dagger2-host
23LOCAL_MODULE_TAGS := optional
24LOCAL_MODULE_CLASS := JAVA_LIBRARIES
25LOCAL_SRC_FILES := $(call all-java-files-under, core/src/main/java/)
26
27LOCAL_STATIC_JAVA_LIBRARIES := \
28  dagger2-inject-host \
29
30LOCAL_JAVA_LIBRARIES := \
31  guavalib
32
33LOCAL_JAVA_LANGUAGE_VERSION := 1.7
34include $(BUILD_HOST_JAVA_LIBRARY)
35
36# build dagger2 producers host jar
37# ============================================================
38
39include $(CLEAR_VARS)
40
41LOCAL_MODULE := dagger2-producers-host
42LOCAL_MODULE_TAGS := optional
43LOCAL_MODULE_CLASS := JAVA_LIBRARIES
44LOCAL_SRC_FILES := $(call all-java-files-under, producers/src/main/java/)
45
46LOCAL_STATIC_JAVA_LIBRARIES := \
47  dagger2-inject-host \
48
49LOCAL_JAVA_LIBRARIES := \
50  dagger2-host \
51  guavalib
52
53LOCAL_JAVA_LANGUAGE_VERSION := 1.7
54include $(BUILD_HOST_JAVA_LIBRARY)
55
56# build dagger2 compiler host jar
57# ============================================================
58
59include $(CLEAR_VARS)
60
61LOCAL_MODULE := dagger2-compiler-host
62LOCAL_MODULE_TAGS := optional
63LOCAL_MODULE_CLASS := JAVA_LIBRARIES
64# Required for use of javax.annotation.Generated per http://b/62050818
65LOCAL_JAVACFLAGS := $(if $(USE_OPENJDK9),-J--add-modules=java.xml.ws.annotation,)
66LOCAL_SRC_FILES := $(call all-java-files-under, compiler/src/main/java/)
67
68# Manually include META-INF/services/javax.annotation.processing.Processor
69# as the AutoService processor doesn't work properly.
70LOCAL_JAVA_RESOURCE_DIRS := resources
71
72LOCAL_STATIC_JAVA_LIBRARIES := \
73  dagger2-host \
74  dagger2-auto-common-host \
75  dagger2-auto-factory-host \
76  dagger2-auto-service-host \
77  dagger2-auto-value-host \
78  dagger2-google-java-format \
79  dagger2-inject-host \
80  dagger2-producers-host \
81  guavalib
82
83LOCAL_ANNOTATION_PROCESSORS := \
84  dagger2-auto-common-host \
85  dagger2-auto-factory-host \
86  dagger2-auto-service-host \
87  dagger2-auto-value-host \
88  guavalib
89
90LOCAL_ANNOTATION_PROCESSOR_CLASSES := \
91  com.google.auto.factory.processor.AutoFactoryProcessor \
92  com.google.auto.service.processor.AutoServiceProcessor \
93  com.google.auto.value.processor.AutoAnnotationProcessor \
94  com.google.auto.value.processor.AutoValueProcessor
95
96LOCAL_JAVA_LANGUAGE_VERSION := 1.7
97include $(BUILD_HOST_JAVA_LIBRARY)
98