summaryrefslogtreecommitdiff
path: root/emulator/screen-sharing-agent/app/src/main/cpp/CMakeLists.txt
blob: 7802a31464d1c9fc176d76a28fe9b42487a46136 (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
# For more information about using CMake with Android Studio, read the
# documentation: https://d.android.com/studio/projects/add-native-code.html

cmake_minimum_required(VERSION 3.18.1)

project("screensharing")

set(${CMAKE_C_FLAGS}, "${CMAKE_C_FLAGS}")

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -Wall")

add_library(
        screen-sharing-agent

        SHARED

        accessors/display_info.cc
        accessors/display_manager.cc
        accessors/input_manager.cc
        accessors/key_character_map.cc
        accessors/key_event.cc
        accessors/motion_event.cc
        accessors/pointer_helper.cc
        accessors/service_manager.cc
        accessors/surface_control.cc
        accessors/window_manager.cc
        agent.cc
        base128_input_stream.cc
        base128_output_stream.cc
        control_messages.cc
        controller.cc
        display_streamer.cc
        io_exception.cc
        jvm.cc
        log.cc
        main.cc
        scoped_setting.cc
        settings.cc
        string_printf.cc
        video_packet_header.cc
)

target_include_directories(screen-sharing-agent PRIVATE .)

find_library(log log)
find_library(mediandk mediandk)

target_link_libraries(
        screen-sharing-agent
        -landroid

        ${log}
        ${mediandk}
)