blob: 400e15161590a024b6ac317ea3ea4222ab4712b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
set(SOURCES DNSNameCache.cpp
EventClient.cpp
EventPacket.cpp
EventServer.cpp
GUIDialogNetworkSetup.cpp
Network.cpp
NetworkServices.cpp
Socket.cpp
TCPServer.cpp
UdpClient.cpp
WakeOnAccess.cpp
ZeroconfBrowser.cpp
Zeroconf.cpp)
set(HEADERS DNSNameCache.h
EventClient.h
EventPacket.h
EventServer.h
GUIDialogNetworkSetup.h
Network.h
NetworkServices.h
Socket.h
TCPServer.h
UdpClient.h
WakeOnAccess.h
Zeroconf.h
ZeroconfBrowser.h)
if(ENABLE_OPTICAL)
list(APPEND SOURCES cddb.cpp)
list(APPEND HEADERS cddb.h)
endif()
if(PLIST_FOUND)
list(APPEND SOURCES AirPlayServer.cpp)
list(APPEND HEADERS AirPlayServer.h)
endif()
if(SHAIRPLAY_FOUND)
list(APPEND SOURCES AirTunesServer.cpp)
list(APPEND HEADERS AirTunesServer.h)
endif()
if(SMBCLIENT_FOUND)
list(APPEND HEADERS IWSDiscovery.h)
endif()
if(MICROHTTPD_FOUND)
list(APPEND SOURCES WebServer.cpp)
list(APPEND HEADERS WebServer.h)
endif()
core_add_library(network)
if(BLUETOOTH_FOUND)
target_compile_definitions(${CORE_LIBRARY} PRIVATE -DHAVE_LIBBLUETOOTH=1)
endif()
if(ENABLE_STATIC_LIBS AND ENABLE_UPNP)
target_link_libraries(${CORE_LIBRARY} PRIVATE upnp)
endif()
|