-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathdub.sdl
138 lines (122 loc) · 4.1 KB
/
dub.sdl
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
name "inochi-creator"
description "Inochi2D rigging application"
authors "Inochi2D Project"
copyright "Copyright © 2020, Inochi2D Project"
license "BSD 2-clause"
dependency "psd-d" version="~>0.6.1"
dependency "inmath" version="~>1.3.0"
dependency "kra-d" version="~>0.5.6"
dependency "tinyfiledialogs" version="~>0.10.1"
dependency "facetrack-d" version="~>0.8.0"
dependency "bindbc-sdl" version="~>1.1.2"
dependency "dcv:core" version="~>0.3.0"
dependency "i18n-d" version="~>1.0.2"
dependency "i2d-imgui" version="~>0.8.0"
dependency "inochi2d" version="~>0.8.7"
dependency "mir-linux-kernel" version="~>1.0.1"
targetPath "out/"
workingDirectory "out/"
dflags "-mscrtlib=msvcrt" platform="windows-ldc"
dflags "-link-defaultlib-shared=false" platform="linux-ldc"
lflags "-rpath=$$ORIGIN" platform="linux"
versions "GL_32" "USE_SDL2" "SDL_2020" "UseUIScaling"
stringImportPaths "res/" "./"
// Barebones build
configuration "barebones" {
platforms "linux"
dependency "dportals" version="~>0.1.0"
targetType "executable"
subConfiguration "i2d-imgui" "static_dynamicCRT"
copyFiles "res/NotoSansCJK-Regular-LICENSE" "res/MaterialIcons-LICENSE" "res/OpenDyslexic-LICENSE" "LICENSE"
}
// Linux build
configuration "linux-demo" {
platforms "linux"
dependency "dportals" version="~>0.1.0"
targetType "executable"
subConfiguration "i2d-imgui" "static_dynamicCRT"
versions "InBranding" "InDemo"
}
// macOS build
configuration "osx-demo" {
platforms "osx"
targetType "executable"
targetPath "out/Inochi Creator.app/Contents/MacOS"
subConfiguration "i2d-imgui" "dynamic_dynamicCRT"
dflags "-force-dwarf-frame-section=false"
lflags "-rpath" "@executable_path/../Frameworks" "-rpath" "@executable_path/."
versions "InBranding" "InDemo"
}
// Windows build
configuration "win32-demo" {
platforms "windows"
targetType "executable"
subConfiguration "i2d-imgui" "static_staticCRT"
lflags "/SUBSYSTEM:windows" "/ENTRY:mainCRTStartup" platform="windows-dmd"
sourceFiles "build-aux\\windows\\inochi-creator.res"
versions "InBranding" "InDemo"
}
// Linux build
configuration "linux-full" {
platforms "linux"
dependency "dportals" version="~>0.1.0"
targetType "executable"
subConfiguration "i2d-imgui" "static_dynamicCRT"
versions "InBranding"
}
// macOS build
configuration "osx-full" {
platforms "osx"
targetType "executable"
targetPath "out/Inochi Creator.app/Contents/MacOS"
subConfiguration "i2d-imgui" "dynamic_dynamicCRT"
dflags "-force-dwarf-frame-section=false"
lflags "-rpath" "@executable_path/../Frameworks" "-rpath" "@executable_path/."
versions "InBranding"
}
// Windows build
configuration "win32-full" {
platforms "windows"
targetType "executable"
subConfiguration "i2d-imgui" "static_staticCRT"
lflags "/SUBSYSTEM:windows" "/ENTRY:mainCRTStartup" platform="windows-dmd"
sourceFiles "build-aux\\windows\\inochi-creator.res"
versions "InBranding"
}
// Linux nightly build
configuration "linux-nightly" {
platforms "linux"
dependency "dportals" version="~>0.1.0"
targetType "executable"
subConfiguration "i2d-imgui" "static_dynamicCRT"
versions "InBranding" "InNightly"
}
// macOS nightly build
configuration "osx-nightly" {
platforms "osx"
targetType "executable"
targetPath "out/Inochi Creator.app/Contents/MacOS"
subConfiguration "i2d-imgui" "dynamic_dynamicCRT"
dflags "-force-dwarf-frame-section=false"
lflags "-rpath" "@executable_path/../Frameworks" "-rpath" "@executable_path/."
versions "InBranding" "InNightly"
}
// Windows nightly build
configuration "win32-nightly" {
platforms "windows"
targetType "executable"
subConfiguration "i2d-imgui" "static_staticCRT"
lflags "/SUBSYSTEM:windows" "/ENTRY:mainCRTStartup" platform="windows-dmd"
sourceFiles "build-aux\\windows\\inochi-creator.res"
versions "InBranding" "InNightly"
}
// Version info generation
configuration "update-version" {
targetType "none"
preGenerateCommands "dub run -y gitver -- --prefix INC --file source/creator/ver.d --mod creator.ver --appname \"Inochi Creator\" --itchfile version.txt"
}
// Metadata generation
configuration "meta" {
targetType "none"
preGenerateCommands "rc.exe /v build-aux\\windows\\inochi-creator.rc" platform="windows"
}