On Thursday, 23 January 2020 at 12:29:11 UTC, Ron Tarrant wrote:
On Thursday, 23 January 2020 at 08:33:39 UTC, Antonio Corbi wrote:

https://gitlab.com/amcorbi/dmaurerrose

I think this is somewhat related to what te OP was asking for.

I'm confused. I was the OP, so I'm not sure who you're referring to.

Ooops, sorry, my bad!


Assuming you are on GNU/Linux, a simple 'dub run' is all you have to do to make it compile and run.

On Windows, `dub run` yielded the following output:

Performing "debug" build using C:\D\dmd2\windows\bin\dmd.exe for x86_64. gtk-d:gtkd 3.9.0: target for configuration "library" is up to date. gtk-d:gstreamer 3.9.0: target for configuration "library" is up to date. gtk-d:peas 3.9.0: target for configuration "library" is up to date. gtk-d:sv 3.9.0: target for configuration "library" is up to date. gtk-d:vte 3.9.0: target for configuration "library" is up to date.
maurerrose-d ~master: building configuration "application"...
Running pre-build commands...
source/constants.d.in was unexpected at this time.
Command failed with exit code 1: if [ source/constants.d.in -nt source/constants.d ]; then sed -e 's#topdir#D:\temp\dmaurerrose-master#' source/constants.d.in > source/constants.d; fi


Yes, it uses 'sed' to get 'constants.d' from 'constants.d.in' at configuration time.

So you can write your own 'constants.d' with the appropiate values for UIDIR and DATADIR and delete/comment the the preBuildCommands in dub.sdl.

Hope this helps.
Antonio

Reply via email to