forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-i18n/opencc: Update patch for parallel build failure.
Signed-off-by: Arfrever Frehtes Taifersar Arahesis <[email protected]> Signed-off-by: Mike Gilbert <[email protected]>
- Loading branch information
Showing
2 changed files
with
41 additions
and
1 deletion.
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,40 @@ | ||
https://github.com/BYVoid/OpenCC/issues/322 | ||
|
||
--- /data/CMakeLists.txt | ||
+++ /data/CMakeLists.txt | ||
@@ -116,6 +116,19 @@ | ||
) | ||
endforeach(DICT) | ||
|
||
+add_custom_target( | ||
+ copy_libopencc_to_dir_of_opencc_dict | ||
+ COMMENT | ||
+ "Copying libopencc to directory of opencc_dict" | ||
+ COMMAND | ||
+ ${CMAKE_COMMAND} -E copy "$<TARGET_FILE:libopencc>" "$<TARGET_FILE_DIR:${OPENCC_DICT_BIN}>" | ||
+) | ||
+if (WIN32) | ||
+ set(DICT_WIN32_DEPENDS copy_libopencc_to_dir_of_opencc_dict) | ||
+else() | ||
+ set(DICT_WIN32_DEPENDS) | ||
+endif() | ||
+ | ||
foreach(DICT ${DICTS}) | ||
add_custom_command( | ||
OUTPUT | ||
@@ -123,14 +136,13 @@ | ||
COMMENT | ||
"Building ${DICT}.ocd2" | ||
COMMAND | ||
- ${CMAKE_COMMAND} -E copy "$<TARGET_FILE:libopencc>" "$<TARGET_FILE_DIR:${OPENCC_DICT_BIN}>" | ||
- COMMAND | ||
${OPENCC_DICT_BIN} | ||
--input ${DICT_${DICT}_INPUT} | ||
--output ${DICT}.ocd2 | ||
--from text | ||
--to ocd2 | ||
DEPENDS | ||
+ ${DICT_WIN32_DEPENDS} | ||
${OPENCC_DICT_BIN} | ||
${DICT_${DICT}_INPUT} | ||
) |
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