-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSourceMap.qbs
More file actions
89 lines (80 loc) · 2.48 KB
/
SourceMap.qbs
File metadata and controls
89 lines (80 loc) · 2.48 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import qbs.FileInfo
Project {
name: "SourceMap-Cpp"
property string version: "2.0.0"
property string configProductName: "SourceMapConfig"
property bool enableQbsImports: (sourceDirectory === path)
property bool enableTests: (sourceDirectory === path)
property bool enableThirdParty: true
minimumQbsVersion: "3.1"
qbsSearchPaths: enableQbsImports ? ["qbs"] : []
Product {
name: "SourceMapConfig"
condition: configProductName === "SourceMapConfig"
Export {
cpp.cxxLanguageVersion: "c++23"
Depends { name: "cpp" }
}
}
StaticLibrary {
name: "SourceMapLibrary"
version: parent.version
cpp.includePaths: "src"
Depends { name: "cpp" }
Depends { name: "nlohmann_json" }
Depends { name: parent.configProductName }
Export {
cpp.includePaths: FileInfo.joinPaths(exportingProduct.sourceDirectory, "src")
Depends { name: "cpp" }
Depends { name: "nlohmann_json" }
Depends { name: exportingProduct.parent.configProductName }
}
Group {
name: "sources"
prefix: "src/SourceMap/"
files: [
"Data.h",
"Data_impl.h",
"Entry.h",
"Extension/Base.h",
"Extension/Caller.cpp",
"Extension/Caller.h",
"Extension/Caller_impl.h",
"Extension/Interpolation.cpp",
"Extension/Interpolation.h",
"Extension/Interpolation_impl.h",
"Extensions.h",
"FilePosition.h",
"FilePosition.ostream.h",
"Position.ostream.h",
"intern/Base64VLQ.cpp",
"intern/Base64VLQ.h",
"Mapping.h",
"Mapping_impl.h",
"meta/tuple_without_void.h",
"Position.h",
"RevisionThree.cpp",
"RevisionThree.h",
"RevisionThree_impl.h",
]
}
}
SubProject {
condition: parent.enableTests
filePath: "test/test.qbs"
}
SubProject {
condition: parent.enableThirdParty
filePath: "third_party/third_party.qbs"
}
Product {
name: "[sourcemap extra files]"
files: [
".clang-format",
"CHANGES",
"LICENSE",
"NOTICE",
"README.md",
]
}
}