20 lines
671 B
C++
20 lines
671 B
C++
|
|
// SPDX-License-Identifier: LGPL-3.0-only
|
||
|
|
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||
|
|
|
||
|
|
import std;
|
||
|
|
import Crafter.Build;
|
||
|
|
#pragma crafter dependency "../greeter"
|
||
|
|
import Greeter;
|
||
|
|
using namespace Crafter;
|
||
|
|
|
||
|
|
extern "C" Configuration CrafterBuildProject(std::span<const std::string_view>) {
|
||
|
|
Configuration cfg;
|
||
|
|
cfg.path = "./";
|
||
|
|
cfg.name = Greet();
|
||
|
|
cfg.outputName = "app";
|
||
|
|
cfg.type = ConfigurationType::Executable;
|
||
|
|
// Once by the module it exports, once by its configuration name; the
|
||
|
|
// test expects the same object back for both.
|
||
|
|
cfg.dependencies = { ProjectDependency("Greeter"), ProjectDependency("greeter") };
|
||
|
|
return cfg;
|
||
|
|
}
|