more cleanup
This commit is contained in:
parent
d2d93f9e86
commit
d6b3e7444e
@ -2,8 +2,7 @@ module dlib.assets;
|
||||
|
||||
import dlib.aliases;
|
||||
|
||||
static if(NativeTarget)
|
||||
{
|
||||
static if(NativeTarget) version(DLIB_ASSETS):
|
||||
|
||||
import dlibincludes : cgltf_result,
|
||||
cgltf_memory_options,
|
||||
@ -817,4 +816,3 @@ GenerateDefaultMaterial()
|
||||
return mat;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -23,16 +23,9 @@
|
||||
# define VK_USE_PLATFORM_WIN32_KHR
|
||||
#endif
|
||||
|
||||
#if !defined(NO_STBI) && !defined(BUILD_WASM)
|
||||
#ifdef BUILD_ASSETS
|
||||
# include "../external/stb/stb_image.h"
|
||||
# include "../external/stb/stb_image_write.h"
|
||||
#endif
|
||||
|
||||
#ifdef DLIB_INCLUDE_VULKAN
|
||||
# include "../../VulkanRenderer/vulkan_includes.c"
|
||||
#endif
|
||||
|
||||
#ifndef BUILD_WASM
|
||||
# include "../external/cgltf/cgltf.h"
|
||||
#endif
|
||||
|
||||
|
||||
4
test.sh
4
test.sh
@ -12,7 +12,7 @@ declare -a shared_src=(
|
||||
dlib/alloc.d
|
||||
dlib/assets.d
|
||||
dlib/externdecl.d
|
||||
stb_truetype.d
|
||||
dlib/stb_truetype.d
|
||||
)
|
||||
|
||||
if [ "$1" == "wasm" ]; then
|
||||
@ -73,7 +73,9 @@ else
|
||||
-L-lstdc++
|
||||
-Jbuild
|
||||
-d-version=VULKAN_RENDERER_TEST
|
||||
-d-version=DLIB_ASSETS
|
||||
-Xcc=-DBUILD_VULKAN
|
||||
-Xcc=-DBUILD_ASSETS
|
||||
)
|
||||
|
||||
# Test for compilation
|
||||
|
||||
@ -9,8 +9,8 @@ import vulkan_funcs;
|
||||
import std.stdio;
|
||||
import std.algorithm.comparison;
|
||||
import std.algorithm.searching : canFind;
|
||||
import std.traits : isPointer, isArray;
|
||||
import core.stdc.string : strcmp, memcpy;
|
||||
import std.traits : isPointer, isArray;
|
||||
import core.stdc.string : strcmp, memcpy, strlen;
|
||||
import core.stdc.stdio : Printf = printf;
|
||||
import std.format : sformat;
|
||||
import std.math.rounding : Ceil = ceil;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user