From 531c0cf26f0c327b42a5caa79725e4afeb98768d Mon Sep 17 00:00:00 2001 From: Luis Ibanez Date: Wed, 8 Sep 2010 22:40:11 +0000 Subject: [PATCH] Reverting the use of #include "openjpegConfigure.h" until we find a compatible way of doing this with autoconf, and with the default VS project files. --- codec/CMakeLists.txt | 6 ++++++ codec/convert.c | 1 - codec/image_to_j2k.c | 1 - codec/j2k_dump.c | 1 - codec/j2k_to_image.c | 1 - 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/codec/CMakeLists.txt b/codec/CMakeLists.txt index fdefce6c..563ae6dd 100644 --- a/codec/CMakeLists.txt +++ b/codec/CMakeLists.txt @@ -14,6 +14,12 @@ IF(DONT_HAVE_GETOPT) ) ENDIF(DONT_HAVE_GETOPT) +# Do the proper thing when building static...if only there was configured +# headers or def files instead +IF(NOT BUILD_SHARED_LIBS) + ADD_DEFINITIONS(-DOPJ_STATIC) +ENDIF(NOT BUILD_SHARED_LIBS) + # Headers file are located here: INCLUDE_DIRECTORIES( ${OPENJPEG_SOURCE_DIR}/libopenjpeg diff --git a/codec/convert.c b/codec/convert.c index a6bf0f73..63707a09 100644 --- a/codec/convert.c +++ b/codec/convert.c @@ -39,7 +39,6 @@ #include #include #endif /* WIN32 */ -#include "openjpegConfigure.h" #include "openjpeg.h" #include "convert.h" diff --git a/codec/image_to_j2k.c b/codec/image_to_j2k.c index b5c6ee5d..7acaed07 100644 --- a/codec/image_to_j2k.c +++ b/codec/image_to_j2k.c @@ -34,7 +34,6 @@ #include #include -#include "openjpegConfigure.h" #include "openjpeg.h" #include "compat/getopt.h" #include "convert.h" diff --git a/codec/j2k_dump.c b/codec/j2k_dump.c index 33465f10..5042f47a 100644 --- a/codec/j2k_dump.c +++ b/codec/j2k_dump.c @@ -29,7 +29,6 @@ #include #include -#include "openjpegConfigure.h" #include "openjpeg.h" #include "j2k.h" #include "jp2.h" diff --git a/codec/j2k_to_image.c b/codec/j2k_to_image.c index ef50e031..3b1915c7 100644 --- a/codec/j2k_to_image.c +++ b/codec/j2k_to_image.c @@ -34,7 +34,6 @@ #include #include -#include "openjpegConfigure.h" #include "openjpeg.h" #include "compat/getopt.h" #include "convert.h"