-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
85 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 8aafe38..edc76dd 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -50,7 +50,6 @@ set(LIBHANGUL_LIBRARY_DIR "${CMAKE_INSTALL_LIBDIR}") | ||
add_subdirectory(hangul) | ||
add_subdirectory(data/hanja) | ||
add_subdirectory(data/keyboards) | ||
-add_subdirectory(tools) | ||
add_subdirectory(po) | ||
|
||
if(BUILD_TESTING) | ||
diff --git a/hangul/CMakeLists.txt b/hangul/CMakeLists.txt | ||
index 14fde95..399beb6 100644 | ||
--- a/hangul/CMakeLists.txt | ||
+++ b/hangul/CMakeLists.txt | ||
@@ -45,9 +45,9 @@ add_library(hangul | ||
|
||
target_compile_definitions(hangul | ||
PRIVATE -DHAVE_CONFIG_H | ||
- PRIVATE -DLOCALEDIR=\"${CMAKE_INSTALL_FULL_LOCALEDIR}\" | ||
- PRIVATE -DLIBHANGUL_DEFAULT_HANJA_DIC=\"${CMAKE_INSTALL_FULL_DATADIR}/${CMAKE_PROJECT_NAME}/hanja/hanja.txt\" | ||
- PRIVATE -DLIBHANGUL_DATA_DIR=\"${CMAKE_INSTALL_FULL_DATADIR}/${CMAKE_PROJECT_NAME}\" | ||
+ PRIVATE -DLOCALEDIR=\"${CMAKE_INSTALL_LOCALEDIR}\" | ||
+ PRIVATE -DLIBHANGUL_DEFAULT_HANJA_DIC=\"${CMAKE_INSTALL_DATADIR}/${CMAKE_PROJECT_NAME}/hanja/hanja.txt\" | ||
+ PRIVATE -DLIBHANGUL_DATA_DIR=\"${CMAKE_INSTALL_DATADIR}/${CMAKE_PROJECT_NAME}\" | ||
PRIVATE -DTOP_SRCDIR=\"${CMAKE_SOURCE_DIR}\" | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index d89d928..6ba6a32 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -49,6 +49,7 @@ add_library(marisa | ||
${MARISA_SRC} | ||
) | ||
|
||
+target_compile_options(marisa PRIVATE "-ffile-prefix-map=${CMAKE_CURRENT_SOURCE_DIR}=.") | ||
install(TARGETS marisa | ||
EXPORT marisa-targets | ||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 1acb75a9..05198910 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -210,7 +210,8 @@ if(NOT USE_SYSTEM_MARISA) | ||
message(STATUS "Use bundled marisa library.") | ||
add_subdirectory(deps/marisa-0.2.6) | ||
else() | ||
- find_library(LIBMARISA NAMES marisa) | ||
+ find_package(marisa) | ||
+ set(LIBMARISA marisa) | ||
if (LIBMARISA) | ||
message(STATUS "libmarisa found: ${LIBMARISA}") | ||
else() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/build/cmake/lib/CMakeLists.txt b/build/cmake/lib/CMakeLists.txt | ||
index 30349586b..0e0646dbd 100644 | ||
--- a/build/cmake/lib/CMakeLists.txt | ||
+++ b/build/cmake/lib/CMakeLists.txt | ||
@@ -134,7 +134,8 @@ if (ZSTD_BUILD_SHARED) | ||
endif () | ||
|
||
if (ZSTD_BUILD_STATIC) | ||
+ target_compile_options(libzstd_static PRIVATE "-ffile-prefix-map=${CMAKE_CURRENT_SOURCE_DIR}=.") | ||
set_target_properties( | ||
libzstd_static | ||
PROPERTIES | ||
POSITION_INDEPENDENT_CODE On |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters