-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.Decoder.sh
More file actions
executable file
·27 lines (22 loc) · 1011 Bytes
/
setup.Decoder.sh
File metadata and controls
executable file
·27 lines (22 loc) · 1011 Bytes
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
#!/usr/bin/env bash
# SPDX-FileCopyrightText: (C) 2022 user4223 and (other) contributors to ticket-decoder <https://github.com/user4223/ticket-decoder>
# SPDX-License-Identifier: GPL-3.0-or-later
set -o errexit
readonly WORKSPACE_ROOT="$(readlink -f $(dirname "$0"))"
readonly BUILD_TYPE=${1:-Release}
${WORKSPACE_ROOT}/etc/conan-config.sh
${WORKSPACE_ROOT}/etc/conan-install.sh ${BUILD_TYPE} \
-o:a="&:with_ticket_analyzer=False" \
-o:a="&:with_ticket_decoder=True" \
-o:a="&:with_python_module=False" \
-o:a="&:with_square_detector=False" \
-o:a="&:with_classifier_detector=False" \
-o:a="&:with_barcode_decoder=True" \
-o:a="&:with_pdf_input=True" \
-o:a="&:with_signature_verifier=True" \
-o:a="&:with_uic_interpreter=True" \
-o:a="&:with_vdv_interpreter=True" \
-o:a="&:with_sbb_interpreter=True"
${WORKSPACE_ROOT}/etc/cmake-config.sh ${BUILD_TYPE}
${WORKSPACE_ROOT}/build.sh ${BUILD_TYPE} ${@:2}
export PYTHONPATH=${WORKSPACE_ROOT}/build/${BUILD_TYPE}/bin