On Sunday, 30 October 2022 at 13:38:23 UTC, Imperatorn wrote:
On Sunday, 30 October 2022 at 12:46:10 UTC, Carsten Schlote
wrote:
It turned out, that the required changes to add support for C
files in Dub are really small. So I added a PR
(https://github.com/dlang/dub/pull/2521). There is also
It turned out, that the required changes to add support for C
files in Dub are really small. So I added a PR
(https://github.com/dlang/dub/pull/2521). There is also some
other PR (https://github.com/dlang/dub/pull/2270) releated to C
file support in Dub.
With my PR (2521) applied I can now
On Friday, 28 October 2022 at 19:08:47 UTC, Steven Schveighoffer
wrote:
By default dub does not build C files (as evidenced by your
command line). It may not even let you I don't know, but try:
```json
"sourceFiles" : ["source/zstdc_binding.c"]
```
Ok, this works. So Dub is not picking any
On Friday, 28 October 2022 at 18:56:03 UTC, Imperatorn wrote:
Like schveiguy said, what's your build line? dmd should pick up
the file if the import has the same name as the file.
What do you mean with 'buildline'? The project is build with dub.
See previous posts with outputs from
On Friday, 28 October 2022 at 18:31:25 UTC, Steven Schveighoffer
wrote:
Are you passing the c file to the compiler? Also, you must be
using dmd for ImportC currently.
What is your build line?
```
$ cat dub.json
{
"authors": [
"Carsten Schlote"
],
On Friday, 28 October 2022 at 17:56:57 UTC, Imperatorn wrote:
On Friday, 28 October 2022 at 17:45:59 UTC, Carsten Schlote
wrote:
Hi,
I created a Dub project containing two files: app.d and
zstd_binding.c
[...]
Are you using DMD?
I'm using
```
$ dub --version
DUB version 1.29.2, built on
Hi,
I created a Dub project containing two files: app.d and
zstd_binding.c
```
$ cat source/zstd_binding.c
#include
#include
#include
void relatedCode(void)
{
printf("Hallo! This is some output from C code!\n");
}
```
and
```
$ cat source/app.d
import std.conv;
import std.stdio;
On Tuesday, 8 October 2019 at 10:00:00 UTC, Ron Tarrant wrote:
Today starts a new series on the Notebook widget. Over the next
few weeks, we'll dig in deep, looking at single-tab and
multiple-tab demos, customizing the look of the actual tabs,
adding and removing tabs... a whole ton of stuff.
On Saturday, 12 October 2019 at 11:37:12 UTC, Andre Pany wrote:
- With next Dub version, d-scanner is integrated. Just call dub
lint within your dub project folder. This also makes the CI use
case much greater.
Sound like the best solution. Using dub seems to be the best way
for build D
Hi,
many companies started to use CI pipelines, and as part of their
pipelines they introduced mandatory linting for source code.
There are tools for many languages, esp. for C/C++. These tools
usually return '0' on success, and something else on linting
errors. That is pretty much the
10 matches
Mail list logo