19 lines
630 B
C++
19 lines
630 B
C++
|
|
// SPDX-License-Identifier: LGPL-3.0-only
|
||
|
|
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||
|
|
|
||
|
|
import std;
|
||
|
|
import Crafter.Build;
|
||
|
|
#pragma crafter dependency "../tool"
|
||
|
|
import Tool;
|
||
|
|
using namespace Crafter;
|
||
|
|
|
||
|
|
// ToolValue calls into the shared library the tool's CMake external builds,
|
||
|
|
// so this file's project.so loads only when it can find that library.
|
||
|
|
extern "C" Configuration CrafterBuildProject(std::span<const std::string_view>) {
|
||
|
|
Configuration cfg;
|
||
|
|
cfg.path = "./";
|
||
|
|
cfg.name = std::format("value {}", ToolValue());
|
||
|
|
cfg.outputName = "app";
|
||
|
|
cfg.type = ConfigurationType::Executable;
|
||
|
|
return cfg;
|
||
|
|
}
|