Spencer, Bob escreveu:
>
> Is there a way to setup configure.ac so that it automatically sets the
> USE_HILDON flag if building for LCIA? I know how to set up a
> configure.ac that will check for "--enable-hildon" flag, but for UME I
> thought I recall that if LCIA arch then always USE_HILDON. I don't know
> exactly how to do this or if we ever decided on a standard.
>
Hi Bob.
I usually add this rule to debian/rules
ifeq ($(DEB_BUILD_ARCH), lpia)
DEB_CONFIGURE_EXTRA_FLAGS = --enable-hildon
endif
Which causes the congiure be called with an extra --enable-hildon in
case the lpia arch is being build.
This, plus something like that in configure.ac or configure.in
hildon=false
HILDON_CFLAGS=""
HILDON_LIBS=""
AC_ARG_ENABLE(hildon,AS_HELP_STRING([--enable-hildon],[Turn on hildon
support]),[
if test "x$enableval" = "xyes"; then
hildon=true
PKG_CHECK_MODULES(HILDON,[hildon-1],
HAVE_HILDON=yes,HAVE_HILDON=no)
HILDON_CFLAGS="$HILDON_CFLAGS -DWITH_HILDON=1"
PACKAGE_CFLAGS="$PACKAGE_CFLAGS $HILDON_CFLAGS"
PACKAGE_LIBS="$PACKAGE_LIBS $HILDON_LIBS"
fi
])
Will enable a HAVE_HILDON flag you can test in building time to enable
or disable your changes for the lpia arch.
Check some of my sources. I've done all kinds of combinations using
autotools or just makefiles.
[]s
Adilson.
--
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile