-improved WASM compilation scripts

-added external bindbc.sdl import for WASM
-working on demos (WIP, working simple demo with ECS and SDL2)
-small change in ecs.std
This commit is contained in:
Mergul 2019-11-06 20:38:46 +01:00
parent a8c74d5045
commit 73f2aa6861
60 changed files with 9015 additions and 67 deletions

50
demos/utils/dub.json Normal file
View file

@ -0,0 +1,50 @@
{
"name": "ecs_utils",
"authors": [
"Michał Masiukiewicz", "Dawid Masiukiewicz"
],
"description": "Dynamic Entity Component System examples utils",
"copyright": "Copyright © 2018-2019, Michał Masiukiewicz, Dawid Masiukiewicz",
"license": "BSD",
"sourcePaths" : [
"source\/"
],
"importPaths": [
"source"
],
"dflags-posix-ldc": [
"-defaultlib=phobos2-ldc,druntime-ldc"
],
"dflagss": [
"-betterC"
],
"dependencies": {
"bindbc-sdl":"0.10.1"
},
"versions": [
"BindSDL_Image",
"SDL_2010"
],
"configurations" : [
{
"name" : "default",
"targetType" : "library",
"subConfigurations":
{
"bindbc-sdl": "static"
}
},
{
"name" : "betterC",
"targetType" : "library",
"dflags": [
"-betterC"
],
"subConfigurations":
{
"bindbc-sdl": "staticBC"
}
}
]
}