summaryrefslogtreecommitdiff
blob: 26eac8df0fa6306dd54eda8a0568fabcbef0902a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
From 87d8f63d5966b36af60e9d4aac95196fcee30f91 Mon Sep 17 00:00:00 2001
From: Johannes Zarl-Zierl <johannes@zarl-zierl.at>
Date: Sun, 30 Oct 2016 21:52:03 +0100
Subject: [PATCH] Review dependency list.

Thanks to kensington for the suggestion!
---
 CMakeLists.txt | 23 ++++++++++++++++++-----
 1 file changed, 18 insertions(+), 5 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 120a703..95f46c9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,7 +20,7 @@ include(FeatureSummary)
 
 find_package(Qt5 REQUIRED COMPONENTS Sql Xml Widgets Network)
 find_package(Phonon4Qt5 REQUIRED)
-find_package(KF5 REQUIRED COMPONENTS CoreAddons I18n KIO DocTools WidgetsAddons Config IconThemes Archive Parts JobWidgets)
+find_package(KF5 REQUIRED COMPONENTS Archive Completion Config CoreAddons DocTools I18n IconThemes JobWidgets KIO TextWidgets WidgetsAddons)
 
 # enable exceptions:
 kde_enable_exceptions()
@@ -445,10 +445,23 @@ set(kphotoalbum_SRCS
 add_executable(kphotoalbum ${kphotoalbum_SRCS})
 
 # External components
-target_link_libraries(kphotoalbum ${JPEG_LIBRARY})
-target_link_libraries(kphotoalbum Qt5::Network)
-target_link_libraries(kphotoalbum KF5::KIOCore KF5::CoreAddons KF5::I18n KF5::ConfigCore KF5::ConfigGui KF5::IconThemes KF5::Archive KF5::Parts KF5::JobWidgets KF5::WidgetsAddons)
-target_link_libraries(kphotoalbum Phonon::phonon4qt5)
+target_link_libraries(kphotoalbum
+    ${JPEG_LIBRARY}
+    KF5::Archive
+    KF5::Completion
+    KF5::ConfigCore
+    KF5::ConfigGui
+    KF5::CoreAddons
+    KF5::I18n
+    KF5::IconThemes
+    KF5::JobWidgets
+    KF5::KIOCore
+    KF5::KIOWidgets
+    KF5::TextWidgets
+    KF5::WidgetsAddons
+    Phonon::phonon4qt5
+    Qt5::Network
+    )
 
 if(KF5Kipi_FOUND)
     target_link_libraries(kphotoalbum KF5::Kipi)
-- 
2.7.3

From e07a6ffd6a96a527e0ac26e9f12eb1bcd7767830 Mon Sep 17 00:00:00 2001
From: Johannes Zarl-Zierl <johannes@zarl-zierl.at>
Date: Thu, 8 Dec 2016 22:02:13 +0100
Subject: [PATCH] Remove bogus dependency on KF5KExiv2

---
 CMakeLists.txt | 28 +++++++++++-----------------
 1 file changed, 11 insertions(+), 17 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1594af0..36228b8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -92,15 +92,13 @@ set_package_properties(KF5KDcraw
     )
 set(HAVE_KDCRAW ${KF5KDcraw_FOUND} )
 
-find_package(KF5KExiv2)
-# FIXME: most of KPhotoAlbum uses plain libexiv:
 find_package(Exiv2)
-set_package_properties(KF5KExiv2
+set_package_properties(Exiv2
     PROPERTIES
     TYPE RECOMMENDED
     PURPOSE "Enables image metadata (exiv) support (strongly advised!)"
     )
-set(HAVE_EXIV2 ${KF5KExiv2_FOUND})
+set(HAVE_EXIV2 ${Exiv2_FOUND})
 
 if(ENABLE_PLAYGROUND)
     find_package(KF5KFace 5.0.0 CONFIG)
@@ -112,16 +110,12 @@ if(ENABLE_PLAYGROUND)
     set(HAVE_KFACE ${KF5KFace_FOUND})
 endif()
 
-if(KF5KExiv2_FOUND)
-    find_package(KF5KGeoMap)
-    set_package_properties(KF5KGeoMap
-        PROPERTIES
-        TYPE OPTIONAL
-        PURPOSE "Enables support for geographic map location using embedded GPS information."
-        )
-else()
-    message(STATUS "Not searching KF5KGeoMap because of missing dependency KF5KExiv2...")
-endif()
+find_package(KF5KGeoMap)
+set_package_properties(KF5KGeoMap
+    PROPERTIES
+    TYPE OPTIONAL
+    PURPOSE "Enables support for geographic map location using embedded GPS information."
+    )
 set(HAVE_KGEOMAP ${KF5KGeoMap_FOUND})
 
 add_custom_target(
@@ -433,7 +427,7 @@ add_subdirectory(script)
 add_subdirectory(doc)
 
 set(EXIV2_SRCS)
-if(KF5KExiv2_FOUND AND Qt5Sql_FOUND)
+if(Exiv2_FOUND AND Qt5Sql_FOUND)
     set(EXIV2_SRCS
         #${CMAKE_CURRENT_SOURCE_DIR}/Browser/ExifFolder.cpp
         ${CMAKE_CURRENT_SOURCE_DIR}/Settings/ExifPage.cpp
@@ -499,8 +493,8 @@ if(KF5KDcraw_FOUND)
     target_link_libraries(kphotoalbum KF5::KDcraw)
 endif()
 
-if(KF5KExiv2_FOUND)
-    target_link_libraries(kphotoalbum KF5::KExiv2 ${EXIV2_LIBRARIES} Qt5::Sql)
+if(Exiv2_FOUND)
+    target_link_libraries(kphotoalbum ${EXIV2_LIBRARIES} Qt5::Sql)
 endif()
 
 if(KF5KFace_FOUND)
-- 
2.7.3

From b17b99d25645b62838f7731b66d60a7efbbb5385 Mon Sep 17 00:00:00 2001
From: Pino Toscano <pino@kde.org>
Date: Sat, 26 Nov 2016 17:06:35 +0100
Subject: [PATCH] cmake: require KF5::XmlGui

It is used explicitly (see KXmlGuiWindow), so it is needed to look for
it and link to it.
---
 CMakeLists.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5fef0df..b24ab3b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -69,7 +69,7 @@ endforeach()
 
 find_package(Qt5 REQUIRED COMPONENTS Sql Xml Widgets Network)
 find_package(Phonon4Qt5 REQUIRED)
-find_package(KF5 REQUIRED COMPONENTS Archive Completion Config CoreAddons DocTools I18n IconThemes JobWidgets KIO TextWidgets WidgetsAddons)
+find_package(KF5 REQUIRED COMPONENTS Archive Completion Config CoreAddons DocTools I18n IconThemes JobWidgets KIO TextWidgets XmlGui WidgetsAddons)
 
 find_package(JPEG REQUIRED)
 if(JPEG_FOUND)
@@ -484,6 +484,7 @@ target_link_libraries(kphotoalbum
     KF5::KIOCore
     KF5::KIOWidgets
     KF5::TextWidgets
+    KF5::XmlGui
     KF5::WidgetsAddons
     Phonon::phonon4qt5
     Qt5::Network
-- 
2.7.3

From e3c1911d5ad54f672cf086b041376f11ad4f446e Mon Sep 17 00:00:00 2001
From: Johannes Zarl-Zierl <johannes@zarl-zierl.at>
Date: Thu, 27 Oct 2016 18:12:11 +0200
Subject: [PATCH] Fix compilation with Qt 5.6.1

---
 HTMLGenerator/HTMLDialog.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/HTMLGenerator/HTMLDialog.cpp b/HTMLGenerator/HTMLDialog.cpp
index 9aa619d..3e53c58 100644
--- a/HTMLGenerator/HTMLDialog.cpp
+++ b/HTMLGenerator/HTMLDialog.cpp
@@ -20,6 +20,7 @@
 
 #include <QCheckBox>
 #include <QComboBox>
+#include <QDebug>
 #include <QDialogButtonBox>
 #include <QFileDialog>
 #include <QGroupBox>
-- 
2.7.3