-
Notifications
You must be signed in to change notification settings - Fork 1
/
bda-build-project.sh
executable file
·68 lines (58 loc) · 2.34 KB
/
bda-build-project.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/usr/bin/env bash
#
# Developed for BioDataAnalysis GmbH <[email protected]>
# Balanstrasse 43, 81669 Munich
# https://www.biodataanalysis.de/
#
# Copyright (c) BioDataAnalysis GmbH. All Rights Reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are not permitted. All information contained herein
# is, and remains the property of BioDataAnalysis GmbH.
# Dissemination of this information or reproduction of this material
# is strictly forbidden unless prior written permission is obtained
# from BioDataAnalysis GmbH.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
source "${BDASOFTBUILD}/scripts/etc/bda-build-global-macros.sh" || exit 1
source "${BDASOFTBUILD}/scripts/etc/bda-build-global-variables.sh" || exit 1
# Set up the shell environment:
bda_build_environment_setup || exit 1
# Parse the default command line arguments:
bda_build_project_default_parse_arguments "$@" || exit 1
# Check if --debug or --release are given, otherwise recurse and set them:
bda_build_recursion_for_debug_release_builds "$0" "$@" || exit 1
# This requires the command line arguments:
bda_build_define_essential_variables || exit 1
# Ensure the essential build environment variables are defined:
bda_test_environment_or_exit || exit 1
PROJECT="VolumeFusion"
PROJECT_SRCDIR="${PWD}"
PROJECT_BUILDDIR="${BDABUILDDIR}/${PROJECT}"
BDA_BUILD_USE_PEDANTIC_BUILD_SETTINGS="true"
PREREQUISITE_TARGETS=(
# "${BDATARGETDIR}/install/BDABaseFunctions.install"
"${BDATARGETDIR}/install/vtk.install"
)
CLEAN_TARGETS=("${PROJECT_BUILDDIR}")
DISTCLEAN_TARGETS=("${PROJECT_BUILDDIR}")
PROJECT_OPTIONS=(
"-DBUILD_SHARED_LIBS="$(test "${BDA_BUILD_TYPE}" == "Shared" && echo "ON" || echo "OFF")
"-DENABLE_TEST=OFF"
"-DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
"-DCMAKE_TOOLCHAIN_FILE=/home/mvankovych/Documents/cpp/resources/vcpkg/scripts/buildsystems/vcpkg.cmake"
)
CTEST_INCLUDE_REGEX=".*"
PROJECT_SOURCE_FILES=(*)
PROJECT_RECONFIGURE_FILES=(
bda-build-project.sh
CMakeLists.txt
cmake/*
)
BDA_BUILD_GITLAB_CI_YML_STAGES=("build" "test" "doc" "trigger")
BDA_BUILD_GITLAB_CI_YML_DOCKER_IMAGE="bda_cppdev_iadev_guidev"
# Call the build task:
bda_build_tasks || exit 1