Changes between Version 30 and Version 31 of Developing your own applications


Ignore:
Timestamp:
01/11/11 18:46:15 (3 years ago)
Author:
Ben
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Developing your own applications

    v30 v31  
    2828=== 3. Set up autotools === 
    2929Create a file called '''configure.in''' and insert the following text: 
    30 {{{ 
    31 todo 
     30{{{AC_INIT(emtooth2, 0.1, pespin.shar@gmail.com) 
     31AC_PREREQ(2.52) 
     32AC_CONFIG_SRCDIR(configure.in) 
     33 
     34AM_INIT_AUTOMAKE(1.11 dist-bzip2) 
     35AM_CONFIG_HEADER(config.h) 
     36 
     37AC_C_BIGENDIAN 
     38AC_ISC_POSIX 
     39AC_PROG_CC 
     40AM_PROG_CC_STDC 
     41AC_HEADER_STDC 
     42AC_C_CONST 
     43 
     44AM_PROG_VALAC ([0.11.3]) 
     45 
     46EMTOOTH2_PACKAGES="--pkg gio-2.0 --pkg eina --pkg evas --pkg ecore --pkg elm" 
     47 
     48PKG_CHECK_MODULES(EMTOOTH2, glib-2.0 >= 2.26.1 
     49gobject-2.0 
     50gio-2.0 
     51dbus-glib-1 
     52elementary 
     53eina 
     54dbus-1) 
     55 
     56AC_SUBST(EMTOOTH2_LIBS) 
     57AC_SUBST(EMTOOTH2_CFLAGS) 
     58AC_SUBST(EMTOOTH2_PACKAGES) 
     59 
     60 
     61EMTOOTH2_VALAFLAGS="" 
     62 
     63 
     64 
     65AC_ARG_ENABLE([fso], 
     66[AC_HELP_STRING([--enable-fso], [enable FSO support])], 
     67[ 
     68if test "x${enableval}" = "xyes" ; then 
     69enable_fso="yes" 
     70else 
     71enable_fso="no" 
     72fi 
     73], 
     74[enable_fso="no"]) 
     75 
     76 
     77EMTOOTH2_VALAFLAGS="" 
     78if test "x$enable_fso" = "xyes" ; then 
     79echo "ADDING FSO SUPPORT FOR THIS BUILD..." 
     80EMTOOTH2_VALAFLAGS="--define=_FSO_" 
     81fi 
     82AC_SUBST(EMTOOTH2_VALAFLAGS) 
     83 
     84AC_OUTPUT(Makefile) 
     85 
     86 
    3287}}} 
    3388