www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Build / Package system

reply "Sputnik" <sputnik gmail.com> writes:
There is a build and/or package managment system for D2 that is
working?
I googled, and I only can find things like dsss or cmaked that
don't get updated from a long time ago.

I really need to manage to get a project to compile in Windows
and Linux. Actually the code not have any OS dependence, so the
real diferences in each OS are the linking to gtkd and how and
where install the project. Actually I'm using a makfile in Linux
that works well, but I can't use it in windows for thing like
pkg-config.
May 30 2012
next sibling parent "Dejan Lekic" <dejan.lekic gmail.com> writes:
On Wednesday, 30 May 2012 at 08:13:34 UTC, Sputnik wrote:
 There is a build and/or package managment system for D2 that is
 working?
 I googled, and I only can find things like dsss or cmaked that
 don't get updated from a long time ago.

 I really need to manage to get a project to compile in Windows
 and Linux. Actually the code not have any OS dependence, so the
 real diferences in each OS are the linking to gtkd and how and
 where install the project. Actually I'm using a makfile in Linux
 that works well, but I can't use it in windows for thing like
 pkg-config.

You can. I use pkg-config on Windows inside the MSYS environment.
May 30 2012
prev sibling next sibling parent reply Jacob Carlborg <doob me.com> writes:
On 2012-05-30 10:13, Sputnik wrote:
 There is a build and/or package managment system for D2 that is
 working?
 I googled, and I only can find things like dsss or cmaked that
 don't get updated from a long time ago.

 I really need to manage to get a project to compile in Windows
 and Linux. Actually the code not have any OS dependence, so the
 real diferences in each OS are the linking to gtkd and how and
 where install the project. Actually I'm using a makfile in Linux
 that works well, but I can't use it in windows for thing like
 pkg-config.

You can get quite far buy using a shell script and rdmd for building applications: $ rdmd --build-only <options> main.d -- /Jacob Carlborg
May 30 2012
parent reply Jacob Carlborg <doob me.com> writes:
On 2012-05-30 20:53, Sputnik wrote:

 rdmd lloks to work well, escept for two things:

 1) I only can compile with dmd. What happend if I like to use gdc to
 compile ?

rdmd --compiler=<compiler>
 2) I need to put the same flags for linking and includes for gtkd that I
 use in the makefile. I like to have something more OS agnostic of say to
 the compiler/builder to include gtkd.

That would be nice to have. -- /Jacob Carlborg
May 30 2012
parent Jacob Carlborg <doob me.com> writes:
On 2012-05-31 00:23, Zardoz wrote:
 On Wednesday, 30 May 2012 at 19:12:06 UTC, Jacob Carlborg wrote:
 On 2012-05-30 20:53, Sputnik wrote:


 2) I need to put the same flags for linking and includes for gtkd that I
 use in the makefile. I like to have something more OS agnostic of say to
 the compiler/builder to include gtkd.

That would be nice to have.

I managed to doing something similar using git submodules

What I think he was saying was that he wants a cross-platform way of linking a library then compiling. -- /Jacob Carlborg
May 30 2012
prev sibling next sibling parent "Sputnik" <sputnik gmail.com> writes:
On Wednesday, 30 May 2012 at 13:06:40 UTC, Jacob Carlborg wrote:
 On 2012-05-30 10:13, Sputnik wrote:
 There is a build and/or package managment system for D2 that is
 working?
 I googled, and I only can find things like dsss or cmaked that
 don't get updated from a long time ago.

 I really need to manage to get a project to compile in Windows
 and Linux. Actually the code not have any OS dependence, so the
 real diferences in each OS are the linking to gtkd and how and
 where install the project. Actually I'm using a makfile in 
 Linux
 that works well, but I can't use it in windows for thing like
 pkg-config.

You can get quite far buy using a shell script and rdmd for building applications: $ rdmd --build-only <options> main.d

rdmd lloks to work well, escept for two things: 1) I only can compile with dmd. What happend if I like to use gdc to compile ? 2) I need to put the same flags for linking and includes for gtkd that I use in the makefile. I like to have something more OS agnostic of say to the compiler/builder to include gtkd.
May 30 2012
prev sibling next sibling parent "Zardoz" <luis.panadero gmail.com> writes:
On Wednesday, 30 May 2012 at 19:12:06 UTC, Jacob Carlborg wrote:
 On 2012-05-30 20:53, Sputnik wrote:

 rdmd lloks to work well, escept for two things:

 1) I only can compile with dmd. What happend if I like to use 
 gdc to
 compile ?

rdmd --compiler=<compiler>

Wops!
 2) I need to put the same flags for linking and includes for 
 gtkd that I
 use in the makefile. I like to have something more OS agnostic 
 of say to
 the compiler/builder to include gtkd.

That would be nice to have.

I managed to doing something similar using git submodules
May 30 2012
prev sibling parent bioinfornatics <bioinfornatics fedoraproject.org> writes:
They are dbuilder: https://github.com/organizations/dbuilder-developers
cross-platform
support both ldc2 / dmd / gdc
// build
install
config file for your project ...
not yet stable but it should works

any one are welcome to contribute
Jun 06 2012