1 LOCAL_PATH:= $(call my-dir) 2 include $(CLEAR_VARS) 3 4 LOCAL_MODULE_TAGS := optional 5 6 # Only compile source java files in this apk. 7 LOCAL_SRC_FILES := $(call all-java-files-under, src) 8 LOCAL_SRC_FILES += \ 9 src/android/bordeaux/services/IBordeauxServiceCallback.aidl \ 10 src/android/bordeaux/services/IAggregatorManager.aidl \ 11 src/android/bordeaux/services/ILearning_MulticlassPA.aidl \ 12 src/android/bordeaux/services/IPredictor.aidl \ 13 src/android/bordeaux/services/ILearning_StochasticLinearRanker.aidl \ 14 src/android/bordeaux/services/IBordeauxService.aidl \ 15 16 LOCAL_STATIC_JAVA_LIBRARIES := bordeaux_learners 17 LOCAL_JNI_SHARED_LIBRARIES := libbordeaux 18 LOCAL_REQUIRED_MODULES := libbordeaux 19 20 LOCAL_PACKAGE_NAME := bordeaux 21 22 23 include $(BUILD_PACKAGE) 24 25 ## 26 # Build java lib 27 ## 28 include $(CLEAR_VARS) 29 30 LOCAL_MODULE_TAGS := optional 31 32 LOCAL_SRC_FILES += \ 33 src/android/bordeaux/services/IntFloat.java \ 34 src/android/bordeaux/services/StringFloat.java \ 35 src/android/bordeaux/services/StringString.java \ 36 src/android/bordeaux/services/BordeauxClassifier.java \ 37 src/android/bordeaux/services/BordeauxRanker.java \ 38 src/android/bordeaux/services/BordeauxPredictor.java \ 39 src/android/bordeaux/services/BordeauxAggregatorManager.java \ 40 src/android/bordeaux/services/BordeauxManagerService.java \ 41 src/android/bordeaux/services/IBordeauxServiceCallback.aidl \ 42 src/android/bordeaux/services/IAggregatorManager.aidl \ 43 src/android/bordeaux/services/IPredictor.aidl \ 44 src/android/bordeaux/services/ILearning_MulticlassPA.aidl \ 45 src/android/bordeaux/services/ILearning_StochasticLinearRanker.aidl \ 46 src/android/bordeaux/services/IBordeauxService.aidl \ 47 48 LOCAL_MODULE := bordeaux_service 49 LOCAL_STATIC_JAVA_LIBRARIES := bordeaux_learners 50 51 LOCAL_PROGUARD_ENABLED := disabled 52 53 include $(BUILD_STATIC_JAVA_LIBRARY) 54 55 ## Building the whole Bordeaux service 56 include $(CLEAR_VARS) 57 58 LOCAL_MODULE_TAGS := optional 59 60 # Only compile source java files in this apk. 61 LOCAL_SRC_FILES := $(call all-java-files-under, src) 62 LOCAL_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 70 LOCAL_STATIC_JAVA_LIBRARIES := bordeaux_learners 71 LOCAL_JNI_SHARED_LIBRARIES := libbordeaux 72 73 LOCAL_JAVA_RESOURCE_DIRS := res 74 LOCAL_MODULE := bordeaux_whole_service 75 LOCAL_PROGUARD_ENABLED := disabled 76 77 include $(BUILD_STATIC_JAVA_LIBRARY) 78 79 # Use the folloing include to make our test apk. 80 include $(call all-makefiles-under,$(LOCAL_PATH)) 81