~ubuntu-branches/ubuntu/wily/mir/wily-proposed

« back to all changes in this revision

Viewing changes to src/common/input/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2014-10-10 14:01:26 UTC
  • mto: This revision was merged to the branch mainline in revision 84.
  • Revision ID: package-import@ubuntu.com-20141010140126-n1czko8na1kuz4ll
Tags: upstream-0.8.0+14.10.20141010
Import upstream version 0.8.0+14.10.20141010

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright © 2012 Canonical Ltd.
 
2
#
 
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.
 
6
#
 
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.
 
11
#
 
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/>.
 
14
#
 
15
# Authored by: Thomas Voss <thomas.voss@canonical.com>
 
16
 
 
17
set(
 
18
  ANDROID_SHARED_INPUT_SOURCES
 
19
  ${CMAKE_CURRENT_SOURCE_DIR}/xkb_mapper.cpp
 
20
)
 
21
 
 
22
include_directories(${MIR_3RD_PARTY_INCLUDE_DIRECTORIES})
 
23
include_directories(${MIR_ANDROID_INCLUDE_DIRECTORIES})
 
24
 
 
25
add_subdirectory(android)
 
26
 
 
27
add_library(mirsharedinput OBJECT
 
28
  ${ANDROID_SHARED_INPUT_SOURCES}
 
29
  udev_wrapper.cpp
 
30
)
 
31
 
 
32
list(APPEND MIR_COMMON_SOURCES
 
33
  $<TARGET_OBJECTS:mirsharedinput>
 
34
)
 
35
 
 
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)
 
40
 
 
41
list(APPEND MIR_COMMON_REFERENCES ${XKBCOMMON_LIBRARIES})
 
42
list(APPEND MIR_COMMON_REFERENCES ${UDEV_LDFLAGS} ${UDEV_LIBRARIES})
 
43
 
 
44
set(MIR_COMMON_SOURCES ${MIR_COMMON_SOURCES} PARENT_SCOPE)
 
45
set(MIR_COMMON_REFERENCES ${MIR_COMMON_REFERENCES} PARENT_SCOPE)