build

Undocumented in source.

Members

Enums

SokolBackend
enum SokolBackend
Undocumented in source.

Functions

buildLibSokol
void buildLibSokol(LibSokolOptions opts)
Undocumented in source. Be warned that the author may not have intended to support it.
buildShaders
void buildShaders(string vendor, SokolBackend opts)
Undocumented in source. Be warned that the author may not have intended to support it.
compileSource
void compileSource(string srcPath, string objPath, string compiler, string[] cflags, string target, bool verbose)

Compile one source file to an object file.

compileSources
string[] compileSources(const(string[]) sources, string buildDir, string srcRoot, string compiler, string[] cflags, string prefix, string target, bool verbose)

Compile a list of source files; returns the list of object-file paths.

cppCompiler
string cppCompiler(string cc, string target, string vendor)
Undocumented in source. Be warned that the author may not have intended to support it.
defaultCompiler
string defaultCompiler(string target)
Undocumented in source. Be warned that the author may not have intended to support it.
defaultTarget
string defaultTarget()
Undocumented in source. Be warned that the author may not have intended to support it.
defineFlag
string defineFlag(string macro_, string target)

Emit a single compiler flag that defines a C preprocessor macro, formatted correctly for the target toolchain.

download
void download(string url, string fileName)
Undocumented in source. Be warned that the author may not have intended to support it.
downloadAndExtract
void downloadAndExtract(string name, string vendor, string dir, string url, void delegate(string) @(safe) postExtract)
Undocumented in source. Be warned that the author may not have intended to support it.
emLinkStep
void emLinkStep(EmLinkOptions opts)
Undocumented in source. Be warned that the author may not have intended to support it.
emRunStep
void emRunStep(EmRunOptions opts)
Undocumented in source. Be warned that the author may not have intended to support it.
emSdkSetupStep
void emSdkSetupStep(string emsdk)
Undocumented in source. Be warned that the author may not have intended to support it.
embuilderStep
void embuilderStep(EmbuilderOptions opts)
Undocumented in source. Be warned that the author may not have intended to support it.
executeOrFail
void executeOrFail(string[] cmd, string errorMsg, bool verbose)
Undocumented in source. Be warned that the author may not have intended to support it.
extractZip
void extractZip(string zipFile, string destination)
Undocumented in source. Be warned that the author may not have intended to support it.
findProgram
string findProgram(string programName)
Undocumented in source. Be warned that the author may not have intended to support it.
getEmSDK
void getEmSDK(string vendor)
Undocumented in source. Be warned that the author may not have intended to support it.
getIMGUI
void getIMGUI(string vendor)
Undocumented in source. Be warned that the author may not have intended to support it.
getNuklear
void getNuklear(string vendor)
Undocumented in source. Be warned that the author may not have intended to support it.
getSHDC
string getSHDC(string vendor)
Undocumented in source. Be warned that the author may not have intended to support it.
imguiLibName
string imguiLibName(string target, bool static_)
Undocumented in source. Be warned that the author may not have intended to support it.
includeFlag
string includeFlag(string path, string target)

Emit an include-path flag for the target toolchain.

isAArch64
bool isAArch64()
Undocumented in source. Be warned that the author may not have intended to support it.
isWindows
bool isWindows()
Undocumented in source. Be warned that the author may not have intended to support it.
linkLibrary
void linkLibrary(string libPath, string[] objFiles, string target, bool linkageStatic, string vendor, string[] lflags, bool verbose)
Undocumented in source. Be warned that the author may not have intended to support it.
main
void main(string[] args)
Undocumented in source. Be warned that the author may not have intended to support it.
nuklearLibName
string nuklearLibName(string target, bool static_)
Undocumented in source. Be warned that the author may not have intended to support it.
objExt
string objExt(string target)

Object-file extension: ".obj" on Windows, ".o" elsewhere.

resolveSokolBackend
SokolBackend resolveSokolBackend(SokolBackend backend, string target)
Undocumented in source. Be warned that the author may not have intended to support it.
resolveTarget
string resolveTarget(string target)

Resolve "native" to the actual compile-time platform string so that all subsequent target checks work correctly when DUB passes --target=native.

sharedOrStaticName
string sharedOrStaticName(string base, string target, bool static_)
Undocumented in source. Be warned that the author may not have intended to support it.
sokolLibName
string sokolLibName(string target, bool static_)
Undocumented in source. Be warned that the author may not have intended to support it.
targetIsDarwin
bool targetIsDarwin(string target)
Undocumented in source. Be warned that the author may not have intended to support it.
targetIsWasm
bool targetIsWasm(string target)
Undocumented in source. Be warned that the author may not have intended to support it.
targetIsWindows
bool targetIsWindows(string target)

Returns true when compiling for (or running on) Windows.

Manifest constants

emsdk_version
enum emsdk_version;
Undocumented in source.
imgui_version
enum imgui_version;
Undocumented in source.
nuklear_version
enum nuklear_version;
Undocumented in source.

Structs

EmLinkOptions
struct EmLinkOptions
Undocumented in source.
EmRunOptions
struct EmRunOptions
Undocumented in source.
EmbuilderOptions
struct EmbuilderOptions
Undocumented in source.
LibSokolOptions
struct LibSokolOptions
Undocumented in source.

Meta