Skip to content

Commit

Permalink
Move QgsExifTools utility class to core
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jul 7, 2021
1 parent 81ecf97 commit 4b52b7b
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 14 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Expand Up @@ -356,6 +356,8 @@ if(WITH_CORE)
find_package(ZLIB REQUIRED) # for decompression of vector tiles in MBTiles file
message(STATUS "Found zlib: ${ZLIB_LIBRARIES}")

find_package(EXIV2 REQUIRED)

# optional
if (WITH_POSTGRESQL)
find_package(Postgres) # PostgreSQL provider
Expand Down
1 change: 0 additions & 1 deletion python/analysis/analysis_auto.sip
Expand Up @@ -22,7 +22,6 @@
%Include auto_generated/raster/qgsalignraster.sip
%Include auto_generated/raster/qgsaspectfilter.sip
%Include auto_generated/raster/qgsderivativefilter.sip
%Include auto_generated/raster/qgsexiftools.sip
%Include auto_generated/raster/qgshillshadefilter.sip
%Include auto_generated/raster/qgskde.sip
%Include auto_generated/raster/qgsninecellfilter.sip
Expand Down
@@ -1,7 +1,7 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/analysis/raster/qgsexiftools.h *
* src/core/raster/qgsexiftools.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
Expand Down Expand Up @@ -80,7 +80,7 @@ Returns ``True`` if writing was successful.
/************************************************************************
* This file has been generated automatically from *
* *
* src/analysis/raster/qgsexiftools.h *
* src/core/raster/qgsexiftools.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
1 change: 1 addition & 0 deletions python/core/core_auto.sip
Expand Up @@ -528,6 +528,7 @@
%Include auto_generated/raster/qgscontrastenhancement.sip
%Include auto_generated/raster/qgscontrastenhancementfunction.sip
%Include auto_generated/raster/qgscubicrasterresampler.sip
%Include auto_generated/raster/qgsexiftools.sip
%Include auto_generated/raster/qgshillshaderenderer.sip
%Include auto_generated/raster/qgshuesaturationfilter.sip
%Include auto_generated/raster/qgslinearminmaxenhancement.sip
Expand Down
9 changes: 0 additions & 9 deletions src/analysis/CMakeLists.txt
Expand Up @@ -229,7 +229,6 @@ set(QGIS_ANALYSIS_SRCS
processing/qgsreclassifyutils.cpp

raster/qgsalignraster.cpp
raster/qgsexiftools.cpp
raster/qgsninecellfilter.cpp
raster/qgsruggednessfilter.cpp
raster/qgsderivativefilter.cpp
Expand Down Expand Up @@ -341,7 +340,6 @@ set(QGIS_ANALYSIS_HDRS
raster/qgsalignraster.h
raster/qgsaspectfilter.h
raster/qgsderivativefilter.h
raster/qgsexiftools.h
raster/qgshillshadefilter.h
raster/qgskde.h
raster/qgsninecellfilter.h
Expand Down Expand Up @@ -404,8 +402,6 @@ if(TARGET Qt5::PrintSupport)
)
endif()

find_package(EXIV2 REQUIRED)

include_directories(SYSTEM ${SPATIALITE_INCLUDE_DIR})
include_directories(SYSTEM ${SPATIALINDEX_INCLUDE_DIR})
include_directories(SYSTEM ${SQLITE3_INCLUDE_DIR})
Expand Down Expand Up @@ -481,10 +477,6 @@ target_include_directories(qgis_analysis PUBLIC
${CMAKE_BINARY_DIR}/src/analysis
)

target_include_directories(qgis_analysis SYSTEM PUBLIC
${EXIV2_INCLUDE_DIR}
)

GENERATE_EXPORT_HEADER(
qgis_analysis
BASE_NAME ANALYSIS
Expand Down Expand Up @@ -529,7 +521,6 @@ endif()
target_link_libraries(
qgis_analysis
qgis_core
${EXIV2_LIBRARY}
)

if(HAVE_GSL)
Expand Down
4 changes: 4 additions & 0 deletions src/core/CMakeLists.txt
Expand Up @@ -615,6 +615,7 @@ set(QGIS_CORE_SRCS
raster/qgscolorrampshader.cpp
raster/qgscontrastenhancement.cpp
raster/qgscontrastenhancementfunction.cpp
raster/qgsexiftools.cpp
raster/qgslinearminmaxenhancement.cpp
raster/qgslinearminmaxenhancementwithclip.cpp
raster/qgsraster.cpp
Expand Down Expand Up @@ -1561,6 +1562,7 @@ set(QGIS_CORE_HDRS
raster/qgscontrastenhancement.h
raster/qgscontrastenhancementfunction.h
raster/qgscubicrasterresampler.h
raster/qgsexiftools.h
raster/qgshillshaderenderer.h
raster/qgshuesaturationfilter.h
raster/qgslinearminmaxenhancement.h
Expand Down Expand Up @@ -1883,6 +1885,7 @@ target_include_directories(qgis_core SYSTEM PUBLIC
${${QT_VERSION_BASE}SerialPort_INCLUDE_DIRS}
${Protobuf_INCLUDE_DIRS}
${ZLIB_INCLUDE_DIRS}
${EXIV2_INCLUDE_DIR}
)

if (WITH_SPATIALITE)
Expand Down Expand Up @@ -2052,6 +2055,7 @@ target_link_libraries(qgis_core
${LIBZIP_LIBRARY}
${Protobuf_LITE_LIBRARY}
${ZLIB_LIBRARIES}
${EXIV2_LIBRARY}
)

if (WITH_SPATIALITE)
Expand Down
File renamed without changes.
Expand Up @@ -16,7 +16,7 @@
#ifndef QGSEXIFTOOLS_H
#define QGSEXIFTOOLS_H

#include "qgis_analysis.h"
#include "qgis_core.h"
#include "qgspointxy.h"

#include <QObject>
Expand All @@ -29,7 +29,7 @@
* \ingroup analysis
* \since QGIS 3.6
*/
class ANALYSIS_EXPORT QgsExifTools
class CORE_EXPORT QgsExifTools
{
Q_GADGET

Expand Down

0 comments on commit 4b52b7b

Please sign in to comment.