forked from Inochi2D/inochi-creator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdub.sdl
83 lines (74 loc) · 2.8 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
name "inochi-creator"
description "Inochi2D rigging application"
authors "Inochi2D Project"
copyright "Copyright © 2020, Inochi2D Project"
license "BSD 2-clause"
dependency "inmath" version="~>1.0.1"
dependency "tinyfiledialogs" version="~>0.10.1"
dependency "facetrack-d" version="~>0.6.2"
dependency "bindbc-sdl" version="~>1.1.2"
dependency "bindbc-imgui" version="~>0.7.0"
dependency "i18n-d" version="~>1.0.1"
dependency "psd-d" version="~>0.6.1"
dependency "inochi2d" version="~>0.7.2"
targetPath "out/"
versions "GL_32" "USE_SDL2" "USE_GL" "SDL_208" "USE_OpenGL3"
stringImportPaths "res/" "./"
preBuildCommands "dub run gitver -- --prefix INC --file source/creator/ver.d --mod creator.ver --appname \"Inochi Creator\""
copyFiles "res/NotoSansCJK-Regular-LICENSE" "res/MaterialIcons-LICENSE" "res/OpenDyslexic-LICENSE" "LICENSE"
workingDirectory "out/"
// plz do not delete foxgirl bdfl
lflags "-rpath=$$ORIGIN" platform="linux"
lflags "-rpath=." platform="osx"
dflags "-mscrtlib=msvcrt" platform="windows-ldc"// Use the dynamic CRT on Windows.
// dflags "-flto=full" platform="windows-ldc" // Enable Link Time Optimizations (LTO)
// dflags "-defaultlib=phobos2-ldc-lto,druntime-ldc-lto" platform="windows-ldc" // Use the D Runtime with LTO enabled.
// These configurations are meant for debug and unoffical builds of Inochi Creator
// We will not provide support for barebones builds unless bugs/issues can be replicated
// in official builds.
configuration "barebones" {
subConfiguration "bindbc-imgui" "static_dynamicCRT"
platforms "linux"
targetType "executable"
}
configuration "darwin-barebones" {
subConfiguration "bindbc-imgui" "dynamic_dynamicCRT"
platforms "darwin"
targetType "executable"
}
configuration "win32-barebones" {
subConfiguration "bindbc-imgui" "static_staticCRT"
platforms "windows"
targetType "executable"
lflags "/SUBSYSTEM:windows" "/ENTRY:mainCRTStartup"
}
// Official build configurations.
// Do not package your compilation of Inochi Creator with these configurations
// unless you have prior permission from the Inochi2D project.
configuration "full" {
subConfiguration "bindbc-imgui" "static_dynamicCRT"
platforms "linux"
targetType "executable"
versions "InBranding"
}
configuration "darwin-full" {
subConfiguration "bindbc-imgui" "dynamic_dynamicCRT"
platforms "darwin"
targetType "executable"
versions "InBranding"
}
configuration "win32-full" {
subConfiguration "bindbc-imgui" "static_staticCRT"
platforms "windows"
targetType "executable"
lflags "/SUBSYSTEM:windows" "/ENTRY:mainCRTStartup" platform="window-dmd"
sourceFiles "res\\inochi-creator.res"
preBuildCommands "rc.exe /v res\\inochi-creator.rc"
versions "InBranding"
}
configuration "win32-lite" {
subConfiguration "bindbc-imgui" "static_staticCRT"
platforms "windows"
targetType "executable"
versions "InBranding" "InLite"
}