Build infrastructure advice?

Dear all,

I’m looking for a way to build ATS2 sources. Among the contenders are the
following tools:

  1. ATS-CMake project (this needs some retrofitting to become ATS2-CMake,
    but is entirely doable in a day or so, due to compatibility between ATS1
    and ATS2 command-line tools)
  2. atsmake-pre.mk/atsmake-post.mk (available from $PATSHOME/share)

I don’t have many difficult requirements ATM. The ones I really care about
are:

  1. ability to build multiple targets (binaries/libs) in one script
  2. should work on Linux

Sadly, I couldn’t make ATS-CMake work on NixOS (seems like a purity issue,
– needs more investigation on my side). If anybody wants my patches to
ATS-CMake, just ask.

So, I went ahead with (2), but now I need multiple binaries (or multiple
makefiles, one per binary).

I guess we could create a project similar to GNUstep’s Make, which is
basically a library of commonly occurring project templates (in the form of
GNUmakefiles). I’m wondering what others think. I usually just copy-paste
what HX wrote (and this is probably what I will be doing again).

I gave SCons a try at the end of last year:

https://groups.google.com/forum/#!topicsearchin/ats-lang-users/scons/ats-lang-users/L9jbyYfx-_0

I feel that you can quickly (that is, in a day) get what you need with
SCons.On Sunday, April 5, 2015 at 11:33:28 AM UTC-4, Artyom Shalkhakov wrote:

Dear all,

I’m looking for a way to build ATS2 sources. Among the contenders are the
following tools:

  1. ATS-CMake project (this needs some retrofitting to become ATS2-CMake,
    but is entirely doable in a day or so, due to compatibility between ATS1
    and ATS2 command-line tools)
  2. atsmake-pre.mk/atsmake-post.mk (available from $PATSHOME/share)

I don’t have many difficult requirements ATM. The ones I really care about
are:

  1. ability to build multiple targets (binaries/libs) in one script
  2. should work on Linux

Sadly, I couldn’t make ATS-CMake work on NixOS (seems like a purity issue,
– needs more investigation on my side). If anybody wants my patches to
ATS-CMake, just ask.

So, I went ahead with (2), but now I need multiple binaries (or multiple
makefiles, one per binary).

I guess we could create a project similar to GNUstep’s Make, which is
basically a library of commonly occurring project templates (in the form of
GNUmakefiles). I’m wondering what others think. I usually just copy-paste
what HX wrote (and this is probably what I will be doing again).

I have not used it personally but I think it is worth looking at Rust’s
package manager Cargo for ideas : http://doc.crates.io/On Sunday, April 5, 2015 at 9:03:28 PM UTC+5:30, Artyom Shalkhakov wrote:

Dear all,

I’m looking for a way to build ATS2 sources. Among the contenders are the
following tools:

  1. ATS-CMake project (this needs some retrofitting to become ATS2-CMake,
    but is entirely doable in a day or so, due to compatibility between ATS1
    and ATS2 command-line tools)
  2. atsmake-pre.mk/atsmake-post.mk (available from $PATSHOME/share)

I don’t have many difficult requirements ATM. The ones I really care about
are:

  1. ability to build multiple targets (binaries/libs) in one script
  2. should work on Linux

Sadly, I couldn’t make ATS-CMake work on NixOS (seems like a purity issue,
– needs more investigation on my side). If anybody wants my patches to
ATS-CMake, just ask.

So, I went ahead with (2), but now I need multiple binaries (or multiple
makefiles, one per binary).

I guess we could create a project similar to GNUstep’s Make, which is
basically a library of commonly occurring project templates (in the form of
GNUmakefiles). I’m wondering what others think. I usually just copy-paste
what HX wrote (and this is probably what I will be doing again).