| 1 |
# Script to build jasperlib for digiKam bundle. |
| 2 |
# |
| 3 |
# Copyright (c) 2015-2026 by Gilles Caulier <caulier dot gilles at gmail dot com> |
| 4 |
# |
| 5 |
# Redistribution and use is allowed according to the terms of the BSD license. |
| 6 |
# For details see the accompanying COPYING-CMAKE-SCRIPTS file. |
| 7 |
# |
| 8 |
|
| 9 |
SET(PREFIX_ext_jasper "${EXTPREFIX}") |
| 10 |
|
| 11 |
ExternalProject_Add(ext_jasper |
| 12 |
DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR} |
| 13 |
|
| 14 |
GIT_REPOSITORY https://github.com/jasper-software/jasper.git |
| 15 |
GIT_TAG version-4.2.9 |
| 16 |
|
| 17 |
INSTALL_DIR ${PREFIX_ext_jasper} |
| 18 |
|
| 19 |
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${PREFIX_ext_jasper} |
| 20 |
-DCMAKE_BUILD_TYPE=${GLOBAL_BUILD_TYPE} |
| 21 |
${GLOBAL_PROFILE} |
| 22 |
-DCMAKE_SYSTEM_PREFIX_PATH=${PREFIX_ext_jasper} |
| 23 |
-DJAS_ENABLE_SHARED=ON |
| 24 |
-DJAS_ENABLE_LIBJPEG=ON |
| 25 |
-DJAS_ENABLE_LIBHEIF=OFF |
| 26 |
-DJAS_ENABLE_OPENGL=ON |
| 27 |
-DJAS_LOCAL=OFF |
| 28 |
-DJAS_ENABLE_DOC=OFF |
| 29 |
-DJAS_ENABLE_LATEX=OFF |
| 30 |
-DJAS_ENABLE_PROGRAMS=OFF |
| 31 |
-Wno-dev |
| 32 |
|
| 33 |
UPDATE_COMMAND "" |
| 34 |
ALWAYS 0 |
| 35 |
) |