Re: Converters available, e.g. SCons -> aap?
Bram Moolenaar <[email protected]> Thu, 08 Dec 2005 17:03:29 +0100
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
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 fil= e > in a special way. >=20 > Really, a-a-p does all the hard work already. In fact I think the onl= y > 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 librar= y > 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. =20 > > 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. > > =20 > > 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... >=20 > 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.=20 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! --=20 `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 ar= e forbidden to know," the end result is tyranny and oppression no matter h= ow holy the motives' -- Robert A Heinlein, "If this goes on --" /// Bram Moolenaar -- [email protected] -- 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 /= // ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick