Thread overview | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
May 30, 2012 Build / Package system | ||||
---|---|---|---|---|
| ||||
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 Re: Build / Package system | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sputnik | 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 Re: Build / Package system | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sputnik | 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 Re: Build / Package system | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | 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 Re: Build / Package system | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sputnik | 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 Re: Build / Package system | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | 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 31, 2012 Re: Build / Package system | ||||
---|---|---|---|---|
| ||||
Posted in reply to Zardoz | 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 |
June 06, 2012 Re: Build / Package system | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sputnik | 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 |
July 25, 2013 Re: Build / Package system | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sputnik | 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.
CMakeD is actually just a bunch of CMake modules and very lightweight, it wouldn't be surprising if it still worked or required more than a few minor changes.
I've decided today to migrate my project from C++ to D after being annoyed by the lack of conditional evaluation of code in C++ and the opposition of the core designers of C++ to static if, so I will report later if CMakeD is still useable.
|
July 26, 2013 Re: Build / Package system | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sputnik | 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. There's dub: http://code.dlang.org/ https://github.com/rejectedsoftware/dub |
Copyright © 1999-2021 by the D Language Foundation