digitalmars.D.learn - Adding object files to dub build?
- Jesse Phillips (19/19) Jan 13 2014 I have a pre-built sqlite3 object file which I'd like to include
- Jesse Phillips (2/7) Jan 14 2014 Utilizing sourceFiles works in 0.9.20 and newer.
I have a pre-built sqlite3 object file which I'd like to include as part of the linking for the final executable. I have been unable to find a way to do this with dub. I have attempted adding: "sourceFiles": ["csqlite3.obj"], This doesn't work since it is added to the compile stage, and there is nothing to be done. It appears it will not be included in the temp.obj created at this stage. I also tried: "lflags": ["csqlite3.obj"], I'm surprised that this doesn't work, it is added to dmd's command line as "-Lcsqlite3.obj" which I would think the linker should pick up. I was able to build the executable without missing symbols by taking the temp.obj and combining it with the csqlite3.obj dmd .\temp.obj .\csqlite3.obj ------ The follow up to this request is that I can't add flags to the link step, so that I could get verbose output of the link step.
Jan 13 2014
On Monday, 13 January 2014 at 20:48:11 UTC, Jesse Phillips wrote:I have a pre-built sqlite3 object file which I'd like to include as part of the linking for the final executable. I have been unable to find a way to do this with dub. I have attempted adding: "sourceFiles": ["csqlite3.obj"],Utilizing sourceFiles works in 0.9.20 and newer.
Jan 14 2014