Merge lp:~mikemc/unity-scope-click/remove-api-version-sniffing into lp:unity-scope-click

Proposed by Mike McCracken
Status: Rejected
Rejected by: dobey
Proposed branch: lp:~mikemc/unity-scope-click/remove-api-version-sniffing
Merge into: lp:unity-scope-click
Diff against target: 257 lines (+1/-98)
12 files modified
CMakeLists.txt (+0/-10)
scope/click/CMakeLists.txt (+1/-4)
scope/click/config.h.in (+0/-36)
scope/click/download-manager.h (+0/-2)
scope/click/preview.cpp (+0/-4)
scope/click/preview.h (+0/-11)
scope/click/query.cpp (+0/-8)
scope/click/query.h (+0/-9)
scope/click/scope.h (+0/-11)
scope/tests/CMakeLists.txt (+0/-1)
scope/tests/download_manager_tool/CMakeLists.txt (+0/-1)
scope/tests/integration/CMakeLists.txt (+0/-1)
To merge this branch: bzr merge lp:~mikemc/unity-scope-click/remove-api-version-sniffing
Reviewer Review Type Date Requested Status
dobey (community) Needs Resubmitting
PS Jenkins bot continuous-integration Approve
Review via email: mp+208513@code.launchpad.net

Commit message

- remove out of date and unnecessary scope api version sniffing

Description of the change

- remove out of date and unnecessary scope api version sniffing

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
dobey (dobey) wrote :

Why not just remove config.h.in and the generation of it too? It looks like this was the only thing in it, so we shouldn't need it any more either. Will touch a few more files, but I think it's fine to just get rid of it completely.

review: Needs Information
171. By Mike McCracken

Remove all traces of config.h.in

Revision history for this message
dobey (dobey) :
review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
172. By Mike McCracken

merge with trunk, fixing minor conflict by removing unneeded qt Gui module requirement in scope/click/CMakeLists.txt

Revision history for this message
dobey (dobey) wrote :

The api-0.4.0 changes landed, so this now conflicts with trunk. I've fixed the conflicts and proposed https://code.launchpad.net/~dobey/unity-scope-click/remove-api-version-sniffing/+merge/210787 instead.

review: Needs Resubmitting

Unmerged revisions

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 2014-02-20 17:23:23 +0000
3+++ CMakeLists.txt 2014-03-05 15:10:47 +0000
4@@ -25,16 +25,6 @@
5 pkg_check_modules(UNITY_SCOPES REQUIRED libunity-scopes>=0.3.1)
6 add_definitions(${UNITY_SCOPES_CFLAGS} ${UNITY_SCOPES_CFLAGS_OTHER})
7
8-# Config.h variables to account for breaking changes in 0.1.8:
9-if (UNITY_SCOPES_VERSION VERSION_GREATER 0.1.7)
10- SET (UNITY_SCOPES_API_HEADERS_NOW_UNDER_UNITY 1)
11- SET (UNITY_SCOPES_API_NEW_SHORTER_NAMESPACE 1)
12-else()
13- SET (UNITY_SCOPES_API_HEADERS_NOW_UNDER_UNITY 0)
14- SET (UNITY_SCOPES_API_NEW_SHORTER_NAMESPACE 0)
15-endif ()
16-
17-
18 find_package (PkgConfig REQUIRED)
19 pkg_check_modules(UBUNTUONE REQUIRED ubuntuoneauth-2.0)
20 add_definitions(${UBUNTUONE_CFLAGS} ${UBUNTUONE_CFLAGS_OTHER})
21
22=== modified file 'scope/click/CMakeLists.txt'
23--- scope/click/CMakeLists.txt 2014-02-23 22:04:42 +0000
24+++ scope/click/CMakeLists.txt 2014-03-05 15:10:47 +0000
25@@ -19,13 +19,10 @@
26 qtbridge.cpp
27 )
28
29-configure_file(config.h.in config.h)
30-
31-include_directories (${CMAKE_BINARY_DIR}/scope)
32 include_directories(${LIBURL_DISPATCHER_INCLUDE_DIRS})
33 link_directories(${LIBURL_DISPATCHER_LIBRARY_DIRS})
34
35-qt5_use_modules (${SCOPE_LIB_UNVERSIONED} Network Gui)
36+qt5_use_modules (${SCOPE_LIB_UNVERSIONED} Network)
37
38 target_link_libraries (${SCOPE_LIB_UNVERSIONED}
39 ${UNITY_SCOPES_LDFLAGS}
40
41=== removed file 'scope/click/config.h.in'
42--- scope/click/config.h.in 2014-01-28 10:11:21 +0000
43+++ scope/click/config.h.in 1970-01-01 00:00:00 +0000
44@@ -1,36 +0,0 @@
45-/*
46- * Copyright (C) 2014 Canonical Ltd.
47- *
48- * This program is free software: you can redistribute it and/or modify it
49- * under the terms of the GNU General Public License version 3, as published
50- * by the Free Software Foundation.
51- *
52- * This program is distributed in the hope that it will be useful, but
53- * WITHOUT ANY WARRANTY; without even the implied warranties of
54- * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
55- * PURPOSE. See the GNU General Public License for more details.
56- *
57- * You should have received a copy of the GNU General Public License along
58- * with this program. If not, see <http://www.gnu.org/licenses/>.
59- *
60- * In addition, as a special exception, the copyright holders give
61- * permission to link the code of portions of this program with the
62- * OpenSSL library under certain conditions as described in each
63- * individual source file, and distribute linked combinations
64- * including the two.
65- * You must obey the GNU General Public License in all respects
66- * for all of the code used other than OpenSSL. If you modify
67- * file(s) with this exception, you may extend this exception to your
68- * version of the file(s), but you are not obligated to do so. If you
69- * do not wish to do so, delete this exception statement from your
70- * version. If you delete this exception statement from all source
71- * files in the program, then also delete it here.
72- */
73-
74-#ifndef SCOPE_CLICK_CONFIG_H
75-#define SCOPE_CLICK_CONFIG_H
76-
77-#define UNITY_SCOPES_API_HEADERS_NOW_UNDER_UNITY @UNITY_SCOPES_API_HEADERS_NOW_UNDER_UNITY@
78-#define UNITY_SCOPES_API_NEW_SHORTER_NAMESPACE @UNITY_SCOPES_API_NEW_SHORTER_NAMESPACE@
79-
80-#endif // SCOPE_CLICK_CONFIG_H
81
82=== modified file 'scope/click/download-manager.h'
83--- scope/click/download-manager.h 2014-02-21 18:18:19 +0000
84+++ scope/click/download-manager.h 2014-03-05 15:10:47 +0000
85@@ -30,8 +30,6 @@
86 #ifndef CLICK_DOWNLOAD_MANAGER_H
87 #define CLICK_DOWNLOAD_MANAGER_H
88
89-#include <click/config.h>
90-
91 #include "network_access_manager.h"
92 #include "ubuntuone_credentials.h"
93
94
95=== modified file 'scope/click/preview.cpp'
96--- scope/click/preview.cpp 2014-02-21 23:51:14 +0000
97+++ scope/click/preview.cpp 2014-03-05 15:10:47 +0000
98@@ -31,13 +31,9 @@
99 #include "qtbridge.h"
100 #include "download-manager.h"
101
102-#if UNITY_SCOPES_API_HEADERS_NOW_UNDER_UNITY
103 #include <unity/scopes/PreviewReply.h>
104 #include <unity/scopes/Variant.h>
105 #include <unity/scopes/VariantBuilder.h>
106-#else
107-#include <scopes/VariantBuilder.h>
108-#endif
109
110 #include <QDebug>
111
112
113=== modified file 'scope/click/preview.h'
114--- scope/click/preview.h 2014-02-20 18:34:26 +0000
115+++ scope/click/preview.h 2014-03-05 15:10:47 +0000
116@@ -30,27 +30,16 @@
117 #ifndef CLICKPREVIEW_H
118 #define CLICKPREVIEW_H
119
120-#include "config.h"
121 #include "index.h"
122 #include "network_access_manager.h"
123 #include "download-manager.h"
124 #include "qtbridge.h"
125
126-#if UNITY_SCOPES_API_HEADERS_NOW_UNDER_UNITY
127 #include <unity/scopes/PreviewQuery.h>
128 #include <unity/scopes/PreviewWidget.h>
129 #include <unity/scopes/Result.h>
130-#else
131-#include <scopes/Preview.h>
132-#include <scopes/PreviewWidget.h>
133-#include <scopes/Result.h>
134-#endif
135
136-#if UNITY_SCOPES_API_NEW_SHORTER_NAMESPACE
137 namespace scopes = unity::scopes;
138-#else
139-namespace scopes = unity::api::scopes;
140-#endif
141
142 namespace click {
143
144
145=== modified file 'scope/click/query.cpp'
146--- scope/click/query.cpp 2014-02-26 20:15:57 +0000
147+++ scope/click/query.cpp 2014-03-05 15:10:47 +0000
148@@ -32,19 +32,11 @@
149 #include "key_file_locator.h"
150 #include "interface.h"
151
152-#if UNITY_SCOPES_API_HEADERS_NOW_UNDER_UNITY
153 #include <unity/scopes/Annotation.h>
154 #include <unity/scopes/CategoryRenderer.h>
155 #include <unity/scopes/CategorisedResult.h>
156 #include <unity/scopes/Query.h>
157 #include <unity/scopes/SearchReply.h>
158-#else
159-#include <scopes/Annotation.h>
160-#include <scopes/CategoryRenderer.h>
161-#include <scopes/CategorisedResult.h>
162-#include <scopes/Query.h>
163-#include <scopes/SearchReply.h>
164-#endif
165
166 #include<QJsonDocument>
167 #include<QJsonArray>
168
169=== modified file 'scope/click/query.h'
170--- scope/click/query.h 2014-02-26 20:15:57 +0000
171+++ scope/click/query.h 2014-03-05 15:10:47 +0000
172@@ -30,19 +30,10 @@
173 #ifndef CLICK_QUERY_H
174 #define CLICK_QUERY_H
175
176-#include "config.h"
177
178-#if UNITY_SCOPES_API_HEADERS_NOW_UNDER_UNITY
179 #include <unity/scopes/SearchQuery.h>
180-#else
181-#include <scopes/SearchQuery.h>
182-#endif
183
184-#if UNITY_SCOPES_API_NEW_SHORTER_NAMESPACE
185 namespace scopes = unity::scopes;
186-#else
187-namespace scopes = unity::api::scopes;
188-#endif
189
190 #include <QSharedPointer>
191
192
193=== modified file 'scope/click/scope.h'
194--- scope/click/scope.h 2014-02-18 09:01:41 +0000
195+++ scope/click/scope.h 2014-03-05 15:10:47 +0000
196@@ -30,25 +30,14 @@
197 #ifndef CLICK_SCOPE_H
198 #define CLICK_SCOPE_H
199
200-#include "config.h"
201 #include "index.h"
202 #include "download-manager.h"
203
204-#if UNITY_SCOPES_API_HEADERS_NOW_UNDER_UNITY
205 #include <unity/scopes/ScopeBase.h>
206 #include <unity/scopes/QueryBase.h>
207 #include <unity/scopes/ActivationBase.h>
208-#else
209-#include <scopes/ScopeBase.h>
210-#include <scopes/QueryBase.h>
211-#include <scopes/ActivationBase.h>
212-#endif
213
214-#if UNITY_SCOPES_API_NEW_SHORTER_NAMESPACE
215 namespace scopes = unity::scopes;
216-#else
217-namespace scopes = unity::api::scopes;
218-#endif
219
220 namespace click
221 {
222
223=== modified file 'scope/tests/CMakeLists.txt'
224--- scope/tests/CMakeLists.txt 2014-02-22 09:50:30 +0000
225+++ scope/tests/CMakeLists.txt 2014-03-05 15:10:47 +0000
226@@ -16,7 +16,6 @@
227
228 include_directories (
229 ${CMAKE_SOURCE_DIR}/scope
230- ${CMAKE_BINARY_DIR}/scope
231 ${GTEST_INCLUDE_DIR}
232 ${GMOCK_INCLUDE_DIR}
233 )
234
235=== modified file 'scope/tests/download_manager_tool/CMakeLists.txt'
236--- scope/tests/download_manager_tool/CMakeLists.txt 2014-02-11 10:14:58 +0000
237+++ scope/tests/download_manager_tool/CMakeLists.txt 2014-03-05 15:10:47 +0000
238@@ -2,7 +2,6 @@
239
240 include_directories (
241 ${CMAKE_SOURCE_DIR}/scope/click
242- ${CMAKE_BINARY_DIR}/scope/click
243 )
244
245 add_executable (${DOWNLOAD_MANAGER_TOOL_TARGET}
246
247=== modified file 'scope/tests/integration/CMakeLists.txt'
248--- scope/tests/integration/CMakeLists.txt 2014-02-08 08:24:19 +0000
249+++ scope/tests/integration/CMakeLists.txt 2014-03-05 15:10:47 +0000
250@@ -6,7 +6,6 @@
251 find_package(Qt5Core REQUIRED)
252
253 include_directories (${CMAKE_SOURCE_DIR}/scope)
254-include_directories (${CMAKE_BINARY_DIR}/scope)
255
256 FILE (GLOB TEST_SOURCES *.cpp)
257 FILE (GLOB TEST_HEADERS *.h)

Subscribers

People subscribed via source and target branches

to all changes: