File tree Expand file tree Collapse file tree 6 files changed +40
-10
lines changed Expand file tree Collapse file tree 6 files changed +40
-10
lines changed Original file line number Diff line number Diff line change 6
6
)
7
7
8
8
set (
9
- LIB_UNITY_VOICE_SOURCES
10
- PronounceDict.cpp
9
+ LIB_UNITY_VOICE_SOURCES
11
10
UnityVoice.cpp
12
11
)
13
12
Original file line number Diff line number Diff line change 1
1
2
+ #########################################
3
+ # Service library
4
+ #########################################
5
+
2
6
set (
3
- UNITY_VOICE_SOURCES
4
- VoiceService.cpp
5
- main.cpp
7
+ UNITY_VOICE_SOURCES
8
+ PronounceDict.cpp
9
+ VoiceService.cpp
10
+ main.cpp
6
11
)
7
12
8
13
qt5_add_dbus_adaptor (
@@ -13,8 +18,9 @@ qt5_add_dbus_adaptor(
13
18
VoiceAdaptor
14
19
)
15
20
16
- add_executable (
21
+ add_library (
17
22
unity-voice-service
23
+ STATIC
18
24
${UNITY_VOICE_SOURCES}
19
25
)
20
26
@@ -26,11 +32,35 @@ qt5_use_modules(
26
32
27
33
target_link_libraries (
28
34
unity-voice-service
29
- unityvoice
30
35
${POCKETSPHINX_LIBRARIES}
31
36
)
32
37
38
+ #########################################
39
+ # Service binary
40
+ #########################################
41
+
42
+ add_executable (
43
+ unity-voice-service-bin
44
+ ${UNITY_VOICE_SOURCES}
45
+ )
46
+
47
+ set_target_properties (
48
+ unity-voice-service-bin
49
+ PROPERTIES
50
+ OUTPUT_NAME "unity-voice-service"
51
+ )
52
+
53
+ target_link_libraries (
54
+ unity-voice-service-bin
55
+ unity-voice-service
56
+ )
57
+
58
+ qt5_use_modules (
59
+ unity-voice-service-bin
60
+ Core
61
+ )
62
+
33
63
install (
34
- TARGETS unity-voice-service
64
+ TARGETS unity-voice-service-bin
35
65
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}
36
66
)
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 19
19
#ifndef VOICESERVICE_H_
20
20
#define VOICESERVICE_H_
21
21
22
- #include < libunityvoice /PronounceDict.h>
22
+ #include < service /PronounceDict.h>
23
23
24
24
#include < QList>
25
25
#include < QString>
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ add_definitions(-DPRONOUCE_DICT_HTK="${CMAKE_CURRENT_SOURCE_DIR}/data/test-prono
19
19
20
20
set (
21
21
UNIT_TESTS_SRC
22
- TestPronounceDict.cpp
22
+ TestPronounceDict.cpp
23
23
TestVoiceService.cpp
24
24
main.cpp
25
25
)
@@ -39,6 +39,7 @@ qt5_use_modules(
39
39
target_link_libraries (
40
40
unit-tests
41
41
unityvoice
42
+ unity-voice-service
42
43
${POCKETSPHINX_LIBRARIES}
43
44
${QTDBUSTEST_LIBRARIES}
44
45
${GTEST_LIBRARIES}
You can’t perform that action at this time.
0 commit comments