Mir

Merge lp:~robertcarr/mir/build-droidinput-as-shared-lib into lp:~mir-team/mir/trunk

Proposed by Robert Carr
Status: Merged
Approved by: Robert Carr
Approved revision: no longer in the source branch.
Merged at revision: 468
Proposed branch: lp:~robertcarr/mir/build-droidinput-as-shared-lib
Merge into: lp:~mir-team/mir/trunk
Diff against target: 68 lines (+14/-11)
2 files modified
3rd_party/android-input/android/CMakeLists.txt (+12/-7)
3rd_party/android-input/tools/CMakeLists.txt (+2/-4)
To merge this branch: bzr merge lp:~robertcarr/mir/build-droidinput-as-shared-lib
Reviewer Review Type Date Requested Status
Alan Griffiths Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+151592@code.launchpad.net

Commit message

Build android input library as shared lib so it can be used by both the client library (for input receiver and batching) and the server.

Description of the change

Build android input library as shared lib so it can be used by both the client library (for input receiver and batching) and the server.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

I see link errors with MIR_INPUT_USE_ANDROID_TYPES on:

../../../lib/libandroid-input.so: undefined reference to `pthread_key_create'
../../../lib/libandroid-input.so: undefined reference to `pthread_attr_setstacksize'
../../../lib/libandroid-input.so: undefined reference to `pthread_once'
../../../lib/libandroid-input.so: undefined reference to `pthread_getspecific'
../../../lib/libandroid-input.so: undefined reference to `pthread_create'
../../../lib/libandroid-input.so: undefined reference to `pthread_setspecific'

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

> I see link errors with MIR_INPUT_USE_ANDROID_TYPES on:
>
> ../../../lib/libandroid-input.so: undefined reference to `pthread_key_create'
> ../../../lib/libandroid-input.so: undefined reference to
> `pthread_attr_setstacksize'
> ../../../lib/libandroid-input.so: undefined reference to `pthread_once'
> ../../../lib/libandroid-input.so: undefined reference to `pthread_getspecific'
> ../../../lib/libandroid-input.so: undefined reference to `pthread_create'
> ../../../lib/libandroid-input.so: undefined reference to `pthread_setspecific'

review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

I see link compile with MIR_INPUT_USE_ANDROID_TYPES on: but these don't originate with the MP.

The fix is:

  3rd_party/android-input/android/frameworks/native/include/utils/Condition.h => 3rd_party/android-deps/utils/Condition.h
  3rd_party/android-input/android/frameworks/native/include/utils/Mutex.h => 3rd_party/android-deps/utils/Mutex.h

(I'll create an MP)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '3rd_party/android-input/android/CMakeLists.txt'
2--- 3rd_party/android-input/android/CMakeLists.txt 2013-03-01 00:20:50 +0000
3+++ 3rd_party/android-input/android/CMakeLists.txt 2013-03-05 18:23:20 +0000
4@@ -49,7 +49,7 @@
5
6
7 add_library(
8- android-input
9+ android-input SHARED
10 # The stuff that we want
11 frameworks/base/services/input/EventHub.cpp
12 frameworks/base/services/input/InputApplication.cpp
13@@ -85,14 +85,19 @@
14 skia)
15 endif()
16
17-if(NOT MIR_INPUT_USE_ANDROID_TYPES)
18- target_link_libraries(
19- android-input
20- ${Boost_LIBRARIES})
21-endif()
22+target_link_libraries(
23+ android-input
24+
25+ ${Boost_LIBRARIES}
26+ -lpthread
27+)
28
29 set_target_properties(
30 android-input
31 PROPERTIES
32 COMPILE_FLAGS ${ANDROID_INPUT_COMPILE_FLAGS}
33- )
34+)
35+
36+install(
37+ TARGETS android-input
38+ LIBRARY DESTINATION lib)
39
40=== modified file '3rd_party/android-input/tools/CMakeLists.txt'
41--- 3rd_party/android-input/tools/CMakeLists.txt 2013-02-11 12:50:00 +0000
42+++ 3rd_party/android-input/tools/CMakeLists.txt 2013-03-05 18:23:20 +0000
43@@ -25,15 +25,15 @@
44 if(MIR_PLATFORM STREQUAL "gbm")
45 target_link_libraries(
46 raw-event-printer
47+
48 android-input
49- -lrt
50- -lpthread
51 )
52 endif()
53
54 if(MIR_PLATFORM STREQUAL "android")
55 target_link_libraries(
56 raw-event-printer
57+
58 android-input
59 )
60 endif()
61@@ -55,8 +55,6 @@
62 target_link_libraries(
63 cooked-event-printer
64 android-input
65- -lrt
66- -lpthread
67 )
68 endif()
69

Subscribers

People subscribed via source and target branches