~phablet-team/aethercast/fix-for-microsoft-dongle

« back to all changes in this revision

Viewing changes to tools/CMakeLists.txt

Add hardware encoding and video streaming support.

The hardware encoding is currently only for Android 5.x based devices. On all others encoding will simply not work. The streaming part of aethercast (MPEGTS packetizing, RTP sending) as based on some code from Android.

Approved by PS Jenkins bot, Thomas Voß, Jim Hodapp.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
link_directories(
 
2
  ${MIRCLIENT_LIBRARY_DIRS}
 
3
  ${HYBRIS_MEDIA_LIBRARY_DIRS}
 
4
  ${EGL_LIBRARY_DIRS}
 
5
  ${GLESV2_LIBRARY_DIRS}
 
6
  ${GLIB_LIBRARY_DIRS}
 
7
  ${GIO_LIBRARY_DIRS}
 
8
  ${GIO-UNIX_LIBRARY_DIRS}
 
9
)
 
10
 
 
11
include_directories(
 
12
  ${CMAKE_CURRENT_SOURCE_DIR}/../src
 
13
  ${MIRCLIENT_INCLUDE_DIRS}
 
14
  ${HYBRIS_MEDIA_INCLDUE_DIRS}
 
15
  ${ANDROID_HEADERS_INCLUDE_DIRS}
 
16
  ${EGL_INCLUDE_DIRS}
 
17
  ${GLESV2_INCLUDE_DIRS}
 
18
  ${GLIB_INCLUDE_DIRS}
 
19
  ${GIO_INCLUDE_DIRS}
 
20
  ${GIO-UNIX_INCLUDE_DIRS}
 
21
  ${GST_INCLUDE_DIRS}
 
22
)
 
23
 
 
24
set(MIRSCREENCAST_TO_STREAM_SOURCES
 
25
    simplesource.cpp
 
26
    mirscreencast_to_stream.cpp)
 
27
 
 
28
add_executable(mirscreencast_to_stream
 
29
    ${MIRSCREENCAST_TO_STREAM_SOURCES})
 
30
target_link_libraries(mirscreencast_to_stream aethercast-core)
 
31
 
 
32
install(
 
33
  TARGETS mirscreencast_to_stream
 
34
  RUNTIME DESTINATION bin
 
35
)
 
36
 
 
37
add_executable(mpegts_muxer mpegts_muxer.cpp)
 
38
target_link_libraries(mpegts_muxer aethercast-core)
 
39
 
 
40
add_executable(raw_streamer raw_streamer.cpp)
 
41
target_link_libraries(raw_streamer aethercast-core)