{ "name": "d-html-parser", "sourceFiles": ["dhtmlparser.d", "quote_escaper.d"], "importPaths": ["."] }
Ideally, the two source files would be moved to a "source" or "src"
folder. That would avoid possible import conflicts and would mean than
only the name needs to be put into dub.json - the rest gets inferred then.
"library"? Whu not "sourceLibrary"?
ok, I moved this 2 files at src folder.
Am I right understand that I do not need to specify their names, bacause all of files from src would be imported?
I do not need to specify importPaths because it will do search all files in current folder?
I wrote next dyb.json file:
{
"name": "DHTMLParser",
"description": "A minimal D application.",
"copyright": "Copyright © 2014, Suliman",
"targetType": "sourceLibrary",
"authors": ["Suliman"],
"dependencies": {
}
}
but I am getting error:
"Error executing command run: Main package must have a binary target type, not sourceLibrary. Cannot build."
with:
"targetType": "library",
error:
Building dhtmlparser ~master configuration "library", build type debug.
Running dmd...
source\dhtmlparser.d(382): Warning: else is dangling, add { } after condition at
source\dhtmlparser.d(379)
source\dhtmlparser.d(390): Warning: else is dangling, add { } after condition at
source\dhtmlparser.d(386)
source\dhtmlparser.d(884): Warning: else is dangling, add { } after condition at
source\dhtmlparser.d(881)
FAIL .dub\build\library-debug-windows-x86-dmd_2066-CA3B61C3E83E5D50F59F152BAC903
747\ dhtmlparser staticLibrary
Error executing command run: dmd failed with exit code 1.