From d9a358f8ef44cb031421507c26fb9de1ebb531cb Mon Sep 17 00:00:00 2001 From: Dirk Farin Date: Wed, 18 Sep 2024 14:47:37 +0200 Subject: [PATCH] move exif.cc into heifio --- examples/CMakeLists.txt | 5 ----- examples/heif_enc.cc | 9 ++++----- heifio/CMakeLists.txt | 4 +++- {libheif => heifio}/exif.cc | 0 {libheif => heifio}/exif.h | 0 5 files changed, 7 insertions(+), 11 deletions(-) rename {libheif => heifio}/exif.cc (100%) rename {libheif => heifio}/exif.h (100%) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 6dc64e65ff..e76c15c232 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -21,7 +21,6 @@ install(FILES heif-info.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) add_executable(heif-dec ${getopt_sources} heif_dec.cc - ../libheif/exif.cc common.cc common.h) target_link_libraries(heif-dec PRIVATE heif heifio) @@ -39,8 +38,6 @@ endif() add_executable(heif-enc ${getopt_sources} heif_enc.cc - ../libheif/exif.cc - ../libheif/exif.cc benchmark.h benchmark.cc common.cc @@ -58,8 +55,6 @@ endif () if (PNG_FOUND) add_executable(heif-thumbnailer ${getopt_sources} heif_thumbnailer.cc - ../libheif/exif.h - ../libheif/exif.cc common.cc common.h) target_link_libraries(heif-thumbnailer heif heifio) diff --git a/examples/heif_enc.cc b/examples/heif_enc.cc index a9ed18f3a6..e7c3ad7801 100644 --- a/examples/heif_enc.cc +++ b/examples/heif_enc.cc @@ -24,8 +24,9 @@ SOFTWARE. */ -#include -#include +#include +#include +#include #include #include @@ -52,11 +53,9 @@ #include "heifio/decoder_tiff.h" #endif -#include "../heifio/decoder_y4m.h" +#include "heifio/decoder_y4m.h" -#include #include "benchmark.h" -#include "exif.h" #include "common.h" int master_alpha = 1; diff --git a/heifio/CMakeLists.txt b/heifio/CMakeLists.txt index abc550f83c..fe54054109 100644 --- a/heifio/CMakeLists.txt +++ b/heifio/CMakeLists.txt @@ -8,7 +8,9 @@ add_library(heifio STATIC encoder.h encoder.cc encoder_y4m.h - encoder_y4m.cc) + encoder_y4m.cc + exif.h + exif.cc) target_link_libraries(heifio PRIVATE heif) diff --git a/libheif/exif.cc b/heifio/exif.cc similarity index 100% rename from libheif/exif.cc rename to heifio/exif.cc diff --git a/libheif/exif.h b/heifio/exif.h similarity index 100% rename from libheif/exif.h rename to heifio/exif.h