Sadly, you will have to create a cbp with wx-config and all that stuff.
It's a real pity that the projects files can't be multi-platform (when using any library other than STL).
However I've been thinking, and it seems there isn't any easy solution for that. The main problem is the configure (and the detection of library/include paths) stuff.
pkg-config is a helper tool used when compiling applications and libraries. It helps you insert the correct compiler options on the command line so an application can use gcc -o test test.c `pkg-config --libs --cflags glib-2.0` for instance, rather than hard-coding values on where to find glib (or other libraries). It is language-agnostic, so it can be used for defining the location of documentation tools, for instance.
pkg-config works on multiple platforms: Linux and other UNIX-like operating systems, Mac OS X and Windows. It does not require anything but a reasonably well working C compiler and a C library
As you know, autofriends are not multiplatform (so in Windows they can be used only in a *nix like environment like msys/cygwin, which are very uncommon). But, they are very popular in linux land.Luckily, we have somebody working on autotools import now, so that will solve that issue. :)
really? who? :D nice to hearYou.
So I'm thinking if we can do a simple "configure"-like system [...]
Ok, I wanted to know if the idea was welcomed or not, so I could think next.
Just a side note: simple "configure"-like system idea is very very far away from autotools import idea.Well, in the other thread (out of which I only quoted two lines), you were referring to "Any project that uses a configure script in linux (SDL, GTK, wx, QT, etc), and even personal projects" and "the concept "./configure" in Windows".
This pretty much sounded like "autotools import" to me.
Personally, I was amazed then, and I still am, because I don't have even the faintest idea how one could implement such a thing.lol, neither I do. Parsing m4 in heavy cryptic 700KB configure scripts is something that we never live enough to see, probably. :lol:
I couldn't compile C::B on it yet (lot's of AngelScript errors, and it isn't #ifdef'ed...).
Here you go. Revision 1766.
Let us know of your progress :)
Just a question, why does angelscript deal with void* typecasting? O.o What dark and obscure magic does it use?
int is not long.
int on 64 bits platform is 32 bits if I remember well.
if(sizeof(long) != sizeof(void*))
cbThrow(_T("Doom is upon us, the evil seed of pointer hacks spreads. Run! Run!"));