[vxl] move problematic feature to optional one (#6657)

This commit is contained in:
Stefano Sinigardi 2019-05-28 18:35:54 +02:00 committed by Curtis J Bezault
parent 712361b0bc
commit 4068783709
3 changed files with 30 additions and 6 deletions

View File

@ -1,5 +1,8 @@
Source: vxl Source: vxl
Version: v1.18.0-3 Version: v1.18.0-4
Build-Depends: bzip2, libgeotiff, libjpeg-turbo, libpng, tiff, zlib, expat, shapelib Build-Depends: bzip2, expat, libgeotiff, libjpeg-turbo, libpng, shapelib, tiff, zlib
# Build-Depends: bzip2, dcmtk, libgeotiff, libjpeg-turbo, openjpeg, libpng, tiff, zlib # Build-Depends: bzip2, dcmtk, expat, libgeotiff, libjpeg-turbo, openjpeg, libpng, shapelib, tiff, zlib
Description: A multi-platform collection of C++ software libraries for Computer Vision and Image Understanding. Description: A multi-platform collection of C++ software libraries for Computer Vision and Image Understanding.
Feature: core_imaging
Description: core_imaging support for vxl

View File

@ -0,0 +1,13 @@
diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt
index b6af7c2..7ca75d3 100644
--- a/core/CMakeLists.txt
+++ b/core/CMakeLists.txt
@@ -100,7 +100,7 @@ endif()
# coordinate systems
-if(BUILD_CORE_GEOMETRY AND BUILD_CORE_NUMERICS)
+if(BUILD_CORE_GEOMETRY AND BUILD_CORE_NUMERICS AND BUILD_CORE_IMAGING)
add_subdirectory(vcsl)
add_subdirectory(vpgl)
endif()

View File

@ -1,7 +1,12 @@
include(vcpkg_common_functions) include(vcpkg_common_functions)
if(EXISTS "${CURRENT_INSTALLED_DIR}/include/openjpeg.h") set(BUILD_CORE_IMAGING OFF)
message(FATAL_ERROR "Can't build VXL with non built-in OpenJpeg in current version. Please remove OpenJpeg, and try install VXL again.") if("core_imaging" IN_LIST FEATURES)
set(BUILD_CORE_IMAGING ON)
if(EXISTS "${CURRENT_INSTALLED_DIR}/include/openjpeg.h")
set(BUILD_CORE_IMAGING OFF)
message(WARNING "Can't build VXL CORE_IMAGING features with non built-in OpenJpeg. Please remove OpenJpeg, and try install VXL again if you need them.")
endif()
endif() endif()
vcpkg_from_github( vcpkg_from_github(
@ -10,6 +15,8 @@ vcpkg_from_github(
REF v1.18.0 REF v1.18.0
SHA512 6666d647b2e7010b91cb0b05016b5f49ae46d198f6bd160fe13fc09bc674eff5b937331fa11d81a8496473968b63452d950eee4fc2512152af57304a14bed63f SHA512 6666d647b2e7010b91cb0b05016b5f49ae46d198f6bd160fe13fc09bc674eff5b937331fa11d81a8496473968b63452d950eee4fc2512152af57304a14bed63f
HEAD_REF master HEAD_REF master
PATCHES
fix_dependency.patch
) )
set(USE_WIN_WCHAR_T OFF) set(USE_WIN_WCHAR_T OFF)
@ -23,6 +30,7 @@ vcpkg_configure_cmake(
OPTIONS OPTIONS
-DBUILD_EXAMPLES=OFF -DBUILD_EXAMPLES=OFF
-DBUILD_TESTING=OFF -DBUILD_TESTING=OFF
-DBUILD_CORE_IMAGING=${BUILD_CORE_IMAGING}
-DVXL_FORCE_V3P_BZLIB2=OFF -DVXL_FORCE_V3P_BZLIB2=OFF
-DVXL_USING_NATIVE_BZLIB2=TRUE # for disable build built-in bzip2 (v3p/bzlib/CMakeLists.txt#L10-L26) -DVXL_USING_NATIVE_BZLIB2=TRUE # for disable build built-in bzip2 (v3p/bzlib/CMakeLists.txt#L10-L26)
-DVXL_FORCE_V3P_CLIPPER=ON # TODO : need add clipper port to turn off -DVXL_FORCE_V3P_CLIPPER=ON # TODO : need add clipper port to turn off
@ -48,4 +56,4 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
file(INSTALL ${SOURCE_PATH}/core/vxl_copyright.h DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL ${SOURCE_PATH}/core/vxl_copyright.h DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
# #