[maemo-developers] [maemo-developers] A set of development questions...
From: Simon Budig simon at budig.deDate: Tue Jan 24 23:32:44 EET 2006
- Previous message: [maemo-developers] A set of development questions...
- Next message: [maemo-developers] A set of development questions...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Tomi Ollila (tomi.ollila at guru.guru-group.fi) wrote: > 3 Is there a compiler define that can be used in code to conditionally > compile code when targeting for 770 (and some other code when not for 770). > Currently I use the following kludgy hack: > > test -f /etc/init.d/maemo-launcher && XD=-DM4EM0 || XD= > > and then use $XD in gcc command line. I use my configure script to check for the presence of the hildon libraries. Put this in your configure.ac: PKG_CHECK_MODULES(HILDON, hildon-lgpl, [ AC_DEFINE(HILDON) AC_SUBST(HILDON_LIBS) AC_SUBST(HILDON_CFLAGS)], AC_MSG_RESULT([no])) Then you can #ifdef HILDON your C-code. Hope this helps, Simon -- simon at budig.de http://simon.budig.de/
- Previous message: [maemo-developers] A set of development questions...
- Next message: [maemo-developers] A set of development questions...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]