Changes between Version 34 and Version 35 of Developing your own applications


Ignore:
Timestamp:
01/11/11 19:00:25 (3 years ago)
Author:
Ben
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Developing your own applications

    v34 v35  
    2727 
    2828=== 3. Set up autotools === 
    29 Create a file called '''configure.in''' and insert the following text: 
    30 {{{ 
    31 AC_INIT(emtooth2, 0.1, pespin.shar@gmail.com) 
    32 AC_PREREQ(2.52) 
    33 AC_CONFIG_SRCDIR(configure.in) 
    34  
    35 AM_INIT_AUTOMAKE(1.11 dist-bzip2) 
    36 AM_CONFIG_HEADER(config.h) 
    37  
    38 AC_C_BIGENDIAN 
    39 AC_ISC_POSIX 
    40 AC_PROG_CC 
    41 AM_PROG_CC_STDC 
    42 AC_HEADER_STDC 
    43 AC_C_CONST 
    44  
    45 AM_PROG_VALAC ([0.11.3]) 
    46  
    47 EMTOOTH2_PACKAGES="--pkg gio-2.0 --pkg eina --pkg evas --pkg ecore --pkg elm" 
    48  
    49 PKG_CHECK_MODULES(EMTOOTH2, glib-2.0 >= 2.26.1 
    50 gobject-2.0 
    51 gio-2.0 
    52 dbus-glib-1 
    53 elementary 
    54 eina 
    55 dbus-1) 
    56  
    57 AC_SUBST(EMTOOTH2_LIBS) 
    58 AC_SUBST(EMTOOTH2_CFLAGS) 
    59 AC_SUBST(EMTOOTH2_PACKAGES) 
    60  
    61  
    62 EMTOOTH2_VALAFLAGS="" 
    63  
    64  
    65  
    66 AC_ARG_ENABLE([fso], 
    67 [AC_HELP_STRING([--enable-fso], [enable FSO support])], 
    68 [ 
    69 if test "x${enableval}" = "xyes" ; then 
    70 enable_fso="yes" 
    71 else 
    72 enable_fso="no" 
    73 fi 
    74 ], 
    75 [enable_fso="no"]) 
    76  
    77  
    78 EMTOOTH2_VALAFLAGS="" 
    79 if test "x$enable_fso" = "xyes" ; then 
    80 echo "ADDING FSO SUPPORT FOR THIS BUILD..." 
    81 EMTOOTH2_VALAFLAGS="--define=_FSO_" 
    82 fi 
    83 AC_SUBST(EMTOOTH2_VALAFLAGS) 
    84  
    85 AC_OUTPUT(Makefile) 
    86  
    87  
    88 }}} 
    89  
    90 Create a file called '''Makefile.am''' and insert the following text: 
    91 {{{ 
    92 AUTOMAKE_OPTIONS     = 1.4 foreign 
    93 MAINTAINERCLEANFILES = Makefile.in 
    94  
    95 INCLUDES = -I$(top_srcdir) @EMTOOTH2_CFLAGS@ 
    96  
    97 bin_PROGRAMS      = emtooth2 
    98  
    99 emtooth2_SOURCES = \ 
    100         src/main.vala \ 
    101         src/shared.vala \ 
    102         src/fso.vala \ 
    103         src/bluez_adapter.vala \ 
    104         src/bluez_rdevice.vala \ 
    105         src/bluez_agent.vala \ 
    106         src/gui_main.vala \ 
    107         src/gui_settings.vala \ 
    108         src/gui_rdevice.vala \ 
    109         src/org-bluez.vala 
    110          
    111 emtooth2_LDADD = @EMTOOTH2_LIBS@ 
    112 emtooth2_CFLAGS = 
    113 VALAFLAGS = @EMTOOTH2_PACKAGES@ @EMTOOTH2_VALAFLAGS@ 
    114  
    115 desktopdir = $(datadir)/applications 
    116 desktop_DATA = data/emtooth2.desktop 
    117  
    118 pixmapsdir = $(datadir)/pixmaps 
    119 pixmaps_DATA =  data/emtooth2.png 
    120 }}} 
    121  
    12229 
    12330=== 4. Add a bitbake recipe ===