1# Copyright (C) 2014 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 15ifeq (,$(TARGET_BUILD_APPS)) 16 17LOCAL_PATH := $(call my-dir) 18 19###################################### 20include $(CLEAR_VARS) 21 22LATIN_IME_CORE_PATH := $(LOCAL_PATH)/../jni 23 24LATIN_IME_DICT_TOOLKIT_SRC_DIR := src 25LATIN_IME_CORE_SRC_DIR := ../jni/src 26LATIN_DICT_TOOLKIT_TEST_SRC_DIR := tests 27 28include $(LOCAL_PATH)/NativeFileList.mk 29include $(LATIN_IME_CORE_PATH)/NativeFileList.mk 30 31LATIN_IME_SRC_DIR := src 32LOCAL_ADDRESS_SANITIZER := true 33LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-function 34LOCAL_CXX_STL := libc++ 35LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(LATIN_IME_DICT_TOOLKIT_SRC_DIR) \ 36 $(LATIN_IME_CORE_PATH)/$(LATIN_IME_CORE_SRC_DIR) 37LOCAL_MODULE := liblatinime_dicttoolkit_host_static_for_unittests 38LOCAL_MODULE_TAGS := optional 39LOCAL_SRC_FILES := \ 40 $(addprefix $(LATIN_IME_DICT_TOOLKIT_SRC_DIR)/, $(LATIN_IME_DICT_TOOLKIT_SRC_FILES)) \ 41 $(addprefix $(LATIN_IME_CORE_SRC_DIR)/, $(LATIN_IME_CORE_SRC_FILES)) 42include $(BUILD_HOST_STATIC_LIBRARY) 43 44include $(CLEAR_VARS) 45 46LOCAL_ADDRESS_SANITIZER := true 47LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-function 48LOCAL_CXX_STL := libc++ 49LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(LATIN_IME_DICT_TOOLKIT_SRC_DIR) \ 50 $(LATIN_IME_CORE_PATH)/$(LATIN_IME_CORE_SRC_DIR) 51LOCAL_MODULE := dicttoolkit_unittests 52LOCAL_MODULE_TAGS := tests 53LOCAL_SRC_FILES := \ 54 $(addprefix $(LATIN_DICT_TOOLKIT_TEST_SRC_DIR)/, $(LATIN_IME_DICT_TOOLKIT_TEST_FILES)) 55LOCAL_STATIC_LIBRARIES += liblatinime_dicttoolkit_host_static_for_unittests 56include $(BUILD_HOST_NATIVE_TEST) 57 58include $(LOCAL_PATH)/CleanupNativeFileList.mk 59 60#################### Clean up the tmp vars 61LATINIME_HOST_OSNAME := 62LATIN_IME_SRC_DIR := 63LATIN_IME_TEST_SRC_DIR := 64 65endif # TARGET_BUILD_APPS 66