digitalmars.D.learn - How to pass -J switch to compiler via DUB?
- Andrey (8/9) Nov 30 2018 Hi,
- rikki cattermole (2/13) Nov 30 2018 stringImportPaths
- fghost (3/12) Nov 30 2018 The -J switch takes a directory path, not path to the file
- Andrey (2/16) Nov 30 2018 Thanks to all.
Hi, How to pass -J switch to compiler via DUB? I want to import some text file at compile time:string data = import("vertex.glsl");In dub.json: "dflags": [ "-J=vertex.glsl" ] The file itself is located on the same level as "dub.json".
Nov 30 2018
On 01/12/2018 12:05 AM, Andrey wrote:Hi, How to pass -J switch to compiler via DUB? I want to import some text file at compile time:stringImportPathsstring data = import("vertex.glsl");In dub.json: "dflags": [ "-J=vertex.glsl" ] The file itself is located on the same level as "dub.json".
Nov 30 2018
On Friday, 30 November 2018 at 11:05:26 UTC, Andrey wrote:Hi, How to pass -J switch to compiler via DUB? I want to import some text file at compile time:The -J switch takes a directory path, not path to the file directly.string data = import("vertex.glsl");In dub.json: "dflags": [ "-J=vertex.glsl" ] The file itself is located on the same level as "dub.json".
Nov 30 2018
On Friday, 30 November 2018 at 11:21:04 UTC, fghost wrote:On Friday, 30 November 2018 at 11:05:26 UTC, Andrey wrote:Thanks to all.Hi, How to pass -J switch to compiler via DUB? I want to import some text file at compile time:The -J switch takes a directory path, not path to the file directly.string data = import("vertex.glsl");In dub.json: "dflags": [ "-J=vertex.glsl" ] The file itself is located on the same level as "dub.json".
Nov 30 2018