File indexing completed on 2024-05-12 04:17:32

0001 #!/bin/bash
0002 
0003 # SPDX-FileCopyrightText: 2008-2024 by Gilles Caulier, <caulier dot gilles at gmail dot com>
0004 #
0005 # SPDX-License-Identifier: BSD-3-Clause
0006 #
0007 # Copy this script on root folder where are source code
0008 
0009 #export VERBOSE=1
0010 
0011 # We will work on command line using MinGW compiler
0012 export MAKEFILES_TYPE='Unix Makefiles'
0013 
0014 if [ ! -d "build" ]; then
0015     mkdir build
0016 fi
0017 
0018 cd build
0019 
0020 export Exiv2Options='-DBUILD_SHARED_LIBS=ON \
0021                      -DEXIV2_ENABLE_XMP=ON \
0022                      -DEXIV2_ENABLE_EXTERNAL_XMP=OFF \
0023                      -DEXIV2_ENABLE_PNG=ON \
0024                      -DEXIV2_ENABLE_BMFF=ON \
0025                      -DEXIV2_ENABLE_BROTLI=ON \
0026                      -DEXIV2_ENABLE_NLS=ON \
0027                      -DEXIV2_ENABLE_INIH=ON \
0028                      -DEXIV2_ENABLE_PRINTUCS2=ON \
0029                      -DEXIV2_ENABLE_LENSDATA=ON \
0030                      -DEXIV2_ENABLE_VIDEO=OFF \
0031                      -DEXIV2_ENABLE_WEBREADY=OFF \
0032                      -DEXIV2_ENABLE_DYNAMIC_RUNTIME=OFF \
0033                      -DEXIV2_ENABLE_CURL=OFF \
0034                      -DEXIV2_ENABLE_SSH=OFF \
0035                      -DEXIV2_BUILD_SAMPLES=OFF \
0036                      -DEXIV2_BUILD_PO=OFF \
0037                      -DEXIV2_BUILD_EXIV2_COMMAND=ON \
0038                      -DEXIV2_BUILD_UNIT_TESTS=OFF \
0039                      -DEXIV2_BUILD_DOC=OFF \
0040                      -DEXIV2_TEAM_EXTRA_WARNINGS=OFF \
0041                      -DEXIV2_TEAM_WARNINGS_AS_ERRORS=OFF \
0042                      -DEXIV2_TEAM_USE_SANITIZERS=OFF \
0043                      -DEXIV2_ENABLE_WIN_UNICODE=OFF'
0044 
0045 cmake -G "$MAKEFILES_TYPE" . \
0046       -DCMAKE_INSTALL_PREFIX=/usr \
0047       -Wno-dev \
0048       $Exiv2Options \
0049       ..
0050