Re: [gnome-love] Adding libraries to existing projects
- From: Adam Dingle <adam medovina org>
- To: Bogdan Ciobanu <bgdn ciobanu gmail com>
- Cc: gnome-love gnome org
- Subject: Re: [gnome-love] Adding libraries to existing projects
- Date: Tue, 02 Jul 2013 10:34:23 -0004
On Tue, Jul 2, 2013 at 5:54 AM, Bogdan Ciobanu <bgdn ciobanu gmail com> wrote:
Bogdan,
Like most GNOME programs, gnome-control-center uses GNU Autoconf and Automake to generate its configure script and makefiles. So you don't want to edit 'configure' or 'makefile' directly. Instead, you want to edit 'configure.ac' (the input to Autoconf) and/or Makefile.am (the input to Automake). The diagram on this Wikipedia page shows how these programs and files interact:
Note that some gnome-control-center panels already use libgoa, as you can see if you search for 'goa' in configure.ac in git master.
Probably you need to do the following:
1. Add a REST_REQUIRED_VERSION definition to configure.ac indicating the minimum version of librest that you require.
2. Update the PKG_CHECK_MODULES line in configure.ac for the panel you're developing so that it mentions both librest and libgoa.
That might be all. The line PKG_CHECK_MODULES(COLOR_PANEL, ...), for example, defines variables COLOR_PANEL_CFLAGS and COLOR_PANEL_LIBS which are then referenced in panels/color/Makefile.am. You probably won't need to change the Makefile.am for your panel since it refers to these _CFLAGS and _LIBS variables already.
Hope this helps -
adam
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]