summaryrefslogtreecommitdiff
path: root/lib/avtp_pipeline/platform/Linux/avb_host/CMakeLists.txt
blob: f11837c456fb24ca9f46233024a51f1fab0324e8 (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
include_directories(
		${AVB_OSAL_DIR}/tl
		${AVB_OSAL_DIR}/endpoint
		${AVB_SRC_DIR}/util
		${AVB_SRC_DIR}/tl
		${AVB_SRC_DIR}/srp
		)

# Rules to build the AVB host
add_executable ( openavb_host openavb_host.c )
target_link_libraries( openavb_host
	map_ctrl
	map_mjpeg
	map_mpeg2ts
	map_null
	map_pipe
	map_aaf_audio 
	map_uncmp_audio 
	map_h264 
	intf_ctrl
	intf_echo
	intf_logger
	intf_null
	intf_tonegen
	intf_viewer
	intf_alsa
	intf_mpeg2ts_file
	intf_wav_file
	avbTl
	${PLATFORM_LINK_LIBRARIES}
	${ALSA_LIBRARIES}
	${GLIB_PKG_LIBRARIES}
	pthread 
	rt 
	dl )


# Rules to build the AVB harness
add_executable ( openavb_harness openavb_harness.c )
target_link_libraries( openavb_harness 
	map_ctrl
	map_mjpeg
	map_mpeg2ts
	map_null
	map_pipe
	map_aaf_audio 
	map_uncmp_audio 
	map_h264 
	intf_ctrl
	intf_echo
	intf_logger
	intf_null
	intf_tonegen
	intf_viewer
	intf_alsa
	intf_mpeg2ts_file
	intf_wav_file
	avbTl
	${PLATFORM_LINK_LIBRARIES}
	${ALSA_LIBRARIES}
	${GLIB_PKG_LIBRARIES}
	pthread 
	rt 
	dl )

# Install rules 
install ( TARGETS openavb_host RUNTIME DESTINATION ${AVB_INSTALL_BIN_DIR} )
install ( TARGETS openavb_harness RUNTIME DESTINATION ${AVB_INSTALL_BIN_DIR} )

if (AVB_FEATURE_GSTREAMER)
include_directories( ${GLIB_PKG_INCLUDE_DIRS} ${GST_PKG_INCLUDE_DIRS} )
target_link_libraries( openavb_host  intf_mpeg2ts_gst intf_mjpeg_gst intf_h264_gst ${GST_PKG_LIBRARIES} ${GSTRTP_PKG_LIBRARIES} )
target_link_libraries( openavb_harness intf_mpeg2ts_gst intf_mjpeg_gst intf_h264_gst ${GST_PKG_LIBRARIES} ${GSTRTP_PKG_LIBRARIES} )
endif ()