Dub + Optlink == ???
David Held via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Mar 8 16:05:52 PDT 2015
On 3/8/2015 3:55 PM, David Held wrote:
> Since DDT (Eclipse plugin) uses Dub, I am trying to convert the DWT
> build instructions into Dub. Here is my current attempt:
>
> {
> "name" : "foo",
> "description" : "foo",
> "importPaths" : [ "d:/workspace/dwt/imp" ],
> "stringImportPaths" : [
> "D:/workspace/dwt/org.eclipse.swt.win32.win32.x86/res" ],
> "lflags" : [
> "-L+D:/workspace/dwt/lib",
> "-L/SUBSYSTEM:WINDOWS:4.0"
> ],
> "libs" : [
> "org.eclipse.swt.win32.win32.x86",
> "dwt-base"
> ]
> }
> [...]
Figured it out. Even though lflags is a string[], the strings get
concatenated with no spaces. :/ This works:
"lflags" : [
"-L+..\\dwt\\lib\\ -L/SUBSYSTEM:WINDOWS:4.0"
],
Dave
More information about the Digitalmars-d-learn
mailing list