Matt Sharifi | bda09f1 | 2017-03-10 12:29:15 +0100 | [diff] [blame] | 1 | # Copyright (C) 2017 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 | |
| 15 | # ------------------------ |
| 16 | # libtextclassifier_protos |
| 17 | # ------------------------ |
| 18 | |
| 19 | LOCAL_PATH := $(call my-dir) |
| 20 | include $(CLEAR_VARS) |
| 21 | |
| 22 | LOCAL_MODULE := libtextclassifier_protos |
| 23 | |
| 24 | LOCAL_SRC_FILES := $(call all-proto-files-under, .) |
| 25 | LOCAL_SHARED_LIBRARIES := libprotobuf-cpp-lite |
| 26 | |
| 27 | include $(BUILD_STATIC_LIBRARY) |
| 28 | |
| 29 | # ----------------- |
| 30 | # libtextclassifier |
| 31 | # ----------------- |
| 32 | |
| 33 | include $(CLEAR_VARS) |
| 34 | LOCAL_MODULE := libtextclassifier |
| 35 | |
| 36 | LOCAL_CPP_EXTENSION := .cc |
| 37 | LOCAL_CFLAGS += -Wno-unused-parameter \ |
| 38 | -Wno-sign-compare \ |
| 39 | -Wno-missing-field-initializers \ |
| 40 | -Wno-ignored-qualifiers \ |
| 41 | -Wno-undefined-var-template |
| 42 | |
| 43 | LOCAL_SRC_FILES := $(patsubst ./%,%, $(shell cd $(LOCAL_PATH); \ |
| 44 | find . -name "*.cc" -and -not -name ".*")) |
| 45 | LOCAL_C_INCLUDES += . |
| 46 | LOCAL_C_INCLUDES += $(generated_sources_dir)/proto/external/libtextclassifier |
| 47 | |
| 48 | LOCAL_SHARED_LIBRARIES := libprotobuf-cpp-lite |
| 49 | LOCAL_STATIC_LIBRARIES := libtextclassifier_protos |
| 50 | |
| 51 | include $(BUILD_SHARED_LIBRARY) |