1
# Copyright © 2012 Canonical Ltd.
3
# This program is free software: you can redistribute it and/or modify
4
# it under the terms of the GNU Lesser General Public License version 3 as
5
# published by the Free Software Foundation.
7
# This program is distributed in the hope that it will be useful,
8
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
# GNU Lesser General Public License for more details.
12
# You should have received a copy of the GNU Lesser General Public License
13
# along with this program. If not, see <http://www.gnu.org/licenses/>.
15
# Authored by: Thomas Voss <thomas.voss@canonical.com>
18
ANDROID_SHARED_INPUT_SOURCES
19
${CMAKE_CURRENT_SOURCE_DIR}/xkb_mapper.cpp
22
include_directories(${MIR_3RD_PARTY_INCLUDE_DIRECTORIES})
23
include_directories(${MIR_ANDROID_INCLUDE_DIRECTORIES})
25
add_subdirectory(android)
27
add_library(mirsharedinput OBJECT
28
${ANDROID_SHARED_INPUT_SOURCES}
32
list(APPEND MIR_COMMON_SOURCES
33
$<TARGET_OBJECTS:mirsharedinput>
36
# As we put android-input in MIR_COMMON_REFERENCES it ends up linked into
37
# libmirserver. But linking into libmircommon fails as it in turn needs
38
# mir::mir::terminate_with_current_exception() from mirserver
39
list(APPEND MIR_COMMON_REFERENCES android-input)
41
list(APPEND MIR_COMMON_REFERENCES ${XKBCOMMON_LIBRARIES})
42
list(APPEND MIR_COMMON_REFERENCES ${UDEV_LDFLAGS} ${UDEV_LIBRARIES})
44
set(MIR_COMMON_SOURCES ${MIR_COMMON_SOURCES} PARENT_SCOPE)
45
set(MIR_COMMON_REFERENCES ${MIR_COMMON_REFERENCES} PARENT_SCOPE)