digitalmars.D.learn - How to set include paths of a c source in dub when using importc
- Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= (6/6) Apr 13 These don't work for me:
- Richard (Rikki) Andrew Cattermole (4/14) Apr 13 Appears it hasn't been documented in new dub docs.
- Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= (3/17) Apr 13 thank you Rikki.
- Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= (6/20) Apr 13 Another question how can one define a preprocessor var for a c
- Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= (3/26) Apr 13 ohh I found it: -P
- Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= (6/35) Apr 13 no this does not work:
- Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= (4/24) Apr 13 The docs need an example. I was too stupid to figure this out
- Alex Bryan (2/2) Apr 16 If you're not using gdc exclusively, you'll want to take a look
- Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= (2/4) Apr 16 I knew there was something wrong there.
These don't work for me: "dflags": ["-Iinclude"] "importPaths": [ "include" ], The importc docs do not help either.
Apr 13
On 14/04/2024 8:59 AM, Ferhat Kurtulmuş wrote:These don't work for me: "dflags": ["-Iinclude"] "importPaths": [ "include" ], The importc docs do not help either.Appears it hasn't been documented in new dub docs. It is ``cSourcePaths`` and ``cImportPaths``. https://github.com/dlang/dub-docs/issues/91
Apr 13
On Saturday, 13 April 2024 at 21:21:24 UTC, Richard (Rikki) Andrew Cattermole wrote:On 14/04/2024 8:59 AM, Ferhat Kurtulmuş wrote:thank you Rikki.These don't work for me: "dflags": ["-Iinclude"] "importPaths": [ "include" ], The importc docs do not help either.Appears it hasn't been documented in new dub docs. It is ``cSourcePaths`` and ``cImportPaths``. https://github.com/dlang/dub-docs/issues/91
Apr 13
On Saturday, 13 April 2024 at 21:21:24 UTC, Richard (Rikki) Andrew Cattermole wrote:On 14/04/2024 8:59 AM, Ferhat Kurtulmuş wrote:Another question how can one define a preprocessor var for a c source from dub.json? for instance: c source has #ifdef ORT_DLL_IMPORT normally we do it like -D ORT_DLL_IMPORTThese don't work for me: "dflags": ["-Iinclude"] "importPaths": [ "include" ], The importc docs do not help either.Appears it hasn't been documented in new dub docs. It is ``cSourcePaths`` and ``cImportPaths``. https://github.com/dlang/dub-docs/issues/91
Apr 13
On Saturday, 13 April 2024 at 21:39:10 UTC, Ferhat Kurtulmuş wrote:On Saturday, 13 April 2024 at 21:21:24 UTC, Richard (Rikki) Andrew Cattermole wrote:ohh I found it: -POn 14/04/2024 8:59 AM, Ferhat Kurtulmuş wrote:Another question how can one define a preprocessor var for a c source from dub.json? for instance: c source has #ifdef ORT_DLL_IMPORT normally we do it like -D ORT_DLL_IMPORTThese don't work for me: "dflags": ["-Iinclude"] "importPaths": [ "include" ], The importc docs do not help either.Appears it hasn't been documented in new dub docs. It is ``cSourcePaths`` and ``cImportPaths``. https://github.com/dlang/dub-docs/issues/91
Apr 13
On Saturday, 13 April 2024 at 21:41:41 UTC, Ferhat Kurtulmuş wrote:On Saturday, 13 April 2024 at 21:39:10 UTC, Ferhat Kurtulmuş wrote:no this does not work: "dflags": ["-P=SOME_FLAG"], c1: fatal error C1083: Cannot open source file: 'SOME_FLAG': No such file or directoryOn Saturday, 13 April 2024 at 21:21:24 UTC, Richard (Rikki) Andrew Cattermole wrote:ohh I found it: -POn 14/04/2024 8:59 AM, Ferhat Kurtulmuş wrote:Another question how can one define a preprocessor var for a c source from dub.json? for instance: c source has #ifdef ORT_DLL_IMPORT normally we do it like -D ORT_DLL_IMPORTThese don't work for me: "dflags": ["-Iinclude"] "importPaths": [ "include" ], The importc docs do not help either.Appears it hasn't been documented in new dub docs. It is ``cSourcePaths`` and ``cImportPaths``. https://github.com/dlang/dub-docs/issues/91
Apr 13
On Saturday, 13 April 2024 at 22:00:16 UTC, Ferhat Kurtulmuş wrote:On Saturday, 13 April 2024 at 21:41:41 UTC, Ferhat Kurtulmuş wrote:The docs need an example. I was too stupid to figure this out quickly. "-P-DORT_DLL_IMPORT"On Saturday, 13 April 2024 at 21:39:10 UTC, Ferhat Kurtulmuş wrote:no this does not work: "dflags": ["-P=SOME_FLAG"], c1: fatal error C1083: Cannot open source file: 'SOME_FLAG': No such file or directoryOn Saturday, 13 April 2024 at 21:21:24 UTC, Richard (Rikki) Andrew Cattermole wrote:ohh I found it: -P[...]Another question how can one define a preprocessor var for a c source from dub.json? for instance: c source has #ifdef ORT_DLL_IMPORT normally we do it like -D ORT_DLL_IMPORT
Apr 13
If you're not using gdc exclusively, you'll want to take a look at this: https://github.com/dlang/dub/pull/2818
Apr 16
On Wednesday, 17 April 2024 at 00:40:28 UTC, Alex Bryan wrote:If you're not using gdc exclusively, you'll want to take a look at this: https://github.com/dlang/dub/pull/2818I knew there was something wrong there.
Apr 16