diff options
author | 2024-12-10 11:54:39 -0500 | |
---|---|---|
committer | 2025-01-11 14:15:56 -0500 | |
commit | fb3b9360d70596d7e921de8bf7d3ca99564a077e (patch) | |
tree | 07ded064b8374f44c6d7b88ea1c39bce09a6cdf3 /tools/dicttool/NativeLib.mk | |
parent | 41fd35c1412b6b3b52acdd30027c6d7ac54cd17f (diff) | |
download | latinime-fb3b9360d70596d7e921de8bf7d3ca99564a077e.tar.gz latinime-fb3b9360d70596d7e921de8bf7d3ca99564a077e.tar.xz latinime-fb3b9360d70596d7e921de8bf7d3ca99564a077e.zip |
Initial successful standalone build
Diffstat (limited to 'tools/dicttool/NativeLib.mk')
-rw-r--r-- | tools/dicttool/NativeLib.mk | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/tools/dicttool/NativeLib.mk b/tools/dicttool/NativeLib.mk new file mode 100644 index 000000000..510f18c4e --- /dev/null +++ b/tools/dicttool/NativeLib.mk @@ -0,0 +1,46 @@ +# +# Copyright (C) 2013 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +LOCAL_PATH := $(call my-dir) +include $(CLEAR_VARS) + +# Need to define the name of the library in the caller in LATINIME_HOST_NATIVE_LIBNAME + +LATINIME_DIR_RELATIVE_TO_DICTTOOL := ../.. + +ifeq ($(FLAG_DBG), true) + $(warning Making debug version of native library) + LOCAL_CFLAGS += -DFLAG_DBG -funwind-tables -fno-inline +endif #FLAG_DBG + +LOCAL_CFLAGS += -DHOST_TOOL -fPIC -Wno-deprecated -Wno-unused-parameter -Wno-unused-function + +LATINIME_NATIVE_JNI_DIR := $(LATINIME_DIR_RELATIVE_TO_DICTTOOL)/native/jni +LATINIME_NATIVE_SRC_DIR := $(LATINIME_DIR_RELATIVE_TO_DICTTOOL)/native/jni/src +LOCAL_C_INCLUDES := $(LOCAL_PATH)/$(LATINIME_NATIVE_SRC_DIR) + +include $(LOCAL_PATH)/$(LATINIME_NATIVE_JNI_DIR)/NativeFileList.mk + +LOCAL_SRC_FILES := \ + $(addprefix $(LATINIME_NATIVE_JNI_DIR)/, $(LATIN_IME_JNI_SRC_FILES)) \ + $(addprefix $(LATINIME_NATIVE_SRC_DIR)/, $(LATIN_IME_CORE_SRC_FILES)) + +LOCAL_MODULE := $(LATINIME_HOST_NATIVE_LIBNAME) + +include $(BUILD_HOST_SHARED_LIBRARY) + +# Clear our private variables +include $(LOCAL_PATH)/$(LATINIME_NATIVE_JNI_DIR)/CleanupNativeFileList.mk +LATINIME_DIR_RELATIVE_TO_DICTTOOL := ../.. |