-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdub.json
93 lines (93 loc) · 2.21 KB
/
dub.json
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
90
91
92
93
{
"name": "ada-d",
"version": "1.0.3",
"authors": [
"Matheus Catarino França"
],
"description": "D bindings for Ada URL parser",
"license": "Apache-2.0",
"targetPath": "build",
"buildTypes": {
"debug": {
"buildOptions": [
"debugMode",
"debugInfo"
]
},
"release": {
"buildOptions": [
"releaseMode",
"optimize",
"inline"
]
}
},
"lflags-posix": [
"-L$PACKAGE_DIR/build"
],
"lflags-windows": [
"/LIBPATH:$PACKAGE_DIR\\build"
],
"dflags": [
"-preview=dip1000",
"-preview=in",
"-preview=rvaluerefparam"
],
"dflags-ldc": [
"--verrors-context"
],
"dflags-dmd": [
"-verrors=context"
],
"preBuildCommands-posix": [
"mkdir -p $PACKAGE_DIR/build",
"curl -sLO https://github.com/ada-url/ada/releases/download/v2.9.2/ada.cpp",
"curl -sLO https://github.com/ada-url/ada/releases/download/v2.9.2/ada.h",
"g++ -O3 -fPIC -std=c++17 -c -o $PACKAGE_DIR/build/ada.o $PACKAGE_DIR/ada.cpp",
"g++ -shared -o $PACKAGE_DIR/build/libada.so $PACKAGE_DIR/build/ada.o",
"rm $PACKAGE_DIR/build/ada.o $PACKAGE_DIR/ada.cpp $PACKAGE_DIR/ada.h"
],
"preBuildCommands-windows": [
"powershell -Command \"mkdir -Force $PACKAGE_DIR\\build\"",
"powershell -Command \"(New-Object Net.WebClient).DownloadFile('https://github.com/ada-url/ada/releases/download/v2.9.2/ada.cpp', 'ada.cpp')\"",
"powershell -Command \"(New-Object Net.WebClient).DownloadFile('https://github.com/ada-url/ada/releases/download/v2.9.2/ada.h', 'ada.h')\"",
"cl.exe /c /O2 /std:c++latest /Fo:$PACKAGE_DIR\\build\\ada.obj $PACKAGE_DIR\\ada.cpp",
"lib.exe /OUT:$PACKAGE_DIR\\build\\ada.lib $PACKAGE_DIR\\build\\ada.obj",
"powershell -Command \"Remove-Item $PACKAGE_DIR\\build\\ada.obj, $PACKAGE_DIR\\ada.cpp, $PACKAGE_DIR\\ada.h\""
],
"configurations": [
{
"name": "build-library",
"sourceFiles": [
"source/ada/url/package.d"
],
"libs": [
"ada"
],
"targetType": "library"
},
{
"name": "unittest",
"sourceFiles": [
"source/ada/url/package.d"
],
"libs": [
"ada"
]
},
{
"name": "benchmark",
"importPaths": [
"source"
],
"sourceFiles": [
"bench/bench.d"
],
"libs": [
"ada"
],
"targetType": "executable",
"targetName": "bench"
}
]
}