Including C sources in a DUB project
Alexander Zhirov
azhirov1991 at gmail.com
Mon May 9 09:17:06 UTC 2022
On Friday, 6 May 2022 at 11:31:27 UTC, Alexander Zhirov wrote:
> Does anyone have examples of such a configuration?
I managed to do it like this:
```js
{
"name": "app",
"authors": [
"Alexander Zhirov"
],
"description": "MyProgram",
"dflags": [
"-i"
],
"libs": [
"pq"
],
"preBuildCommands": [
"gcc -Os -c c/*.c -o obj/ip_addresses.o"
],
"sourceFiles": [
"obj/*.o"
]
}
```
More information about the Digitalmars-d-learn
mailing list