Merge lp:~jpakkane/unity/build-fixes2 into lp:unity
- build-fixes2
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Marco Trevisan (Treviño) |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2934 |
Proposed branch: | lp:~jpakkane/unity/build-fixes2 |
Merge into: | lp:unity |
Diff against target: |
571 lines (+35/-46) 32 files modified
UnityCore/CMakeLists.txt (+1/-2) dash/CMakeLists.txt (+1/-4) dash/FilterAllButton.cpp (+1/-0) dash/FilterGenreWidget.cpp (+1/-0) dash/FilterMultiRangeWidget.cpp (+1/-0) dash/FilterRatingsWidget.cpp (+1/-0) dash/LensView.cpp (+1/-0) dash/PlacesGroup.cpp (+1/-0) dash/previews/ApplicationPreview.cpp (+2/-1) dash/previews/CMakeLists.txt (+1/-7) dash/previews/PreviewRatingsWidget.cpp (+1/-0) dash/previews/SocialPreview.cpp (+2/-0) hud/CMakeLists.txt (+1/-4) hud/HudView.cpp (+1/-0) launcher/BFBLauncherIcon.cpp (+1/-0) launcher/CMakeLists.txt (+1/-5) launcher/DesktopLauncherIcon.cpp (+1/-0) launcher/DeviceNotificationDisplayImp.cpp (+1/-0) launcher/ExpoLauncherIcon.cpp (+1/-0) launcher/LauncherController.cpp (+1/-0) launcher/SoftwareCenterLauncherIcon.cpp (+1/-0) launcher/TrashLauncherIcon.cpp (+1/-0) launcher/VolumeLauncherIcon.cpp (+1/-0) panel/CMakeLists.txt (+1/-4) panel/PanelMenuView.cpp (+1/-0) services/CMakeLists.txt (+1/-2) shortcuts/CMakeLists.txt (+1/-4) shortcuts/ShortcutHintPrivate.cpp (+1/-0) shortcuts/StandaloneShortcuts.cpp (+1/-0) unity-shared/CMakeLists.txt (+1/-3) unity-shared/TextInput.h (+2/-1) unity-standalone/CMakeLists.txt (+1/-9) |
To merge this branch: | bzr merge lp:~jpakkane/unity/build-fixes2 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Marco Trevisan (Treviño) | Approve | ||
Stephen M. Webb (community) | Needs Fixing | ||
PS Jenkins bot (community) | continuous-integration | Needs Fixing | |
Review via email: mp+130329@code.launchpad.net |
Commit message
More build fixes.
Description of the change
Second set of build fixes. This has three separate fixes.
1. GETTEXT_PACKAGE is defined in two different places: config.h and as a command line argument that is given to every single compiler invocation. Only use the first one and even then only when it is actually used.
2. Some include directories were (multiply) defined with add_definitions
3. Removed current source directory from include paths. It was added twice for each directory and both were unnecessary, since the source directory is in the search path by default.
Jussi Pakkanen (jpakkane) wrote : | # |
Jussi Pakkanen (jpakkane) wrote : | # |
A review please? This still applies cleanly and is a dependency for speeding up the build with precompiled headers.
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Stephen M. Webb (bregma) wrote : | # |
Merged trunk does not build due to an order-of-includes problem. The following patch fixes it.
=== modified file 'unity-
--- unity-shared/
+++ unity-shared/
@@ -20,6 +20,8 @@
#ifndef TEXTINPUT_H
#define TEXTINPUT_H
+#include "config.h"
+
#include <glib/gi18n-lib.h>
#include <gtk/gtk.h>
@@ -34,7 +36,6 @@
#include <UnityCore/
#include <UnityCore/
-#include "config.h"
#include "CairoTexture.h"
#include "unity-
#include "unity-
Jussi Pakkanen (jpakkane) wrote : | # |
Fixed.
Preview Diff
1 | === modified file 'UnityCore/CMakeLists.txt' | |||
2 | --- UnityCore/CMakeLists.txt 2012-11-14 14:54:06 +0000 | |||
3 | +++ UnityCore/CMakeLists.txt 2012-11-27 07:30:28 +0000 | |||
4 | @@ -104,12 +104,11 @@ | |||
5 | 104 | # CFLAGS and LIBS | 104 | # CFLAGS and LIBS |
6 | 105 | # | 105 | # |
7 | 106 | set (CFLAGS | 106 | set (CFLAGS |
8 | 107 | "-I${CMAKE_BINARY_DIR}" | ||
9 | 108 | "-DGETTEXT_PACKAGE=\"unity\"" | ||
10 | 109 | "-DLENSES_DIR=\"${_lensesdir}\"" | 107 | "-DLENSES_DIR=\"${_lensesdir}\"" |
11 | 110 | ) | 108 | ) |
12 | 111 | add_definitions (${CFLAGS}) | 109 | add_definitions (${CFLAGS}) |
13 | 112 | include_directories(${CORE_DEPS_INCLUDE_DIRS}) | 110 | include_directories(${CORE_DEPS_INCLUDE_DIRS}) |
14 | 111 | include_directories(${CMAKE_BINARY_DIR}) | ||
15 | 113 | 112 | ||
16 | 114 | set (LIBS ${CORE_DEPS_LIBRARIES}) | 113 | set (LIBS ${CORE_DEPS_LIBRARIES}) |
17 | 115 | 114 | ||
18 | 116 | 115 | ||
19 | === modified file 'dash/CMakeLists.txt' | |||
20 | --- dash/CMakeLists.txt 2012-10-17 08:46:48 +0000 | |||
21 | +++ dash/CMakeLists.txt 2012-11-27 07:30:28 +0000 | |||
22 | @@ -5,8 +5,6 @@ | |||
23 | 5 | set (CFLAGS | 5 | set (CFLAGS |
24 | 6 | ${CACHED_UNITY_DEPS_CFLAGS} | 6 | ${CACHED_UNITY_DEPS_CFLAGS} |
25 | 7 | ${CACHED_UNITY_DEPS_CFLAGS_OTHER} | 7 | ${CACHED_UNITY_DEPS_CFLAGS_OTHER} |
26 | 8 | "-DGETTEXT_PACKAGE=\"unity\"" | ||
27 | 9 | "-I${CMAKE_CURRENT_BINARY_DIR}" | ||
28 | 10 | ) | 8 | ) |
29 | 11 | 9 | ||
30 | 12 | if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "armv7l") | 10 | if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "armv7l") |
31 | @@ -22,7 +20,7 @@ | |||
32 | 22 | set (LIB_PATHS ${CACHED_UNITY_DEPS_LIBRARY_DIRS}) | 20 | set (LIB_PATHS ${CACHED_UNITY_DEPS_LIBRARY_DIRS}) |
33 | 23 | link_directories (${CMAKE_BINARY_DIR}/UnityCore ${LIB_PATHS}) | 21 | link_directories (${CMAKE_BINARY_DIR}/UnityCore ${LIB_PATHS}) |
34 | 24 | 22 | ||
36 | 25 | include_directories (. .. ../services ../UnityCore ${UNITY_SRC} ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) | 23 | include_directories (.. ../services ../UnityCore ${UNITY_SRC} ${CMAKE_BINARY_DIR}) |
37 | 26 | 24 | ||
38 | 27 | add_subdirectory(previews) | 25 | add_subdirectory(previews) |
39 | 28 | 26 | ||
40 | @@ -64,5 +62,4 @@ | |||
41 | 64 | # Standalone variant | 62 | # Standalone variant |
42 | 65 | # | 63 | # |
43 | 66 | add_executable (dash StandaloneDash.cpp) | 64 | add_executable (dash StandaloneDash.cpp) |
44 | 67 | add_dependencies (dash dash-lib) | ||
45 | 68 | target_link_libraries (dash dash-lib unity-shared) | 65 | target_link_libraries (dash dash-lib unity-shared) |
46 | 69 | 66 | ||
47 | === modified file 'dash/FilterAllButton.cpp' | |||
48 | --- dash/FilterAllButton.cpp 2012-11-19 18:54:19 +0000 | |||
49 | +++ dash/FilterAllButton.cpp 2012-11-27 07:30:28 +0000 | |||
50 | @@ -22,6 +22,7 @@ | |||
51 | 22 | 22 | ||
52 | 23 | 23 | ||
53 | 24 | #include <glib.h> | 24 | #include <glib.h> |
54 | 25 | #include "config.h" | ||
55 | 25 | #include <glib/gi18n-lib.h> | 26 | #include <glib/gi18n-lib.h> |
56 | 26 | 27 | ||
57 | 27 | #include "FilterAllButton.h" | 28 | #include "FilterAllButton.h" |
58 | 28 | 29 | ||
59 | === modified file 'dash/FilterGenreWidget.cpp' | |||
60 | --- dash/FilterGenreWidget.cpp 2012-05-06 23:48:38 +0000 | |||
61 | +++ dash/FilterGenreWidget.cpp 2012-11-27 07:30:28 +0000 | |||
62 | @@ -21,6 +21,7 @@ | |||
63 | 21 | */ | 21 | */ |
64 | 22 | 22 | ||
65 | 23 | #include <glib.h> | 23 | #include <glib.h> |
66 | 24 | #include "config.h" | ||
67 | 24 | #include <glib/gi18n-lib.h> | 25 | #include <glib/gi18n-lib.h> |
68 | 25 | #include <UnityCore/GLibWrapper.h> | 26 | #include <UnityCore/GLibWrapper.h> |
69 | 26 | 27 | ||
70 | 27 | 28 | ||
71 | === modified file 'dash/FilterMultiRangeWidget.cpp' | |||
72 | --- dash/FilterMultiRangeWidget.cpp 2012-05-06 23:48:38 +0000 | |||
73 | +++ dash/FilterMultiRangeWidget.cpp 2012-11-27 07:30:28 +0000 | |||
74 | @@ -28,6 +28,7 @@ | |||
75 | 28 | #include "FilterBasicButton.h" | 28 | #include "FilterBasicButton.h" |
76 | 29 | 29 | ||
77 | 30 | #include <glib.h> | 30 | #include <glib.h> |
78 | 31 | #include "config.h" | ||
79 | 31 | #include <glib/gi18n-lib.h> | 32 | #include <glib/gi18n-lib.h> |
80 | 32 | 33 | ||
81 | 33 | namespace unity | 34 | namespace unity |
82 | 34 | 35 | ||
83 | === modified file 'dash/FilterRatingsWidget.cpp' | |||
84 | --- dash/FilterRatingsWidget.cpp 2012-05-06 23:48:38 +0000 | |||
85 | +++ dash/FilterRatingsWidget.cpp 2012-11-27 07:30:28 +0000 | |||
86 | @@ -22,6 +22,7 @@ | |||
87 | 22 | 22 | ||
88 | 23 | #include <Nux/Nux.h> | 23 | #include <Nux/Nux.h> |
89 | 24 | #include <glib.h> | 24 | #include <glib.h> |
90 | 25 | #include "config.h" | ||
91 | 25 | #include <glib/gi18n-lib.h> | 26 | #include <glib/gi18n-lib.h> |
92 | 26 | 27 | ||
93 | 27 | #include "unity-shared/DashStyle.h" | 28 | #include "unity-shared/DashStyle.h" |
94 | 28 | 29 | ||
95 | === modified file 'dash/LensView.cpp' | |||
96 | --- dash/LensView.cpp 2012-11-23 23:49:46 +0000 | |||
97 | +++ dash/LensView.cpp 2012-11-27 07:30:28 +0000 | |||
98 | @@ -35,6 +35,7 @@ | |||
99 | 35 | #include "unity-shared/PlacesVScrollBar.h" | 35 | #include "unity-shared/PlacesVScrollBar.h" |
100 | 36 | #include "unity-shared/PlacesOverlayVScrollBar.h" | 36 | #include "unity-shared/PlacesOverlayVScrollBar.h" |
101 | 37 | 37 | ||
102 | 38 | #include "config.h" | ||
103 | 38 | #include <glib/gi18n-lib.h> | 39 | #include <glib/gi18n-lib.h> |
104 | 39 | 40 | ||
105 | 40 | namespace unity | 41 | namespace unity |
106 | 41 | 42 | ||
107 | === modified file 'dash/PlacesGroup.cpp' | |||
108 | --- dash/PlacesGroup.cpp 2012-11-19 18:54:19 +0000 | |||
109 | +++ dash/PlacesGroup.cpp 2012-11-27 07:30:28 +0000 | |||
110 | @@ -25,6 +25,7 @@ | |||
111 | 25 | 25 | ||
112 | 26 | #include "PlacesGroup.h" | 26 | #include "PlacesGroup.h" |
113 | 27 | #include <glib.h> | 27 | #include <glib.h> |
114 | 28 | #include "config.h" | ||
115 | 28 | #include <glib/gi18n-lib.h> | 29 | #include <glib/gi18n-lib.h> |
116 | 29 | 30 | ||
117 | 30 | #include <UnityCore/Variant.h> | 31 | #include <UnityCore/Variant.h> |
118 | 31 | 32 | ||
119 | === modified file 'dash/previews/ApplicationPreview.cpp' | |||
120 | --- dash/previews/ApplicationPreview.cpp 2012-11-13 21:42:58 +0000 | |||
121 | +++ dash/previews/ApplicationPreview.cpp 2012-11-27 07:30:28 +0000 | |||
122 | @@ -32,6 +32,8 @@ | |||
123 | 32 | #include <Nux/VLayout.h> | 32 | #include <Nux/VLayout.h> |
124 | 33 | #include <Nux/GridHLayout.h> | 33 | #include <Nux/GridHLayout.h> |
125 | 34 | #include <Nux/Button.h> | 34 | #include <Nux/Button.h> |
126 | 35 | |||
127 | 36 | #include "config.h" | ||
128 | 35 | #include <glib/gi18n-lib.h> | 37 | #include <glib/gi18n-lib.h> |
129 | 36 | 38 | ||
130 | 37 | #include "ApplicationPreview.h" | 39 | #include "ApplicationPreview.h" |
131 | @@ -39,7 +41,6 @@ | |||
132 | 39 | #include "PreviewInfoHintWidget.h" | 41 | #include "PreviewInfoHintWidget.h" |
133 | 40 | #include "PreviewRatingsWidget.h" | 42 | #include "PreviewRatingsWidget.h" |
134 | 41 | 43 | ||
135 | 42 | |||
136 | 43 | namespace unity | 44 | namespace unity |
137 | 44 | { | 45 | { |
138 | 45 | namespace dash | 46 | namespace dash |
139 | 46 | 47 | ||
140 | === modified file 'dash/previews/CMakeLists.txt' | |||
141 | --- dash/previews/CMakeLists.txt 2012-11-06 18:19:09 +0000 | |||
142 | +++ dash/previews/CMakeLists.txt 2012-11-27 07:30:28 +0000 | |||
143 | @@ -5,8 +5,6 @@ | |||
144 | 5 | set (CFLAGS | 5 | set (CFLAGS |
145 | 6 | ${CACHED_UNITY_DEPS_CFLAGS} | 6 | ${CACHED_UNITY_DEPS_CFLAGS} |
146 | 7 | ${CACHED_UNITY_DEPS_CFLAGS_OTHER} | 7 | ${CACHED_UNITY_DEPS_CFLAGS_OTHER} |
147 | 8 | "-DGETTEXT_PACKAGE=\"unity\"" | ||
148 | 9 | "-I${CMAKE_CURRENT_BINARY_DIR}" | ||
149 | 10 | ) | 8 | ) |
150 | 11 | 9 | ||
151 | 12 | if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "armv7l") | 10 | if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "armv7l") |
152 | @@ -21,7 +19,7 @@ | |||
153 | 21 | set (LIB_PATHS ${CACHED_UNITY_DEPS_LIBRARY_DIRS}) | 19 | set (LIB_PATHS ${CACHED_UNITY_DEPS_LIBRARY_DIRS}) |
154 | 22 | link_directories (${CMAKE_BINARY_DIR}/UnityCore ${LIB_PATHS}) | 20 | link_directories (${CMAKE_BINARY_DIR}/UnityCore ${LIB_PATHS}) |
155 | 23 | 21 | ||
157 | 24 | include_directories (. .. ../services ../UnityCore ${UNITY_SRC} ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) | 22 | include_directories (.. ../services ../UnityCore ${UNITY_SRC} ${CMAKE_BINARY_DIR}) |
158 | 25 | 23 | ||
159 | 26 | # | 24 | # |
160 | 27 | # Headers & Sources | 25 | # Headers & Sources |
161 | @@ -52,26 +50,22 @@ | |||
162 | 52 | # Application Standalone variant | 50 | # Application Standalone variant |
163 | 53 | # | 51 | # |
164 | 54 | add_executable (app_previews StandaloneApplicationPreview.cpp) | 52 | add_executable (app_previews StandaloneApplicationPreview.cpp) |
165 | 55 | add_dependencies (app_previews previews-lib) | ||
166 | 56 | target_link_libraries (app_previews previews-lib unity-shared) | 53 | target_link_libraries (app_previews previews-lib unity-shared) |
167 | 57 | 54 | ||
168 | 58 | # | 55 | # |
169 | 59 | # Music Standalone variant | 56 | # Music Standalone variant |
170 | 60 | # | 57 | # |
171 | 61 | add_executable (music_previews StandaloneMusicPreview.cpp) | 58 | add_executable (music_previews StandaloneMusicPreview.cpp) |
172 | 62 | add_dependencies (music_previews previews-lib) | ||
173 | 63 | target_link_libraries (music_previews previews-lib unity-shared) | 59 | target_link_libraries (music_previews previews-lib unity-shared) |
174 | 64 | 60 | ||
175 | 65 | # | 61 | # |
176 | 66 | # Social Standalone variant | 62 | # Social Standalone variant |
177 | 67 | # | 63 | # |
178 | 68 | add_executable (social_previews StandaloneSocialPreview.cpp) | 64 | add_executable (social_previews StandaloneSocialPreview.cpp) |
179 | 69 | add_dependencies (social_previews previews-lib) | ||
180 | 70 | target_link_libraries (social_previews previews-lib unity-shared) | 65 | target_link_libraries (social_previews previews-lib unity-shared) |
181 | 71 | 66 | ||
182 | 72 | # | 67 | # |
183 | 73 | # Music Standalone variant | 68 | # Music Standalone variant |
184 | 74 | # | 69 | # |
185 | 75 | add_executable (movie_previews StandaloneMoviePreview.cpp) | 70 | add_executable (movie_previews StandaloneMoviePreview.cpp) |
186 | 76 | add_dependencies (movie_previews previews-lib) | ||
187 | 77 | target_link_libraries (movie_previews previews-lib unity-shared) | 71 | target_link_libraries (movie_previews previews-lib unity-shared) |
188 | 78 | 72 | ||
189 | === modified file 'dash/previews/PreviewRatingsWidget.cpp' | |||
190 | --- dash/previews/PreviewRatingsWidget.cpp 2012-08-28 08:30:00 +0000 | |||
191 | +++ dash/previews/PreviewRatingsWidget.cpp 2012-11-27 07:30:28 +0000 | |||
192 | @@ -23,6 +23,7 @@ | |||
193 | 23 | #include <Nux/Nux.h> | 23 | #include <Nux/Nux.h> |
194 | 24 | #include <Nux/VLayout.h> | 24 | #include <Nux/VLayout.h> |
195 | 25 | #include <glib.h> | 25 | #include <glib.h> |
196 | 26 | #include "config.h" | ||
197 | 26 | #include <glib/gi18n-lib.h> | 27 | #include <glib/gi18n-lib.h> |
198 | 27 | 28 | ||
199 | 28 | #include "unity-shared/RatingsButton.h" | 29 | #include "unity-shared/RatingsButton.h" |
200 | 29 | 30 | ||
201 | === modified file 'dash/previews/SocialPreview.cpp' | |||
202 | --- dash/previews/SocialPreview.cpp 2012-11-13 21:42:58 +0000 | |||
203 | +++ dash/previews/SocialPreview.cpp 2012-11-27 07:30:28 +0000 | |||
204 | @@ -32,6 +32,8 @@ | |||
205 | 32 | #include <Nux/VLayout.h> | 32 | #include <Nux/VLayout.h> |
206 | 33 | #include <Nux/GridHLayout.h> | 33 | #include <Nux/GridHLayout.h> |
207 | 34 | #include <Nux/Button.h> | 34 | #include <Nux/Button.h> |
208 | 35 | |||
209 | 36 | #include "config.h" | ||
210 | 35 | #include <glib/gi18n-lib.h> | 37 | #include <glib/gi18n-lib.h> |
211 | 36 | 38 | ||
212 | 37 | #include "SocialPreview.h" | 39 | #include "SocialPreview.h" |
213 | 38 | 40 | ||
214 | === modified file 'hud/CMakeLists.txt' | |||
215 | --- hud/CMakeLists.txt 2012-10-17 08:46:48 +0000 | |||
216 | +++ hud/CMakeLists.txt 2012-11-27 07:30:28 +0000 | |||
217 | @@ -5,8 +5,6 @@ | |||
218 | 5 | set (CFLAGS | 5 | set (CFLAGS |
219 | 6 | ${CACHED_UNITY_DEPS_CFLAGS} | 6 | ${CACHED_UNITY_DEPS_CFLAGS} |
220 | 7 | ${CACHED_UNITY_DEPS_CFLAGS_OTHER} | 7 | ${CACHED_UNITY_DEPS_CFLAGS_OTHER} |
221 | 8 | "-DGETTEXT_PACKAGE=\"unity\"" | ||
222 | 9 | "-I${CMAKE_CURRENT_BINARY_DIR}" | ||
223 | 10 | ) | 8 | ) |
224 | 11 | 9 | ||
225 | 12 | if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "armv7l") | 10 | if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "armv7l") |
226 | @@ -22,7 +20,7 @@ | |||
227 | 22 | set (LIB_PATHS ${CACHED_UNITY_DEPS_LIBRARY_DIRS}) | 20 | set (LIB_PATHS ${CACHED_UNITY_DEPS_LIBRARY_DIRS}) |
228 | 23 | link_directories (${CMAKE_BINARY_DIR}/UnityCore ${LIB_PATHS}) | 21 | link_directories (${CMAKE_BINARY_DIR}/UnityCore ${LIB_PATHS}) |
229 | 24 | 22 | ||
231 | 25 | include_directories (. .. ../services ../UnityCore ${UNITY_SRC} ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) | 23 | include_directories (.. ../services ../UnityCore ${UNITY_SRC} ${CMAKE_BINARY_DIR}) |
232 | 26 | 24 | ||
233 | 27 | # | 25 | # |
234 | 28 | # Headers & Sources | 26 | # Headers & Sources |
235 | @@ -44,5 +42,4 @@ | |||
236 | 44 | # Standalone variant | 42 | # Standalone variant |
237 | 45 | # | 43 | # |
238 | 46 | add_executable (hud StandaloneHud.cpp) | 44 | add_executable (hud StandaloneHud.cpp) |
239 | 47 | add_dependencies (hud hud-lib) | ||
240 | 48 | target_link_libraries (hud hud-lib unity-shared) | 45 | target_link_libraries (hud hud-lib unity-shared) |
241 | 49 | 46 | ||
242 | === modified file 'hud/HudView.cpp' | |||
243 | --- hud/HudView.cpp 2012-11-08 09:12:24 +0000 | |||
244 | +++ hud/HudView.cpp 2012-11-27 07:30:28 +0000 | |||
245 | @@ -20,6 +20,7 @@ | |||
246 | 20 | 20 | ||
247 | 21 | #include <math.h> | 21 | #include <math.h> |
248 | 22 | 22 | ||
249 | 23 | #include "config.h" | ||
250 | 23 | #include <glib/gi18n-lib.h> | 24 | #include <glib/gi18n-lib.h> |
251 | 24 | #include <NuxCore/Logger.h> | 25 | #include <NuxCore/Logger.h> |
252 | 25 | #include <UnityCore/GLibWrapper.h> | 26 | #include <UnityCore/GLibWrapper.h> |
253 | 26 | 27 | ||
254 | === modified file 'launcher/BFBLauncherIcon.cpp' | |||
255 | --- launcher/BFBLauncherIcon.cpp 2012-09-20 14:58:49 +0000 | |||
256 | +++ launcher/BFBLauncherIcon.cpp 2012-11-27 07:30:28 +0000 | |||
257 | @@ -18,6 +18,7 @@ | |||
258 | 18 | * Andrea Azzarone <azzaronea@gmail.com> | 18 | * Andrea Azzarone <azzaronea@gmail.com> |
259 | 19 | */ | 19 | */ |
260 | 20 | 20 | ||
261 | 21 | #include "config.h" | ||
262 | 21 | #include <glib/gi18n-lib.h> | 22 | #include <glib/gi18n-lib.h> |
263 | 22 | #include "unity-shared/UBusMessages.h" | 23 | #include "unity-shared/UBusMessages.h" |
264 | 23 | 24 | ||
265 | 24 | 25 | ||
266 | === modified file 'launcher/CMakeLists.txt' | |||
267 | --- launcher/CMakeLists.txt 2012-11-15 22:53:24 +0000 | |||
268 | +++ launcher/CMakeLists.txt 2012-11-27 07:30:28 +0000 | |||
269 | @@ -6,8 +6,6 @@ | |||
270 | 6 | ${CACHED_UNITY_DEPS_CFLAGS} | 6 | ${CACHED_UNITY_DEPS_CFLAGS} |
271 | 7 | ${CACHED_UNITY_DEPS_CFLAGS_OTHER} | 7 | ${CACHED_UNITY_DEPS_CFLAGS_OTHER} |
272 | 8 | "-fPIC" | 8 | "-fPIC" |
273 | 9 | "-DGETTEXT_PACKAGE=\"unity\"" | ||
274 | 10 | "-I${CMAKE_CURRENT_BINARY_DIR}" | ||
275 | 11 | ) | 9 | ) |
276 | 12 | 10 | ||
277 | 13 | if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "armv7l") | 11 | if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "armv7l") |
278 | @@ -23,7 +21,7 @@ | |||
279 | 23 | set (LIB_PATHS ${CACHED_UNITY_DEPS_LIBRARY_DIRS}) | 21 | set (LIB_PATHS ${CACHED_UNITY_DEPS_LIBRARY_DIRS}) |
280 | 24 | link_directories (${CMAKE_BINARY_DIR}/UnityCore ${LIB_PATHS}) | 22 | link_directories (${CMAKE_BINARY_DIR}/UnityCore ${LIB_PATHS}) |
281 | 25 | 23 | ||
283 | 26 | include_directories (. .. ../services ../UnityCore ${UNITY_SRC} ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) | 24 | include_directories (.. ../services ../UnityCore ${UNITY_SRC} ${CMAKE_BINARY_DIR}) |
284 | 27 | 25 | ||
285 | 28 | # | 26 | # |
286 | 29 | # Headers & Sources | 27 | # Headers & Sources |
287 | @@ -103,11 +101,9 @@ | |||
288 | 103 | # Standalone variant | 101 | # Standalone variant |
289 | 104 | # | 102 | # |
290 | 105 | add_executable (launcher StandaloneLauncher.cpp) | 103 | add_executable (launcher StandaloneLauncher.cpp) |
291 | 106 | add_dependencies (launcher launcher-lib) | ||
292 | 107 | target_link_libraries (launcher launcher-lib unity-shared unity-shared-standalone) | 104 | target_link_libraries (launcher launcher-lib unity-shared unity-shared-standalone) |
293 | 108 | 105 | ||
294 | 109 | if (ENABLE_X_SUPPORT) | 106 | if (ENABLE_X_SUPPORT) |
295 | 110 | add_executable (switcher StandaloneSwitcher.cpp) | 107 | add_executable (switcher StandaloneSwitcher.cpp) |
296 | 111 | add_dependencies (switcher switcher-lib launcher-lib) | ||
297 | 112 | target_link_libraries (switcher switcher-lib launcher-lib unity-shared unity-shared-standalone) | 108 | target_link_libraries (switcher switcher-lib launcher-lib unity-shared unity-shared-standalone) |
298 | 113 | endif () | 109 | endif () |
299 | 114 | 110 | ||
300 | === modified file 'launcher/DesktopLauncherIcon.cpp' | |||
301 | --- launcher/DesktopLauncherIcon.cpp 2012-10-11 01:44:15 +0000 | |||
302 | +++ launcher/DesktopLauncherIcon.cpp 2012-11-27 07:30:28 +0000 | |||
303 | @@ -20,6 +20,7 @@ | |||
304 | 20 | #include "DesktopLauncherIcon.h" | 20 | #include "DesktopLauncherIcon.h" |
305 | 21 | #include "unity-shared/WindowManager.h" | 21 | #include "unity-shared/WindowManager.h" |
306 | 22 | #include "FavoriteStore.h" | 22 | #include "FavoriteStore.h" |
307 | 23 | #include "config.h" | ||
308 | 23 | 24 | ||
309 | 24 | #include <glib/gi18n-lib.h> | 25 | #include <glib/gi18n-lib.h> |
310 | 25 | 26 | ||
311 | 26 | 27 | ||
312 | === modified file 'launcher/DeviceNotificationDisplayImp.cpp' | |||
313 | --- launcher/DeviceNotificationDisplayImp.cpp 2012-09-12 15:07:07 +0000 | |||
314 | +++ launcher/DeviceNotificationDisplayImp.cpp 2012-11-27 07:30:28 +0000 | |||
315 | @@ -18,6 +18,7 @@ | |||
316 | 18 | */ | 18 | */ |
317 | 19 | 19 | ||
318 | 20 | #include <gdk/gdk.h> | 20 | #include <gdk/gdk.h> |
319 | 21 | #include "config.h" | ||
320 | 21 | #include <glib/gi18n-lib.h> | 22 | #include <glib/gi18n-lib.h> |
321 | 22 | #include <libnotify/notify.h> | 23 | #include <libnotify/notify.h> |
322 | 23 | #include <sigc++/sigc++.h> | 24 | #include <sigc++/sigc++.h> |
323 | 24 | 25 | ||
324 | === modified file 'launcher/ExpoLauncherIcon.cpp' | |||
325 | --- launcher/ExpoLauncherIcon.cpp 2012-11-06 18:19:09 +0000 | |||
326 | +++ launcher/ExpoLauncherIcon.cpp 2012-11-27 07:30:28 +0000 | |||
327 | @@ -20,6 +20,7 @@ | |||
328 | 20 | #include "ExpoLauncherIcon.h" | 20 | #include "ExpoLauncherIcon.h" |
329 | 21 | #include "FavoriteStore.h" | 21 | #include "FavoriteStore.h" |
330 | 22 | 22 | ||
331 | 23 | #include "config.h" | ||
332 | 23 | #include <glib/gi18n-lib.h> | 24 | #include <glib/gi18n-lib.h> |
333 | 24 | 25 | ||
334 | 25 | namespace unity | 26 | namespace unity |
335 | 26 | 27 | ||
336 | === modified file 'launcher/LauncherController.cpp' | |||
337 | --- launcher/LauncherController.cpp 2012-11-27 01:04:19 +0000 | |||
338 | +++ launcher/LauncherController.cpp 2012-11-27 07:30:28 +0000 | |||
339 | @@ -19,6 +19,7 @@ | |||
340 | 19 | * Marco Trevisan <marco.trevisan@canonical.com> | 19 | * Marco Trevisan <marco.trevisan@canonical.com> |
341 | 20 | */ | 20 | */ |
342 | 21 | 21 | ||
343 | 22 | #include "config.h" | ||
344 | 22 | #include <glib/gi18n-lib.h> | 23 | #include <glib/gi18n-lib.h> |
345 | 23 | #include <libbamf/libbamf.h> | 24 | #include <libbamf/libbamf.h> |
346 | 24 | 25 | ||
347 | 25 | 26 | ||
348 | === modified file 'launcher/SoftwareCenterLauncherIcon.cpp' | |||
349 | --- launcher/SoftwareCenterLauncherIcon.cpp 2012-10-31 16:33:00 +0000 | |||
350 | +++ launcher/SoftwareCenterLauncherIcon.cpp 2012-11-27 07:30:28 +0000 | |||
351 | @@ -19,6 +19,7 @@ | |||
352 | 19 | */ | 19 | */ |
353 | 20 | 20 | ||
354 | 21 | #include <NuxCore/Logger.h> | 21 | #include <NuxCore/Logger.h> |
355 | 22 | #include "config.h" | ||
356 | 22 | #include <glib/gi18n-lib.h> | 23 | #include <glib/gi18n-lib.h> |
357 | 23 | #include "SoftwareCenterLauncherIcon.h" | 24 | #include "SoftwareCenterLauncherIcon.h" |
358 | 24 | #include "Launcher.h" | 25 | #include "Launcher.h" |
359 | 25 | 26 | ||
360 | === modified file 'launcher/TrashLauncherIcon.cpp' | |||
361 | --- launcher/TrashLauncherIcon.cpp 2012-11-13 22:39:49 +0000 | |||
362 | +++ launcher/TrashLauncherIcon.cpp 2012-11-27 07:30:28 +0000 | |||
363 | @@ -20,6 +20,7 @@ | |||
364 | 20 | 20 | ||
365 | 21 | #include "TrashLauncherIcon.h" | 21 | #include "TrashLauncherIcon.h" |
366 | 22 | 22 | ||
367 | 23 | #include "config.h" | ||
368 | 23 | #include <glib/gi18n-lib.h> | 24 | #include <glib/gi18n-lib.h> |
369 | 24 | #include <Nux/WindowCompositor.h> | 25 | #include <Nux/WindowCompositor.h> |
370 | 25 | #include <NuxCore/Logger.h> | 26 | #include <NuxCore/Logger.h> |
371 | 26 | 27 | ||
372 | === modified file 'launcher/VolumeLauncherIcon.cpp' | |||
373 | --- launcher/VolumeLauncherIcon.cpp 2012-11-27 01:04:19 +0000 | |||
374 | +++ launcher/VolumeLauncherIcon.cpp 2012-11-27 07:30:28 +0000 | |||
375 | @@ -19,6 +19,7 @@ | |||
376 | 19 | */ | 19 | */ |
377 | 20 | 20 | ||
378 | 21 | 21 | ||
379 | 22 | #include "config.h" | ||
380 | 22 | #include <glib/gi18n-lib.h> | 23 | #include <glib/gi18n-lib.h> |
381 | 23 | #include <NuxCore/Logger.h> | 24 | #include <NuxCore/Logger.h> |
382 | 24 | #include <UnityCore/GLibSignal.h> | 25 | #include <UnityCore/GLibSignal.h> |
383 | 25 | 26 | ||
384 | === modified file 'panel/CMakeLists.txt' | |||
385 | --- panel/CMakeLists.txt 2012-10-18 10:44:07 +0000 | |||
386 | +++ panel/CMakeLists.txt 2012-11-27 07:30:28 +0000 | |||
387 | @@ -5,8 +5,6 @@ | |||
388 | 5 | set (CFLAGS | 5 | set (CFLAGS |
389 | 6 | ${CACHED_UNITY_DEPS_CFLAGS} | 6 | ${CACHED_UNITY_DEPS_CFLAGS} |
390 | 7 | ${CACHED_UNITY_DEPS_CFLAGS_OTHER} | 7 | ${CACHED_UNITY_DEPS_CFLAGS_OTHER} |
391 | 8 | "-DGETTEXT_PACKAGE=\"unity\"" | ||
392 | 9 | "-I${CMAKE_CURRENT_BINARY_DIR}" | ||
393 | 10 | ) | 8 | ) |
394 | 11 | 9 | ||
395 | 12 | if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "armv7l") | 10 | if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "armv7l") |
396 | @@ -22,7 +20,7 @@ | |||
397 | 22 | set (LIB_PATHS ${CACHED_UNITY_DEPS_LIBRARY_DIRS}) | 20 | set (LIB_PATHS ${CACHED_UNITY_DEPS_LIBRARY_DIRS}) |
398 | 23 | link_directories (${CMAKE_BINARY_DIR}/UnityCore ${LIB_PATHS}) | 21 | link_directories (${CMAKE_BINARY_DIR}/UnityCore ${LIB_PATHS}) |
399 | 24 | 22 | ||
401 | 25 | include_directories (. .. ../services ../UnityCore ${UNITY_SRC} ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) | 23 | include_directories (.. ../services ../UnityCore ${UNITY_SRC} ${CMAKE_BINARY_DIR}) |
402 | 26 | 24 | ||
403 | 27 | # | 25 | # |
404 | 28 | # Headers & Sources | 26 | # Headers & Sources |
405 | @@ -45,5 +43,4 @@ | |||
406 | 45 | # Standalone variant | 43 | # Standalone variant |
407 | 46 | # | 44 | # |
408 | 47 | add_executable (panel StandalonePanel.cpp) | 45 | add_executable (panel StandalonePanel.cpp) |
409 | 48 | add_dependencies (panel panel-lib) | ||
410 | 49 | target_link_libraries (panel panel-lib unity-shared unity-shared-standalone) | 46 | target_link_libraries (panel panel-lib unity-shared unity-shared-standalone) |
411 | 50 | 47 | ||
412 | === modified file 'panel/PanelMenuView.cpp' | |||
413 | --- panel/PanelMenuView.cpp 2012-11-16 15:58:49 +0000 | |||
414 | +++ panel/PanelMenuView.cpp 2012-11-27 07:30:28 +0000 | |||
415 | @@ -31,6 +31,7 @@ | |||
416 | 31 | 31 | ||
417 | 32 | #include <UnityCore/Variant.h> | 32 | #include <UnityCore/Variant.h> |
418 | 33 | 33 | ||
419 | 34 | #include "config.h" | ||
420 | 34 | #include <glib/gi18n-lib.h> | 35 | #include <glib/gi18n-lib.h> |
421 | 35 | 36 | ||
422 | 36 | namespace unity | 37 | namespace unity |
423 | 37 | 38 | ||
424 | === modified file 'services/CMakeLists.txt' | |||
425 | --- services/CMakeLists.txt 2012-11-06 18:19:09 +0000 | |||
426 | +++ services/CMakeLists.txt 2012-11-27 07:30:28 +0000 | |||
427 | @@ -35,13 +35,12 @@ | |||
428 | 35 | set(CFLAGS | 35 | set(CFLAGS |
429 | 36 | "${SERVICE_DEPS_CFLAGS}" | 36 | "${SERVICE_DEPS_CFLAGS}" |
430 | 37 | ${SERVICE_DEPS_CFLAGS_OTHER} | 37 | ${SERVICE_DEPS_CFLAGS_OTHER} |
431 | 38 | "-I${CMAKE_CURRENT_BINARY_DIR}" | ||
432 | 39 | "-DGETTEXT_PACKAGE=\"unity\"" | ||
433 | 40 | "-DINDICATORDIR=\"${_indicatordir}\"" | 38 | "-DINDICATORDIR=\"${_indicatordir}\"" |
434 | 41 | "-DINDICATORICONDIR=\"${_iconsdir}\"" | 39 | "-DINDICATORICONDIR=\"${_iconsdir}\"" |
435 | 42 | "-Werror -Wall" | 40 | "-Werror -Wall" |
436 | 43 | ) | 41 | ) |
437 | 44 | add_definitions(${CFLAGS}) | 42 | add_definitions(${CFLAGS}) |
438 | 43 | include_directories(${CMAKE_CURRENT_BINARY_DIR}) | ||
439 | 45 | 44 | ||
440 | 46 | set(LIBS ${SERVICE_DEPS_LIBRARIES}) | 45 | set(LIBS ${SERVICE_DEPS_LIBRARIES}) |
441 | 47 | link_libraries(${LIBS}) | 46 | link_libraries(${LIBS}) |
442 | 48 | 47 | ||
443 | === modified file 'shortcuts/CMakeLists.txt' | |||
444 | --- shortcuts/CMakeLists.txt 2012-10-17 08:46:48 +0000 | |||
445 | +++ shortcuts/CMakeLists.txt 2012-11-27 07:30:28 +0000 | |||
446 | @@ -5,8 +5,6 @@ | |||
447 | 5 | set (CFLAGS | 5 | set (CFLAGS |
448 | 6 | ${CACHED_UNITY_DEPS_CFLAGS} | 6 | ${CACHED_UNITY_DEPS_CFLAGS} |
449 | 7 | ${CACHED_UNITY_DEPS_CFLAGS_OTHER} | 7 | ${CACHED_UNITY_DEPS_CFLAGS_OTHER} |
450 | 8 | "-DGETTEXT_PACKAGE=\"unity\"" | ||
451 | 9 | "-I${CMAKE_CURRENT_BINARY_DIR}" | ||
452 | 10 | ) | 8 | ) |
453 | 11 | 9 | ||
454 | 12 | if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "armv7l") | 10 | if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "armv7l") |
455 | @@ -22,7 +20,7 @@ | |||
456 | 22 | set (LIB_PATHS ${CACHED_UNITY_DEPS_LIBRARY_DIRS}) | 20 | set (LIB_PATHS ${CACHED_UNITY_DEPS_LIBRARY_DIRS}) |
457 | 23 | link_directories (${CMAKE_BINARY_DIR}/UnityCore ${LIB_PATHS}) | 21 | link_directories (${CMAKE_BINARY_DIR}/UnityCore ${LIB_PATHS}) |
458 | 24 | 22 | ||
460 | 25 | include_directories (. .. ../services ../UnityCore ${UNITY_SRC} ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) | 23 | include_directories (.. ../services ../UnityCore ${UNITY_SRC} ${CMAKE_BINARY_DIR}) |
461 | 26 | 24 | ||
462 | 27 | # | 25 | # |
463 | 28 | # Headers & Sources | 26 | # Headers & Sources |
464 | @@ -48,5 +46,4 @@ | |||
465 | 48 | # Standalone variant | 46 | # Standalone variant |
466 | 49 | # | 47 | # |
467 | 50 | add_executable (shortcuts StandaloneShortcuts.cpp) | 48 | add_executable (shortcuts StandaloneShortcuts.cpp) |
468 | 51 | add_dependencies (shortcuts shortcuts-lib) | ||
469 | 52 | target_link_libraries (shortcuts shortcuts-lib unity-shared) | 49 | target_link_libraries (shortcuts shortcuts-lib unity-shared) |
470 | 53 | 50 | ||
471 | === modified file 'shortcuts/ShortcutHintPrivate.cpp' | |||
472 | --- shortcuts/ShortcutHintPrivate.cpp 2012-05-07 22:28:17 +0000 | |||
473 | +++ shortcuts/ShortcutHintPrivate.cpp 2012-11-27 07:30:28 +0000 | |||
474 | @@ -16,6 +16,7 @@ | |||
475 | 16 | * Authored by: Andrea Azzarone <azzaronea@gmail.com> | 16 | * Authored by: Andrea Azzarone <azzaronea@gmail.com> |
476 | 17 | */ | 17 | */ |
477 | 18 | 18 | ||
478 | 19 | #include "config.h" | ||
479 | 19 | #include <glib/gi18n-lib.h> | 20 | #include <glib/gi18n-lib.h> |
480 | 20 | #include <gtk/gtk.h> | 21 | #include <gtk/gtk.h> |
481 | 21 | 22 | ||
482 | 22 | 23 | ||
483 | === modified file 'shortcuts/StandaloneShortcuts.cpp' | |||
484 | --- shortcuts/StandaloneShortcuts.cpp 2012-09-11 10:38:31 +0000 | |||
485 | +++ shortcuts/StandaloneShortcuts.cpp 2012-11-27 07:30:28 +0000 | |||
486 | @@ -17,6 +17,7 @@ | |||
487 | 17 | * Authored by: Andrea Azzarone <azzaronea@gmail.com> | 17 | * Authored by: Andrea Azzarone <azzaronea@gmail.com> |
488 | 18 | */ | 18 | */ |
489 | 19 | 19 | ||
490 | 20 | #include "config.h" | ||
491 | 20 | #include <glib/gi18n-lib.h> | 21 | #include <glib/gi18n-lib.h> |
492 | 21 | #include <gtk/gtk.h> | 22 | #include <gtk/gtk.h> |
493 | 22 | #include <Nux/Nux.h> | 23 | #include <Nux/Nux.h> |
494 | 23 | 24 | ||
495 | === modified file 'unity-shared/CMakeLists.txt' | |||
496 | --- unity-shared/CMakeLists.txt 2012-11-20 21:08:54 +0000 | |||
497 | +++ unity-shared/CMakeLists.txt 2012-11-27 07:30:28 +0000 | |||
498 | @@ -5,8 +5,6 @@ | |||
499 | 5 | set (CFLAGS | 5 | set (CFLAGS |
500 | 6 | ${CACHED_UNITY_DEPS_CFLAGS} | 6 | ${CACHED_UNITY_DEPS_CFLAGS} |
501 | 7 | ${CACHED_UNITY_DEPS_CFLAGS_OTHER} | 7 | ${CACHED_UNITY_DEPS_CFLAGS_OTHER} |
502 | 8 | "-DGETTEXT_PACKAGE=\"unity\"" | ||
503 | 9 | "-I${CMAKE_CURRENT_BINARY_DIR}" | ||
504 | 10 | ) | 8 | ) |
505 | 11 | 9 | ||
506 | 12 | if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "armv7l") | 10 | if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "armv7l") |
507 | @@ -20,7 +18,7 @@ | |||
508 | 20 | set (LIB_PATHS ${CACHED_UNITY_DEPS_LIBRARY_DIRS}) | 18 | set (LIB_PATHS ${CACHED_UNITY_DEPS_LIBRARY_DIRS}) |
509 | 21 | link_directories (${CMAKE_BINARY_DIR}/UnityCore ${LIB_PATHS}) | 19 | link_directories (${CMAKE_BINARY_DIR}/UnityCore ${LIB_PATHS}) |
510 | 22 | 20 | ||
512 | 23 | include_directories (. .. ../services ../UnityCore ${UNITY_SRC} ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) | 21 | include_directories (.. ../services ../UnityCore ${UNITY_SRC} ${CMAKE_BINARY_DIR}) |
513 | 24 | 22 | ||
514 | 25 | # | 23 | # |
515 | 26 | # Headers & Sources | 24 | # Headers & Sources |
516 | 27 | 25 | ||
517 | === modified file 'unity-shared/TextInput.h' | |||
518 | --- unity-shared/TextInput.h 2012-11-22 12:53:25 +0000 | |||
519 | +++ unity-shared/TextInput.h 2012-11-27 07:30:28 +0000 | |||
520 | @@ -20,6 +20,8 @@ | |||
521 | 20 | #ifndef TEXTINPUT_H | 20 | #ifndef TEXTINPUT_H |
522 | 21 | #define TEXTINPUT_H | 21 | #define TEXTINPUT_H |
523 | 22 | 22 | ||
524 | 23 | #include "config.h" | ||
525 | 24 | |||
526 | 23 | #include <glib/gi18n-lib.h> | 25 | #include <glib/gi18n-lib.h> |
527 | 24 | #include <gtk/gtk.h> | 26 | #include <gtk/gtk.h> |
528 | 25 | 27 | ||
529 | @@ -34,7 +36,6 @@ | |||
530 | 34 | #include <UnityCore/GLibSource.h> | 36 | #include <UnityCore/GLibSource.h> |
531 | 35 | #include <UnityCore/Variant.h> | 37 | #include <UnityCore/Variant.h> |
532 | 36 | 38 | ||
533 | 37 | #include "config.h" | ||
534 | 38 | #include "CairoTexture.h" | 39 | #include "CairoTexture.h" |
535 | 39 | #include "unity-shared/IconTexture.h" | 40 | #include "unity-shared/IconTexture.h" |
536 | 40 | #include "unity-shared/IMTextEntry.h" | 41 | #include "unity-shared/IMTextEntry.h" |
537 | 41 | 42 | ||
538 | === modified file 'unity-standalone/CMakeLists.txt' | |||
539 | --- unity-standalone/CMakeLists.txt 2012-10-17 08:46:48 +0000 | |||
540 | +++ unity-standalone/CMakeLists.txt 2012-11-27 07:30:28 +0000 | |||
541 | @@ -5,8 +5,6 @@ | |||
542 | 5 | set (CFLAGS | 5 | set (CFLAGS |
543 | 6 | ${CACHED_UNITY_DEPS_CFLAGS} | 6 | ${CACHED_UNITY_DEPS_CFLAGS} |
544 | 7 | ${CACHED_UNITY_DEPS_CFLAGS_OTHER} | 7 | ${CACHED_UNITY_DEPS_CFLAGS_OTHER} |
545 | 8 | "-DGETTEXT_PACKAGE=\"unity\"" | ||
546 | 9 | "-I${CMAKE_CURRENT_BINARY_DIR}" | ||
547 | 10 | ) | 8 | ) |
548 | 11 | 9 | ||
549 | 12 | if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "armv7l") | 10 | if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "armv7l") |
550 | @@ -22,7 +20,7 @@ | |||
551 | 22 | set (LIB_PATHS ${CACHED_UNITY_DEPS_LIBRARY_DIRS}) | 20 | set (LIB_PATHS ${CACHED_UNITY_DEPS_LIBRARY_DIRS}) |
552 | 23 | link_directories (${CMAKE_BINARY_DIR}/UnityCore ${LIB_PATHS}) | 21 | link_directories (${CMAKE_BINARY_DIR}/UnityCore ${LIB_PATHS}) |
553 | 24 | 22 | ||
555 | 25 | include_directories (. .. ../services ../UnityCore ${UNITY_SRC} ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) | 23 | include_directories (.. ../services ../UnityCore ${UNITY_SRC} ${CMAKE_BINARY_DIR}) |
556 | 26 | 24 | ||
557 | 27 | # | 25 | # |
558 | 28 | # Headers & Sources | 26 | # Headers & Sources |
559 | @@ -32,12 +30,6 @@ | |||
560 | 32 | ) | 30 | ) |
561 | 33 | 31 | ||
562 | 34 | add_executable (unity-standalone StandaloneUnity.cpp) | 32 | add_executable (unity-standalone StandaloneUnity.cpp) |
563 | 35 | add_dependencies (unity-standalone | ||
564 | 36 | dash-lib | ||
565 | 37 | launcher-lib | ||
566 | 38 | panel-lib | ||
567 | 39 | unity-shared | ||
568 | 40 | unity-shared-standalone) | ||
569 | 41 | target_link_libraries (unity-standalone | 33 | target_link_libraries (unity-standalone |
570 | 42 | dash-lib | 34 | dash-lib |
571 | 43 | launcher-lib | 35 | launcher-lib |
There was a fourth one as well. There were a lot of constructs like this:
target_ link_library( foo bar)
add_dependency(foo bar)
The latter is unnecessary, target_link_library sets up the dependency automatically. Removed the extra definitions.