1#
2# Arm SCP/MCP Software
3# Copyright (c) 2024, Arm Limited and Contributors. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8set -e
9
10tool_dir=$1
11version=$2
12
13url="https://github.com/doxygen/doxygen.git"
14
15echo -e "Installing Doxygen tool version: ${version}\n"
16
17# Install dependencies
18
19apt-get install -y --no-install-recommends \
20        flex \
21        bison
22
23# Create target folder
24mkdir -p ${tool_dir}
25
26# Download
27git clone "${url}" --depth 1 --branch \
28        "Release_$(echo $version | sed 's/\./_/g')" ${tool_dir}/source
29
30# Build
31mkdir -p ${tool_dir}/source/build
32pushd ${tool_dir}/source/build
33cmake -G "Unix Makefiles" ..
34make
35make install/local
36
37popd
38