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 if [ ! -d "build.tmp" ]; then
0012     mkdir build.tmp
0013 fi
0014 
0015 # We will work on command line using MinGW compiler
0016 export MAKEFILES_TYPE='Unix Makefiles'
0017 
0018 cmake -H./ \
0019       -B./build.tmp \
0020       -G "$MAKEFILES_TYPE" \
0021       -DCMAKE_INSTALL_PREFIX=/usr \
0022       -Wno-dev \
0023       -DJAS_ENABLE_SHARED=ON \
0024       -DJAS_ENABLE_HIDDEN=ON \
0025       -DJAS_ENABLE_32BIT=OFF \
0026       -DJAS_ENABLE_LIBJPEG=ON \
0027       -DJAS_ENABLE_LIBHEIF=OFF \
0028       -DJAS_ENABLE_OPENGL=ON \
0029       -DJAS_ENABLE_DOC=OFF \
0030       -DJAS_ENABLE_LATEX=OFF \
0031       -DJAS_ENABLE_PROGRAMS=OFF \
0032       -DJAS_ENABLE_MULTITHREADING_SUPPORT=ON \
0033       -DJAS_PREFER_PTHREAD=ON \
0034       -DJAS_PREFER_PTHREAD_TSS=OFF \
0035       -DJAS_STRICT=OFF