Crafter.Build/tests/PragmaSharedExternal/fixture/app/project.cpp

19 lines
630 B
C++
Raw Normal View History

// 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;
}