From: Francesco M. <f18...@ya...> - 2006-01-19 18:15:03
|
Hi, k. holwerda ha scritto: > > > Francesco Montorsi wrote: > >> Hi all, >> >> I'm finally back from my last exams (crossing fingers waiting >> results :)) > > > Aah you mean that side job you have ;-) right ;) > maybe seperate includes and cflags. well, actually I think that we should not need to define any special symbol in cflags; as shown below, I think that just using a -I${includedir}/lua should work (as long as wxlua-based apps also include the `wx-config --cflags`!). Even if I think it's rather unprobable, in future some other flags which are not simple -I could be added as 'cflags', so I think it's best to add a variable like includepaths=-I${includedir}/lua that you will be able to retrieve as: pkg-config wxlua --variable=includepaths See http://www.ece.umr.edu/web-cgi/unixsoft.cgi?command=pkg-config for more info. > In cmake i have to decifer wx-config output a lot to make useable. > The more it is separated in useable parts the better it is. Yes, I understand; fortunately pkg-config is small but powerful ;) > A second thing is that on windows the solution is different (WXLUA var i > think). pkg-config also exists for windows. I've never tried it on win32, though. Also, I think that a WXLUA var should be enough there. (if I would use wxLua in a bakefile-based application I would add a WXLUA_DIR option which can be used by the user to specify wxLua location ). > I wonder if the wxlua.pc can contain more stuff, which is morer suitable > for other environments/build systems. > e.g. a list of libraries without -l in it and a libpath withput -L is > for me much more handy. sure, through --variable and -libs-only-L, --libs-only-l and maybe --msvc-syntax if you don't want the -l. > This looks interesting. Where is this file normally installed ? in /lib/pkgconfig or /usr/lib/pkgconfig or /usr/local/lib/pkgconfig depending on the prefix. pkgconfig searchs all of them. > Can it > be generated for Pc too? sorry, what do you mean by "Pc" here ? Francesco Montorsi ------------------ Homepage: http://home.tele2.it/f18m This is Linux country, on a quiet night you can hear NT Reboot. ------------------ |