Skip to content

Commit da59be2

Browse files
committed
Seems like I don't need to build libchewing into static library, the shared library form just works
Signed-off-by: Hui-Hong You <hiroshi@ghostsinthelab.org>
1 parent 1e9404b commit da59be2

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ android {
3737
cmake {
3838
cFlags("-Wno-unused-function", "-Wno-unused-but-set-variable")
3939
cppFlags += ""
40-
targets("libchewing", "${projectName}")
40+
targets("${projectName}")
4141
}
4242
}
4343

@@ -79,7 +79,7 @@ android {
7979

8080
tasks.register<Exec>("prepareChewing") {
8181
workingDir(chewingLibraryPath)
82-
commandLine("cmake", "--preset", "rust-release", "-DBUILD_SHARED_LIBS=OFF", ".")
82+
commandLine("cmake", "--preset", "rust-release")
8383
}
8484

8585
val chewingDataFiles =

app/src/main/cpp/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ project("libchewing_android_app_module" LANGUAGES C CXX)
1616
SET(BUILD_INFO true)
1717
SET(WITH_RUST true)
1818
SET(WITH_SQLITE3 false)
19-
SET(BUILD_SHARED_LIBS OFF)
2019
add_subdirectory(${CMAKE_SOURCE_DIR}/libs/libchewing EXCLUDE_FROM_ALL)
2120

2221
# Creates and names a library, sets it as either STATIC

0 commit comments

Comments
 (0)