blob: eeae003fb92fc05f4dbb606da1c946209e2466e5 [file] [log] [blame]
Jean Chalarde7870a22013-08-12 12:44:04 +09001#
2# Copyright (C) 2013 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16LOCAL_PATH := $(call my-dir)
17include $(CLEAR_VARS)
18
19# Need to define the name of the library in the caller in LATINIME_HOST_NATIVE_LIBNAME
20
21LATINIME_DIR_RELATIVE_TO_DICTTOOL := ../..
22
23ifneq ($(strip $(HOST_JDK_IS_64BIT_VERSION)),)
24LOCAL_CFLAGS += -m64
25LOCAL_LDFLAGS += -m64
26endif #HOST_JDK_IS_64BIT_VERSION
27
28LOCAL_CFLAGS += -DHOST_TOOL -fPIC
29LOCAL_NO_DEFAULT_COMPILER_FLAGS := true
30
31LATINIME_NATIVE_JNI_DIR := $(LATINIME_DIR_RELATIVE_TO_DICTTOOL)/native/jni
32LATINIME_NATIVE_SRC_DIR := $(LATINIME_DIR_RELATIVE_TO_DICTTOOL)/native/jni/src
33LOCAL_C_INCLUDES := $(LOCAL_PATH)/$(LATINIME_NATIVE_SRC_DIR)
34# Used in jni_common.cpp to avoid registering useless methods.
35
36LATIN_IME_JNI_SRC_FILES := \
37 com_android_inputmethod_latin_makedict_BinaryDictInputOutput.cpp \
38 jni_common.cpp
39
40LATIN_IME_CORE_SRC_FILES :=
41
42LOCAL_SRC_FILES := \
43 $(addprefix $(LATINIME_NATIVE_JNI_DIR)/, $(LATIN_IME_JNI_SRC_FILES)) \
44 $(addprefix $(LATINIME_NATIVE_SRC_DIR)/, $(LATIN_IME_CORE_SRC_FILES))
45
46LOCAL_MODULE := $(LATINIME_HOST_NATIVE_LIBNAME)
47
48include $(BUILD_HOST_SHARED_LIBRARY)
49
50# Clear our private variables
51LATINIME_DIR_RELATIVE_TO_DICTTOOL := ../..