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