summaryrefslogtreecommitdiffstats
path: root/kspeechsink
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-01-23 02:24:29 +0100
committergregory guy <gregory-tde@laposte.net>2021-01-26 11:55:57 +0100
commit91fc9555abdfd455096b61b350d57ec79943b220 (patch)
tree8e1600a5695be6dbf5d37b2c55593d719612abbc /kspeechsink
parent6b3181cf92f1fc74da1e8a82f690a1526cb4e900 (diff)
downloadtdeaccessibility-91fc9555abdfd455096b61b350d57ec79943b220.tar.gz
tdeaccessibility-91fc9555abdfd455096b61b350d57ec79943b220.zip
cmake: Simplify 'skel' and 'stub' generation for kspeech and kspeechlink
as well as their subsequent linking. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kspeechsink')
-rw-r--r--kspeechsink/CMakeLists.txt56
1 files changed, 11 insertions, 45 deletions
diff --git a/kspeechsink/CMakeLists.txt b/kspeechsink/CMakeLists.txt
index 0b3560a..26e4dd3 100644
--- a/kspeechsink/CMakeLists.txt
+++ b/kspeechsink/CMakeLists.txt
@@ -12,60 +12,26 @@ link_directories(
${TDE_LIB_DIR}
)
-add_compile_options( -fPIC )
+##### kspeech_stub (static)
-##### ksayit_kspeech
+tde_add_library( kspeech_stub STATIC_PIC
-set( KSPEECH_KIDL kspeech.kidl )
-set( KSPEECH_STUB kspeech_stub )
-
-add_custom_command(
- OUTPUT ${KSPEECH_KIDL}
- COMMAND ${KDE3_DCOPIDL_EXECUTABLE} ${KTTS_KSPEECH_DIR}/kspeech.h > ${KSPEECH_KIDL}
- DEPENDS ${KTTS_KSPEECH_DIR}/kspeech.h
-)
-add_custom_target( ksayit-kspeech-kidl DEPENDS ${KSPEECH_KIDL} )
-
-add_custom_command(
- OUTPUT ${KSPEECH_STUB}.h ${KSPEECH_STUB}.cpp
- COMMAND ${KDE3_DCOPIDL2CPP_EXECUTABLE} --c++-suffix cpp --no-signals --no-skel ${KSPEECH_KIDL}
- DEPENDS ${KSPEECH_KIDL}
-)
-add_custom_target( ksayit-kspeech-stub DEPENDS ${KSPEECH_STUB}.cpp )
-
-
-###### ksayit_kspeechsink
-
-set( KSPEECHSINK_KIDL kspeechsink.kidl )
-set( KSPEECHSINK_SKEL kspeechsink_skel )
-
-add_custom_command(
- OUTPUT ${KSPEECHSINK_KIDL}
- COMMAND ${KDE3_DCOPIDL_EXECUTABLE} ${KTTS_KSPEECH_DIR}/kspeechsink.h > ${KSPEECHSINK_KIDL}
- DEPENDS ${KTTS_KSPEECH_DIR}/kspeechsink.h
-)
-add_custom_target( ksayit-kspeechsink-kidl DEPENDS ${KSPEECHSINK_KIDL} )
+ SOURCES
+ ${KTTS_KSPEECH_DIR}/kspeech.stub
+ ${KTTS_KSPEECH_DIR}/kspeechsink.skel
-add_custom_command(
- OUTPUT ${KSPEECHSINK_SKEL}.cpp
- COMMAND ${KDE3_DCOPIDL2CPP_EXECUTABLE} --c++-suffix cpp --no-signals --no-stub ${KSPEECHSINK_KIDL}
- DEPENDS ${KSPEECHSINK_KIDL}
+ EXCLUDE_FROM_ALL
)
-add_custom_target( ksayit-kspeechsink-skel DEPENDS ${KSPEECHSINK_SKEL}.cpp )
-##### DUMMY_Lib (static)
+##### kspeech_skel (static)
-tde_add_library( DUMMY_kspeech_lib STATIC
+tde_add_library( kspeech_skel STATIC_PIC
SOURCES
- ${CMAKE_CURRENT_BINARY_DIR}/${KSPEECH_STUB}.cpp
- ${CMAKE_CURRENT_BINARY_DIR}/${KSPEECHSINK_SKEL}.cpp
- LINK
- tdecore-shared
+ ${KTTS_KSPEECH_DIR}/kspeech.skel
+ ${KTTS_KSPEECH_DIR}/kspeechsink.stub
- DEPENDENCIES
- ksayit-kspeech-stub
- ksayit-kspeechsink-skel
+ EXCLUDE_FROM_ALL
)