~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): CI Train Bot
  • Date: 2015-05-12 13:12:55 UTC
  • mto: This revision was merged to the branch mainline in revision 96.
  • Revision ID: package-import@ubuntu.com-20150512131255-y7z12i8n4pbvo70x
Tags: upstream-0.13.0+15.10.20150512
Import upstream version 0.13.0+15.10.20150512

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
 
  input_event.cpp
31
 
)
32
 
 
33
 
list(APPEND MIR_COMMON_SOURCES
34
 
  $<TARGET_OBJECTS:mirsharedinput>
35
 
)
36
 
 
37
 
# As we put android-input in MIR_COMMON_REFERENCES it ends up linked into
38
 
# libmirserver. But linking into libmircommon fails as it in turn needs
39
 
# mir::mir::terminate_with_current_exception() from mirserver
40
 
list(APPEND MIR_COMMON_REFERENCES android-input)
41
 
 
42
 
list(APPEND MIR_COMMON_REFERENCES ${XKBCOMMON_LIBRARIES})
43
 
list(APPEND MIR_COMMON_REFERENCES ${UDEV_LDFLAGS} ${UDEV_LIBRARIES})
44
 
 
45
 
set(MIR_COMMON_SOURCES ${MIR_COMMON_SOURCES} PARENT_SCOPE)
46
 
set(MIR_COMMON_REFERENCES ${MIR_COMMON_REFERENCES} PARENT_SCOPE)