Ian Nelson wrote:
> I've attached my version.aap script. It's C/C++ specific, and it
> works on Linux and Mac OS X, I suspect it would work on Windows with
> cygwin but I don't have a machine to try it on. I guess there are a
> couple of ways to make it generic, it can support more programming
> technologies like Java, D, Ada, etc.. but being abstracted out that
> way. That's really easy though, that's just writing variables to a file
> in a special way.
> Really, a-a-p does all the hard work already. In fact I think the only
> thing that was missing (and I didn't look super hard at the time so it
> might be there) was the compiler versioning. I sample script library
> might be best right now.
Thanks for sharing your recipe. I think it functions as an example.
It's too specific to be used by others as-is, but it's easy to modify
and tune to ones needs.
We currently don't have a database for recipe examples. For now the
maillist archive can function as such. However, the subject line should
indicate a recipe is included, otherwise it would be hard to find.
> > I'm still struggling with one thing: For Vim I maintain a Makefile,
> > because that's what most people use. That means I need to maintain
> > two files. If installing Aap would not be required, then most
> > people would not need the Makefile. However, systems without Python
> > would not be supported then, that is still quite a restriction.
> > Ideally the Aap recipe would be converted into a C program. You can
> > then include that with the program and you would only need a C
> > compiler, which you need anyway. Now I only need something to
> > convert Python into C code...
> Python is starting to show up in more places, probably nowhere near as
> many as vim though. It's on phones and such now. That's a tough
> problem though. What are the more popular platform not with python?
I don't think the question is about popular platforms, the question is:
Is there any platform where one should be able to compile Vim and Python
is not available? You would still need a Makefile then.
MS-Windows is an example. Many people do have a C compiler but no
Python installed. Or it is there but it is not in $PATH. You could
install python there, of course, thus it's not really a problem.
Compare this with autoconf: The reason it produces a shell script is
that it will run anywhere. Well, on any kind of Unix at least.
> Boost supplies a build tool with their code, jam. You could almost
> do that. Or just announce that Make is being phased out and see if
> there are any takers to maintain it.
I could include Aap with Vim, it is 800 Kbyte (uncompressed). Adds
about 10% to the Vim source code.
> It's still my favorite tool that has come out in a long while, thanks
> for building it. I can't say that enough.
I'm glad you like it!
`When any government, or any church for that matter, undertakes to say to
its subjects, "This you may not read, this you must not see, this you are
forbidden to know," the end result is tyranny and oppression no matter how
holy the motives' -- Robert A Heinlein, "If this goes on --"
/// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://www.ICCF.nl ///