blob: 768a7f0ec15d4501efcb0337c359ae1df4394894 (
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
|
project (waltham-renderer)
find_package(PkgConfig REQUIRED)
pkg_check_modules(WAYLAND_SERVER wayland-server>=1.13.0 REQUIRED)
pkg_check_modules(WESTON weston>=2.0.0 REQUIRED)
pkg_check_modules(PIXMAN pixman-1 REQUIRED)
pkg_check_modules(WALTHAM waltham REQUIRED)
pkg_search_module(GSTREAMER gstreamer-1.0 required)
pkg_search_module(GSTREAMERAPP gstreamer-app-1.0 required)
include_directories(
${CMAKE_SOURCE_DIR}/waltham-transmitter/transmitter-plugin
${CMAKE_CURRENT_BINARY_DIR}
${WAYLAND_CLIENT_INCLUDE_DIRS}
${WAYLAND_SERVER_INCLUDE_DIRS}
${WESTON_INCLUDE_DIRS}
${PIXMAN_INCLUDE_DIRS}
${WALTHAM_INCLUDE_DIRS}
${GSTREAMER_INCLUDE_DIRS}
${GSTREAMERAPP_INCLUDE_DIRS}
)
link_directories(
${WAYLAND_SERVER_LIBRARY_DIRS}
${WESTON_LIBRARY_DIRS}
${PIXMAN_LIBRARY_DIRS}
${WALTHAM_LIBRARY_DIRS}
${GSTREAMER_LIBRARY_DIRS}
${GSTREAMERAPP_LIBRARY_DIRS}
)
add_library(${PROJECT_NAME} MODULE
waltham-renderer.c
waltham-renderer.h
)
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
set(LIBS
m
weston-2
gstallocators-1.0
gstvideo-1.0
${WAYLAND_SERVER_LIBRARIES}
${WESTON_LIBRARIES}
${PIXMAN_LIBRARIES}
${WALTHAM_LIBRARIES}
${GSTREAMER_LIBRARIES}
${GSTREAMERAPP_LIBRARIES}
)
add_dependencies(${PROJECT_NAME} ${LIBS})
target_link_libraries(${PROJECT_NAME} ${LIBS})
install (
TARGETS ${PROJECT_NAME}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/libweston-2
)
|