diff --git a/dub.json b/dub.json index ba6aaec..46735ec 100755 --- a/dub.json +++ b/dub.json @@ -5,19 +5,6 @@ "homepage": "https://gitlab.com/dokutoku/sha3iuf-d", "copyright": "Copyright © 2021, dokutoku", "license": "MIT", - "buildTypes": - { - "debug": {"buildOptions": ["betterC", "debugMode", "debugInfo"]}, - "release": {"buildOptions": ["betterC", "releaseMode", "optimize", "inline"]}, - "release-debug": {"buildOptions": ["betterC", "releaseMode", "optimize", "inline", "debugInfo"]}, - "release-nobounds": {"buildOptions": ["betterC", "releaseMode", "optimize", "inline", "noBoundsCheck"]}, - "unittest": {"buildOptions": ["betterC", "unittests", "debugMode", "debugInfo"]}, - "profile": {"buildOptions": ["betterC", "profile", "optimize", "inline", "debugInfo"]}, - "profile-gc": {"buildOptions": ["betterC", "profileGC", "debugInfo"]}, - "cov": {"buildOptions": ["betterC", "coverage", "debugMode"]}, - "unittest-cov": {"buildOptions": ["betterC", "unittests", "coverage", "debugMode", "debugInfo"]}, - "syntax": {"buildOptions": ["betterC", "syntaxOnly"]} - }, "configurations": [ { @@ -25,13 +12,44 @@ "platforms": ["wasm"], "versions": ["SHA3IUF_D_WASM", "SHA3IUF_D_ENABLE_STATIC_BUFFER"], "targetPath": "wasm", - "targetType": "executable" + "targetType": "executable", + "buildTypes": + { + "debug": {"buildOptions": ["betterC", "debugMode", "debugInfo"]}, + "release": {"buildOptions": ["betterC", "releaseMode", "optimize", "inline"]}, + "release-debug": {"buildOptions": ["betterC", "releaseMode", "optimize", "inline", "debugInfo"]}, + "release-nobounds": {"buildOptions": ["betterC", "releaseMode", "optimize", "inline", "noBoundsCheck"]}, + "unittest": {"buildOptions": ["betterC", "unittests", "debugMode", "debugInfo"]}, + "profile": {"buildOptions": ["betterC", "profile", "optimize", "inline", "debugInfo"]}, + "profile-gc": {"buildOptions": ["betterC", "profileGC", "debugInfo"]}, + "cov": {"buildOptions": ["betterC", "coverage", "debugMode"]}, + "unittest-cov": {"buildOptions": ["betterC", "unittests", "coverage", "debugMode", "debugInfo"]}, + "syntax": {"buildOptions": ["betterC", "syntaxOnly"]} + } }, { - "name": "betterC-library", + "name": "library", "targetPath": "lib", "targetType": "library" }, + { + "name": "betterC-library", + "targetPath": "lib", + "targetType": "library", + "buildTypes": + { + "debug": {"buildOptions": ["betterC", "debugMode", "debugInfo"]}, + "release": {"buildOptions": ["betterC", "releaseMode", "optimize", "inline"]}, + "release-debug": {"buildOptions": ["betterC", "releaseMode", "optimize", "inline", "debugInfo"]}, + "release-nobounds": {"buildOptions": ["betterC", "releaseMode", "optimize", "inline", "noBoundsCheck"]}, + "unittest": {"buildOptions": ["betterC", "unittests", "debugMode", "debugInfo"]}, + "profile": {"buildOptions": ["betterC", "profile", "optimize", "inline", "debugInfo"]}, + "profile-gc": {"buildOptions": ["betterC", "profileGC", "debugInfo"]}, + "cov": {"buildOptions": ["betterC", "coverage", "debugMode"]}, + "unittest-cov": {"buildOptions": ["betterC", "unittests", "coverage", "debugMode", "debugInfo"]}, + "syntax": {"buildOptions": ["betterC", "syntaxOnly"]} + } + }, { "name": "source", "targetType": "sourceLibrary"