config.mk (2745B)
1 # Copyright (C) 2023-2025 |Méso|Star> (contact@meso-star.com) 2 # 3 # This program is free software: you can redistribute it and/or modify 4 # it under the terms of the GNU General Public License as published by 5 # the Free Software Foundation, either version 3 of the License, or 6 # (at your option) any later version. 7 # 8 # This program is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 # GNU General Public License for more details. 12 # 13 # You should have received a copy of the GNU General Public License 14 # along with this program. If not, see <http://www.gnu.org/licenses/>. 15 16 # Project to build. To see the available projects, list the shell 17 # scripts in the src directory: 18 # 19 # find src/ -name "*.sh" ! -name "build.sh" | sort 20 # 21 BUILD = src/dev-libs/star-engine_0.16.sh 22 23 # Installation path 24 PREFIX = ./local 25 26 # How to build programs and libraries, typically in RELEASE or in DEBUG 27 BUILD_TYPE = RELEASE 28 29 # Type of library to build, either SHARED or STATIC 30 LIB_TYPE = SHARED 31 32 # Cache directory, i.e. temporary directory into which temporary 33 # resources are downloaded and sources compiled before installation. 34 CACHE = ./cache 35 36 # Options passed to the curl(1) program. It is used in particular to 37 # download archives of precompiled binaries. 38 CURL_OPT = --fail --retry 3 39 40 # Uses a precompiled binary of the Embree library instead of compiling 41 # it locally 42 EMBREE_BINDIST = 1 43 44 # Define the state of the network, either ONLINE or OFFLINE. 45 # If the network is OFFLINE, the sources and precompiled binaries are 46 # retrieved from the local MIRROR directory, which must therefore 47 # contain the expected data. To do this, simply run the 'mirror' target 48 # to download the source repositories and binary packages locally: 49 # 50 # make NETWORK=ONLINE mirror 51 # 52 NETWORK = ONLINE 53 54 # Directory in which to download the data required for offline 55 # build of the project (see the NETWORK macro) 56 MIRROR = ./mirror 57 58 # Which SIMD instruction sets are used? 59 SIMD_WIDTH = NONE 60 #SIMD_WIDTH = 128 61 #SIMD_WIDTH = 256 62 63 # Option passed to git when cloning a repository to make it a local 64 # mirror 65 MIRROR_GIT_OPT = --depth 1 66 67 # URLs for online repositories 68 REPO_ONLINE = https://gitlab.com/meso-star 69 REPO_BIN_ONLINE = https://www.meso-star.com/packages/v0.4/ 70 REPO_VAPLV_ONLINE = https://gitlab.com/vaplv 71 72 # URLs for offline repositories 73 REPO_OFFLINE = "file://$$(cd $(MIRROR) && pwd)" 74 REPO_BIN_OFFLINE = "file://$$(cd $(MIRROR) && pwd)" 75 REPO_VAPLV_OFFLINE = "file://$$(cd $(MIRROR) && pwd)" 76 77 # List of repositories to use depending on the state of the network 78 REPO = $(REPO_$(NETWORK)) 79 REPO_BIN = $(REPO_BIN_$(NETWORK)) 80 REPO_VAPLV = $(REPO_VAPLV_$(NETWORK))