blob: f71bc85831b17e323ec82179cfca7699ea43ec3a [file] [log] [blame]
Wei Hua6b4eebc2012-03-09 10:24:16 -08001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
saberian984e52f2012-06-05 18:23:53 -07004LOCAL_MODULE_TAGS := optional
Wei Hua6b4eebc2012-03-09 10:24:16 -08005
6# Only compile source java files in this apk.
7LOCAL_SRC_FILES := $(call all-java-files-under, src)
8LOCAL_SRC_FILES += \
9 src/android/bordeaux/services/IBordeauxServiceCallback.aidl \
saberian984e52f2012-06-05 18:23:53 -070010 src/android/bordeaux/services/IAggregatorManager.aidl \
Wei Hua6b4eebc2012-03-09 10:24:16 -080011 src/android/bordeaux/services/ILearning_MulticlassPA.aidl \
saberian984e52f2012-06-05 18:23:53 -070012 src/android/bordeaux/services/IPredictor.aidl \
Wei Hua6b4eebc2012-03-09 10:24:16 -080013 src/android/bordeaux/services/ILearning_StochasticLinearRanker.aidl \
saberian984e52f2012-06-05 18:23:53 -070014 src/android/bordeaux/services/IBordeauxService.aidl \
Wei Hua6b4eebc2012-03-09 10:24:16 -080015
16LOCAL_STATIC_JAVA_LIBRARIES := bordeaux_learners
saberian984e52f2012-06-05 18:23:53 -070017LOCAL_JNI_SHARED_LIBRARIES := libbordeaux
18LOCAL_REQUIRED_MODULES := libbordeaux
Wei Hua6b4eebc2012-03-09 10:24:16 -080019
20LOCAL_PACKAGE_NAME := bordeaux
21
Wei Hua6b4eebc2012-03-09 10:24:16 -080022
23include $(BUILD_PACKAGE)
24
25##
26# Build java lib
27##
28include $(CLEAR_VARS)
29
30LOCAL_MODULE_TAGS := optional
31
32LOCAL_SRC_FILES += \
33 src/android/bordeaux/services/IntFloat.java \
34 src/android/bordeaux/services/StringFloat.java \
saberian984e52f2012-06-05 18:23:53 -070035 src/android/bordeaux/services/StringString.java \
Wei Hua6b4eebc2012-03-09 10:24:16 -080036 src/android/bordeaux/services/BordeauxClassifier.java \
37 src/android/bordeaux/services/BordeauxRanker.java \
saberian984e52f2012-06-05 18:23:53 -070038 src/android/bordeaux/services/BordeauxPredictor.java \
39 src/android/bordeaux/services/BordeauxAggregatorManager.java \
Wei Hua6b4eebc2012-03-09 10:24:16 -080040 src/android/bordeaux/services/BordeauxManagerService.java \
Wei Hua6b4eebc2012-03-09 10:24:16 -080041 src/android/bordeaux/services/IBordeauxServiceCallback.aidl \
saberian984e52f2012-06-05 18:23:53 -070042 src/android/bordeaux/services/IAggregatorManager.aidl \
43 src/android/bordeaux/services/IPredictor.aidl \
Wei Hua6b4eebc2012-03-09 10:24:16 -080044 src/android/bordeaux/services/ILearning_MulticlassPA.aidl \
45 src/android/bordeaux/services/ILearning_StochasticLinearRanker.aidl \
46 src/android/bordeaux/services/IBordeauxService.aidl \
47
48LOCAL_MODULE := bordeaux_service
49LOCAL_STATIC_JAVA_LIBRARIES := bordeaux_learners
50
51LOCAL_PROGUARD_ENABLED := disabled
52
53include $(BUILD_STATIC_JAVA_LIBRARY)
54
saberian984e52f2012-06-05 18:23:53 -070055## Building the whole Bordeaux service
56include $(CLEAR_VARS)
57
58LOCAL_MODULE_TAGS := optional
59
60# Only compile source java files in this apk.
61LOCAL_SRC_FILES := $(call all-java-files-under, src)
62LOCAL_SRC_FILES += \
63 src/android/bordeaux/services/IBordeauxServiceCallback.aidl \
64 src/android/bordeaux/services/IAggregatorManager.aidl \
65 src/android/bordeaux/services/ILearning_MulticlassPA.aidl \
66 src/android/bordeaux/services/IPredictor.aidl \
67 src/android/bordeaux/services/ILearning_StochasticLinearRanker.aidl \
68 src/android/bordeaux/services/IBordeauxService.aidl \
69
70LOCAL_STATIC_JAVA_LIBRARIES := bordeaux_learners
71LOCAL_JNI_SHARED_LIBRARIES := libbordeaux
72
73LOCAL_JAVA_RESOURCE_DIRS := res
74LOCAL_MODULE := bordeaux_whole_service
75LOCAL_PROGUARD_ENABLED := disabled
76
77include $(BUILD_STATIC_JAVA_LIBRARY)
78
Wei Hua6b4eebc2012-03-09 10:24:16 -080079# Use the folloing include to make our test apk.
80include $(call all-makefiles-under,$(LOCAL_PATH))