blob: 5b442f816c3a4a4ad94b368396a0b784ad415d59 (
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
|
// -*- c++ -*-
#pragma once
#include <string>
#include <vector>
//#include <source_location>
enum class TargetType
{
Auto, // Default - deduce from target name
Executable,
StaticLibrary,
DynamicLibrary,
};
struct BuildConfiguration
{
TargetType type{TargetType::Auto};
std::string target;
std::vector<std::string> sources;
std::vector<std::string> depends;
std::vector<std::string> cxxflags;
std::vector<std::string> cflags;
std::vector<std::string> ldflags;
};
using BuildConfigurations = std::vector<BuildConfiguration>;
int reg(const char* location, BuildConfigurations (*cb)());
|