blob: 1d4464b15e1b58df4007d50e8d8445b03333864b [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
Wei Hua6b4eebc2012-03-09 10:24:16 -080018
19LOCAL_PACKAGE_NAME := bordeaux
20
Wei Hua6b4eebc2012-03-09 10:24:16 -080021
22include $(BUILD_PACKAGE)
23
24##
25# Build java lib
26##
27include $(CLEAR_VARS)
28
29LOCAL_MODULE_TAGS := optional
30
31LOCAL_SRC_FILES += \
32 src/android/bordeaux/services/IntFloat.java \
33 src/android/bordeaux/services/StringFloat.java \
saberian984e52f2012-06-05 18:23:53 -070034 src/android/bordeaux/services/StringString.java \
Wei Hua6b4eebc2012-03-09 10:24:16 -080035 src/android/bordeaux/services/BordeauxClassifier.java \
36 src/android/bordeaux/services/BordeauxRanker.java \
saberian984e52f2012-06-05 18:23:53 -070037 src/android/bordeaux/services/BordeauxPredictor.java \
38 src/android/bordeaux/services/BordeauxAggregatorManager.java \
Wei Hua6b4eebc2012-03-09 10:24:16 -080039 src/android/bordeaux/services/BordeauxManagerService.java \
Wei Hua6b4eebc2012-03-09 10:24:16 -080040 src/android/bordeaux/services/IBordeauxServiceCallback.aidl \
saberian984e52f2012-06-05 18:23:53 -070041 src/android/bordeaux/services/IAggregatorManager.aidl \
42 src/android/bordeaux/services/IPredictor.aidl \
Wei Hua6b4eebc2012-03-09 10:24:16 -080043 src/android/bordeaux/services/ILearning_MulticlassPA.aidl \
44 src/android/bordeaux/services/ILearning_StochasticLinearRanker.aidl \
45 src/android/bordeaux/services/IBordeauxService.aidl \
46
47LOCAL_MODULE := bordeaux_service
48LOCAL_STATIC_JAVA_LIBRARIES := bordeaux_learners
49
50LOCAL_PROGUARD_ENABLED := disabled
51
52include $(BUILD_STATIC_JAVA_LIBRARY)
53
saberian984e52f2012-06-05 18:23:53 -070054## Building the whole Bordeaux service
55include $(CLEAR_VARS)
56
57LOCAL_MODULE_TAGS := optional
58
59# Only compile source java files in this apk.
60LOCAL_SRC_FILES := $(call all-java-files-under, src)
61LOCAL_SRC_FILES += \
62 src/android/bordeaux/services/IBordeauxServiceCallback.aidl \
63 src/android/bordeaux/services/IAggregatorManager.aidl \
64 src/android/bordeaux/services/ILearning_MulticlassPA.aidl \
65 src/android/bordeaux/services/IPredictor.aidl \
66 src/android/bordeaux/services/ILearning_StochasticLinearRanker.aidl \
67 src/android/bordeaux/services/IBordeauxService.aidl \
68
69LOCAL_STATIC_JAVA_LIBRARIES := bordeaux_learners
70LOCAL_JNI_SHARED_LIBRARIES := libbordeaux
71
72LOCAL_JAVA_RESOURCE_DIRS := res
73LOCAL_MODULE := bordeaux_whole_service
74LOCAL_PROGUARD_ENABLED := disabled
75
76include $(BUILD_STATIC_JAVA_LIBRARY)
77
Wei Hua6b4eebc2012-03-09 10:24:16 -080078# Use the folloing include to make our test apk.
79include $(call all-makefiles-under,$(LOCAL_PATH))