Skip to content

Commit 5400298

Browse files
committed
build(jni): remove unused compile definitions
1 parent f2c9d1c commit 5400298

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

app/src/main/jni/librime_jni/CMakeLists.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,26 @@ target_include_directories(rime_jni PRIVATE
1313
"${Opencc_INCLUDE_PATH}"
1414
)
1515

16-
string(TIMESTAMP TODAY "%Y%m%d")
16+
1717
execute_process(
1818
COMMAND git --git-dir ${CMAKE_SOURCE_DIR}/../../../../.git describe --tags
1919
OUTPUT_VARIABLE TRIME_VERSION
2020
)
2121
string(STRIP ${TRIME_VERSION} TRIME_VERSION)
22-
set(TRIME_VERSION "${TRIME_VERSION}-${TODAY}")
2322

2423
execute_process(
2524
COMMAND git --git-dir ${CMAKE_SOURCE_DIR}/OpenCC/.git describe --tags
2625
OUTPUT_VARIABLE OPENCC_VERSION
2726
)
28-
2927
string(STRIP ${OPENCC_VERSION} OPENCC_VERSION)
28+
3029
execute_process(
3130
COMMAND git --git-dir ${CMAKE_SOURCE_DIR}/librime/.git describe --tags
3231
OUTPUT_VARIABLE LIBRIME_VERSION
3332
)
3433
string(STRIP ${LIBRIME_VERSION} LIBRIME_VERSION)
35-
set(LIBRIME_VERSION "${LIBRIME_VERSION}-${ANDROID_ABI}")
3634

3735
target_compile_definitions(rime_jni PRIVATE
38-
CLASSNAME="com/osfans/trime/core/Rime"
3936
TRIME_VERSION="${TRIME_VERSION}"
4037
OPENCC_VERSION="${OPENCC_VERSION}"
4138
LIBRIME_VERSION="${LIBRIME_VERSION}"

0 commit comments

Comments
 (0)