blob: e81488be305f8df0cdcc38a7f14bb143d8286768 (
plain)
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
|
// SPDX-License-Identifier: BSD-3-Clause
// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org)
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/ne-foss-org/build
#pragma once
#include <NeBuildKit/IManifestBuilder.h>
/// @file JSONManifestBuilder.h
/// @brief JSON manifest builder header file.
namespace NeBuild {
/// @brief JSON builder
class JSONManifestBuilder NEBUILD_MANIFEST_BUILDER {
public:
JSONManifestBuilder() = default;
~JSONManifestBuilder() override = default;
public:
/// =========================================================== ///
/// @brief Builds a JSON target from a JSON file.
/// @param config configuration of build.
/// @retval true building has succeeded.
/// @retval false fail to build, see error message.
/// =========================================================== ///
bool BuildTarget(BuildConfig& config) override;
/// =========================================================== ///
/// @brief Returns the build system name.
/// =========================================================== ///
const std::string_view BuildSystem() override;
};
} // namespace NeBuild
|