Keisuke Kuroyanagi | e101a53 | 2014-10-31 20:27:06 +0900 | [diff] [blame] | 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 | |
| 15 | ifeq (,$(TARGET_BUILD_APPS)) |
| 16 | |
| 17 | LOCAL_PATH := $(call my-dir) |
| 18 | |
| 19 | ###################################### |
| 20 | include $(CLEAR_VARS) |
| 21 | |
| 22 | LATIN_IME_CORE_PATH := $(LOCAL_PATH)/../jni |
| 23 | |
| 24 | LATIN_IME_DICT_TOOLKIT_SRC_DIR := src |
| 25 | LATIN_IME_CORE_SRC_DIR := ../jni/src |
| 26 | LATIN_DICT_TOOLKIT_TEST_SRC_DIR := tests |
| 27 | |
| 28 | include $(LOCAL_PATH)/NativeFileList.mk |
| 29 | include $(LATIN_IME_CORE_PATH)/NativeFileList.mk |
| 30 | |
| 31 | # TODO: Remove -std=c++11 once it is set by default on host build. |
| 32 | LATIN_IME_SRC_DIR := src |
| 33 | LOCAL_ADDRESS_SANITIZER := true |
| 34 | LOCAL_CFLAGS += -std=c++11 -Wno-unused-parameter -Wno-unused-function |
| 35 | LOCAL_CLANG := true |
| 36 | LOCAL_CXX_STL := libc++ |
| 37 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(LATIN_IME_DICT_TOOLKIT_SRC_DIR) \ |
| 38 | $(LATIN_IME_CORE_PATH)/$(LATIN_IME_CORE_SRC_DIR) |
| 39 | LOCAL_MODULE := liblatinime_dicttoolkit_host_static_for_unittests |
| 40 | LOCAL_MODULE_TAGS := optional |
| 41 | LOCAL_SRC_FILES := \ |
| 42 | $(addprefix $(LATIN_IME_DICT_TOOLKIT_SRC_DIR)/, $(LATIN_IME_DICT_TOOLKIT_SRC_FILES)) \ |
| 43 | $(addprefix $(LATIN_IME_CORE_SRC_DIR)/, $(LATIN_IME_CORE_SRC_FILES)) |
| 44 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 45 | |
| 46 | include $(CLEAR_VARS) |
| 47 | |
| 48 | # TODO: Remove -std=c++11 once it is set by default on host build. |
Keisuke Kuroyanagi | 4bfa3b2 | 2014-11-07 06:49:34 +0900 | [diff] [blame] | 49 | LOCAL_ADDRESS_SANITIZER := true |
Keisuke Kuroyanagi | e101a53 | 2014-10-31 20:27:06 +0900 | [diff] [blame] | 50 | LOCAL_CFLAGS += -std=c++11 -Wno-unused-parameter -Wno-unused-function |
| 51 | LOCAL_CLANG := true |
| 52 | LOCAL_CXX_STL := libc++ |
| 53 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(LATIN_IME_DICT_TOOLKIT_SRC_DIR) \ |
| 54 | $(LATIN_IME_CORE_PATH)/$(LATIN_IME_CORE_SRC_DIR) |
| 55 | LOCAL_MODULE := dicttoolkit_unittests |
| 56 | LOCAL_MODULE_TAGS := tests |
| 57 | LOCAL_SRC_FILES := \ |
| 58 | $(addprefix $(LATIN_DICT_TOOLKIT_TEST_SRC_DIR)/, $(LATIN_IME_DICT_TOOLKIT_TEST_FILES)) |
| 59 | LOCAL_STATIC_LIBRARIES += liblatinime_dicttoolkit_host_static_for_unittests |
| 60 | include $(BUILD_HOST_NATIVE_TEST) |
| 61 | |
| 62 | include $(LOCAL_PATH)/CleanupNativeFileList.mk |
| 63 | |
| 64 | #################### Clean up the tmp vars |
| 65 | LATINIME_HOST_OSNAME := |
| 66 | LATIN_IME_SRC_DIR := |
| 67 | LATIN_IME_TEST_SRC_DIR := |
| 68 | |
| 69 | endif # TARGET_BUILD_APPS |