fix up dub file
This commit is contained in:
parent
71ce058596
commit
09ce86257e
Binary file not shown.
98
dub.json
98
dub.json
@ -1,39 +1,50 @@
|
|||||||
{
|
{
|
||||||
"name": "dlib",
|
"name": "dlib",
|
||||||
"description": "General purpose library",
|
"description": "General purpose library",
|
||||||
"targetType": "sourceLibrary",
|
"targetType": "none",
|
||||||
"sourcePaths": ["dlib"],
|
|
||||||
"importPaths": ["dlib"],
|
|
||||||
"sourceFiles-linux": ["build/libstb.a"],
|
|
||||||
"sourceFiles-windows": [],
|
|
||||||
"libs-linux": [
|
|
||||||
"X11",
|
|
||||||
"Xfixes",
|
|
||||||
"SDL3"
|
|
||||||
],
|
|
||||||
"dflags-webassembly": [
|
|
||||||
"-mtriple=wasm32-unknown-unknown-wasm",
|
|
||||||
"-betterC",
|
|
||||||
"-vgc",
|
|
||||||
"-fvisibility=hidden",
|
|
||||||
"-i=.",
|
|
||||||
"-i=core",
|
|
||||||
"-i=std",
|
|
||||||
"--real-precision=double",
|
|
||||||
"--Xcc=-DBUILD_WASM",
|
|
||||||
"-gcc=clang"
|
|
||||||
],
|
|
||||||
"libs-windows": [],
|
|
||||||
"preGenerateCommands-linux": ["./build.sh"],
|
|
||||||
"subPackages": [
|
"subPackages": [
|
||||||
{
|
{
|
||||||
"name": "dlib-vulkan",
|
"name": "core",
|
||||||
|
"targetType": "sourceLibrary",
|
||||||
|
"sourcePaths": ["dlib"],
|
||||||
|
"importPaths": ["dlib"],
|
||||||
|
"sourceFiles-linux": ["build/libstb.a"],
|
||||||
|
"sourceFiles-windows": [],
|
||||||
|
"libs-linux": [
|
||||||
|
"X11",
|
||||||
|
"Xfixes",
|
||||||
|
"SDL3"
|
||||||
|
],
|
||||||
|
"dflags-webassembly": [
|
||||||
|
"-mtriple=wasm32-unknown-unknown-wasm",
|
||||||
|
"-betterC",
|
||||||
|
"-vgc",
|
||||||
|
"-fvisibility=hidden",
|
||||||
|
"-i=.",
|
||||||
|
"-i=core",
|
||||||
|
"-i=std",
|
||||||
|
"--real-precision=double",
|
||||||
|
"--Xcc=-DBUILD_WASM",
|
||||||
|
"-gcc=clang"
|
||||||
|
],
|
||||||
|
"libs-windows": [],
|
||||||
|
"preGenerateCommands-linux": ["./build.sh"],
|
||||||
|
"buildTypes": {
|
||||||
|
"unittest": {
|
||||||
|
"buildOptions": ["unittests", "debugMode", "debugInfo"],
|
||||||
|
"versions": ["DLIB_TEST", "VULKAN_RENDERER_TEST"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "vulkan",
|
||||||
"description": "Vulkan library for rendering and compute",
|
"description": "Vulkan library for rendering and compute",
|
||||||
"targetType": "sourceLibrary",
|
"targetType": "sourceLibrary",
|
||||||
"sourcePaths": ["vulkan"],
|
"sourcePaths": ["vulkan"],
|
||||||
"importPaths": ["vulkan"],
|
"importPaths": ["vulkan"],
|
||||||
"sourceFiles-linux": ["build/libvma.a"],
|
"sourceFiles-linux": ["build/libvma.a"],
|
||||||
"sourceFiles-windows": [],
|
"sourceFiles-windows": [],
|
||||||
|
"stringImportPaths": ["build"],
|
||||||
"dflags-ldc": ["--Xcc=-DBUILD_VULKAN"],
|
"dflags-ldc": ["--Xcc=-DBUILD_VULKAN"],
|
||||||
"dflags-dmd": ["-Xcc=-DBUILD_VULKAN"],
|
"dflags-dmd": ["-Xcc=-DBUILD_VULKAN"],
|
||||||
"libs-linux": [
|
"libs-linux": [
|
||||||
@ -43,6 +54,9 @@
|
|||||||
"libs-windows": [],
|
"libs-windows": [],
|
||||||
"versions": ["BUILD_VULKAN"],
|
"versions": ["BUILD_VULKAN"],
|
||||||
"debugVersions": ["VULKAN_DEBUG"],
|
"debugVersions": ["VULKAN_DEBUG"],
|
||||||
|
"dependencies": {
|
||||||
|
"dlib:core": "*"
|
||||||
|
},
|
||||||
"buildTypes": {
|
"buildTypes": {
|
||||||
"unittest": {
|
"unittest": {
|
||||||
"buildOptions": ["unittests", "debugMode", "debugInfo"],
|
"buildOptions": ["unittests", "debugMode", "debugInfo"],
|
||||||
@ -51,28 +65,44 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "dlib-assets",
|
"name": "assets",
|
||||||
"description": "Asset loading utilities",
|
"description": "Asset loading utilities",
|
||||||
"targetType": "sourceLibrary",
|
"targetType": "sourceLibrary",
|
||||||
|
"importPaths": ["dlib"],
|
||||||
|
"dependencies": {
|
||||||
|
"dlib:core": "*"
|
||||||
|
},
|
||||||
"sourceFiles-linux": ["build/libcgltf.a"],
|
"sourceFiles-linux": ["build/libcgltf.a"],
|
||||||
"sourceFiles-windows": [],
|
"sourceFiles-windows": [],
|
||||||
"versions": ["BUILD_ASSETS"]
|
"versions": ["BUILD_ASSETS"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "dlib-opengl",
|
"name": "opengl",
|
||||||
"description": "OpenGL bindings/set up utilities",
|
"description": "OpenGL bindings/set up utilities",
|
||||||
"targetType": "sourceLibrary",
|
"targetType": "sourceLibrary",
|
||||||
"sourcePaths": ["opengl"],
|
"sourcePaths": ["opengl"],
|
||||||
"importPaths": ["opengl"],
|
"importPaths": ["opengl"],
|
||||||
"libs-linux": ["GL"],
|
"libs-linux": ["GL"],
|
||||||
"libs-windows": [],
|
"libs-windows": [],
|
||||||
"versions": ["BUILD_GL"]
|
"dflags-ldc": ["--Xcc=-DBUILD_GL"],
|
||||||
|
"dflags-dmd": ["-Xcc=-DBUILD_GL"],
|
||||||
|
"versions": ["BUILD_GL"],
|
||||||
|
"dependencies": {
|
||||||
|
"dlib:core": "*"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "test",
|
||||||
|
"description": "Include all packages for a test",
|
||||||
|
"targetType": "library",
|
||||||
|
"sourceFiles": ["dlib/package.d"],
|
||||||
|
"importPaths": ["dlib"],
|
||||||
|
"dependencies": {
|
||||||
|
"dlib:vulkan": "*",
|
||||||
|
"dlib:assets": "*",
|
||||||
|
"dlib:opengl": "*",
|
||||||
|
"dlib:core": "*"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"buildTypes": {
|
|
||||||
"unittest": {
|
|
||||||
"buildOptions": ["unittests", "debugMode", "debugInfo"],
|
|
||||||
"versions": ["DLIB_TEST", "VULKAN_RENDERER_TEST"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user