Merge lp:~aacid/unity/zdefssharedandmodule into lp:unity/phablet

Proposed by Albert Astals Cid
Status: Merged
Approved by: Andrea Cimitan
Approved revision: no longer in the source branch.
Merged at revision: 635
Proposed branch: lp:~aacid/unity/zdefssharedandmodule
Merge into: lp:unity/phablet
Diff against target: 94 lines (+11/-7)
7 files modified
CMakeLists.txt (+4/-0)
plugins/HudClient/CMakeLists.txt (+0/-2)
plugins/Unity/CMakeLists.txt (+1/-0)
tests/qmltests/plugins/HudClient/CMakeLists.txt (+0/-2)
tests/qmltests/plugins/HudClient/fake_libhud_client.cpp (+6/-0)
tests/qmltests/plugins/Ubuntu/ChewieUI/CMakeLists.txt (+0/-1)
tests/qmltests/plugins/Unity/CMakeLists.txt (+0/-2)
To merge this branch: bzr merge lp:~aacid/unity/zdefssharedandmodule
Reviewer Review Type Date Requested Status
Andrea Cimitan (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+160661@code.launchpad.net

Commit message

Move the -zdefs definition to toplevel and make it applies to modules too

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
Andrea Cimitan (cimi) wrote :

and the change to tests/qmltests/plugins/HudClient/fake_libhud_client.cpp ?

Revision history for this message
Albert Astals Cid (aacid) wrote :

Remove it and you'll see it doesn't link because of missing symbols (i.e. it is needed because of the -z defs)

Revision history for this message
Andrea Cimitan (cimi) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2013-04-23 18:27:01 +0000
3+++ CMakeLists.txt 2013-04-24 14:21:46 +0000
4@@ -39,6 +39,10 @@
5 ENABLE_COVERAGE_REPORT(TARGETS ${SHELL_APP} FILTER /usr/include ${CMAKE_SOURCE_DIR}/tests/* ${CMAKE_BINARY_DIR}/*)
6 endif()
7
8+# Make sure we have all the needed symbols
9+set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,defs")
10+set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,-z,defs")
11+
12 # Static C++ checks
13 add_custom_target(cppcheck COMMAND cppcheck --enable=all -q --error-exitcode=2
14 ${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/tests)
15
16=== modified file 'plugins/HudClient/CMakeLists.txt'
17--- plugins/HudClient/CMakeLists.txt 2013-04-10 11:18:28 +0000
18+++ plugins/HudClient/CMakeLists.txt 2013-04-24 14:21:46 +0000
19@@ -6,8 +6,6 @@
20 pkg_search_module(DEEQT libdee-qt5 REQUIRED)
21 pkg_search_module(PULSE libpulse REQUIRED)
22
23-set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,defs")
24-
25 include_directories(
26 ${CMAKE_CURRENT_BINARY_DIR}
27 ${Qt5Core_INCLUDE_DIRS}
28
29=== modified file 'plugins/Unity/CMakeLists.txt'
30--- plugins/Unity/CMakeLists.txt 2013-04-10 11:12:38 +0000
31+++ plugins/Unity/CMakeLists.txt 2013-04-24 14:21:46 +0000
32@@ -30,6 +30,7 @@
33 ${QTDEE_LDFLAGS}
34 ${UNITYCORE_LDFLAGS}
35 ${Qt5DBus_LIBRARIES}
36+ ${Qt5Gui_LIBRARIES}
37 )
38
39 qt5_use_modules(Unity-qml Qml)
40
41=== modified file 'tests/qmltests/plugins/HudClient/CMakeLists.txt'
42--- tests/qmltests/plugins/HudClient/CMakeLists.txt 2013-04-10 11:12:38 +0000
43+++ tests/qmltests/plugins/HudClient/CMakeLists.txt 2013-04-24 14:21:46 +0000
44@@ -9,8 +9,6 @@
45 pkg_search_module(DEEQT libdee-qt5 REQUIRED)
46 pkg_search_module(PULSE libpulse REQUIRED)
47
48-set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,defs")
49-
50 include_directories(
51 ${CMAKE_CURRENT_BINARY_DIR}
52 ${Qt5Core_INCLUDE_DIRS}
53
54=== modified file 'tests/qmltests/plugins/HudClient/fake_libhud_client.cpp'
55--- tests/qmltests/plugins/HudClient/fake_libhud_client.cpp 2013-03-22 15:46:41 +0000
56+++ tests/qmltests/plugins/HudClient/fake_libhud_client.cpp 2013-04-24 14:21:46 +0000
57@@ -170,6 +170,12 @@
58 return NULL;
59 }
60
61+void hud_client_query_voice_query(HudClientQuery *cquery)
62+{
63+ Q_UNUSED(cquery);
64+ // TODO We are not testing voice queries yet
65+}
66+
67 GMenuModel *hud_client_param_get_model(HudClientParam *param)
68 {
69 Q_UNUSED(param);
70
71=== modified file 'tests/qmltests/plugins/Ubuntu/ChewieUI/CMakeLists.txt'
72--- tests/qmltests/plugins/Ubuntu/ChewieUI/CMakeLists.txt 2013-04-12 10:28:33 +0000
73+++ tests/qmltests/plugins/Ubuntu/ChewieUI/CMakeLists.txt 2013-04-24 14:21:46 +0000
74@@ -5,7 +5,6 @@
75 find_package(Qt5Quick REQUIRED)
76
77 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -Wall -Wextra -std=c++11")
78-set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,defs")
79
80 include_directories(
81 ${CMAKE_CURRENT_BINARY_DIR}
82
83=== modified file 'tests/qmltests/plugins/Unity/CMakeLists.txt'
84--- tests/qmltests/plugins/Unity/CMakeLists.txt 2013-04-22 16:46:21 +0000
85+++ tests/qmltests/plugins/Unity/CMakeLists.txt 2013-04-24 14:21:46 +0000
86@@ -7,8 +7,6 @@
87 pkg_search_module(GOBJECT gobject-2.0 REQUIRED)
88 pkg_search_module(DEEQT libdee-qt5 REQUIRED)
89
90-set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,defs")
91-
92 include_directories(
93 ${CMAKE_CURRENT_BINARY_DIR}
94 ${Qt5Core_INCLUDE_DIRS}

Subscribers

People subscribed via source and target branches