Skip to content
Snippets Groups Projects
Commit 5fb27ebe authored by Julien Bonjean's avatar Julien Bonjean
Browse files

Refactoring - step 1

parent 402328e8
No related branches found
No related tags found
No related merge requests found
Showing
with 85 additions and 65 deletions
...@@ -83,7 +83,9 @@ libs/utilspp/functor/Makefile ...@@ -83,7 +83,9 @@ libs/utilspp/functor/Makefile
libs/utilspp/singleton/Makefile libs/utilspp/singleton/Makefile
sflphone-gtk/Makefile sflphone-gtk/Makefile
sflphone-gtk/src/Makefile sflphone-gtk/src/Makefile
sflphone-gtk/src/contactlist/Makefile sflphone-gtk/src/config/Makefile
sflphone-gtk/src/contacts/Makefile
sflphone-gtk/src/contacts/addressbook/Makefile
sflphone-gtk/pixmaps/Makefile sflphone-gtk/pixmaps/Makefile
......
...@@ -43,7 +43,9 @@ AC_SUBST(DEPS_LIBS) ...@@ -43,7 +43,9 @@ AC_SUBST(DEPS_LIBS)
AC_OUTPUT([ AC_OUTPUT([
Makefile Makefile
src/Makefile src/Makefile
src/contactlist/Makefile src/config/Makefile
src/contacts/Makefile
src/contacts/addressbook/Makefile
pixmaps/Makefile pixmaps/Makefile
sflphone.desktop sflphone.desktop
]) ])
......
# Global variables
src = $(top_srcdir)
# Preprocessor flags
AM_CPPFLAGS = $(DEPS_CFLAGS) \
-I$(src)/src \
-I$(src)/src/config \
-I$(src)/src/contacts \
-I$(src)/src/addressbook \
-DICONS_DIR=\""$(prefix)/share/sflphone"\" \
-DCODECS_DIR=\""$(prefix)/lib/sflphone/codecs"\"
-DPREFIX=\"$(prefix)\" \
$(ZEROCONFFLAGS) \
-DENABLE_TRACE
bin_PROGRAMS = sflphone-gtk include ../globals.mak
SUBDIRS=contactlist bin_PROGRAMS = sflphone-gtk
# noinst_LTLIBRARIES = libsflphonegtk.la SUBDIRS = config contacts
NOFIFY_LIBS = -lnotify NOFIFY_LIBS = -lnotify
SEXY_LIBS = -lsexy SEXY_LIBS = -lsexy
#if GTK_CHECK_VERSION(2,10,0) SFLPHONEGTK_LIBS=./contacts/libcontacts.la ./config/libconfig.la
STATUSICON_HEADER = statusicon.h
STATUSICON_SOURCE = statusicon.c
#elif
#STATUSICON_HEADER =
#STATUSICON_SOURCE =
#endif
sflphone_gtk_SOURCES = \ sflphone_gtk_SOURCES = \
main.c \ main.c \
...@@ -28,33 +22,25 @@ sflphone_gtk_SOURCES = \ ...@@ -28,33 +22,25 @@ sflphone_gtk_SOURCES = \
menus.c \ menus.c \
calltab.c \ calltab.c \
calltree.c \ calltree.c \
searchfilter.c \
actions.c \ actions.c \
configwindow.c \ configwindow.c \
accountlist.c \ accountlist.c \
accountwindow.c \ accountwindow.c \
marshaller.c \ marshaller.c \
sliders.c \ sliders.c \
$(STATUSICON_SOURCE) \ statusicon.c \
codeclist.c \ codeclist.c \
timestamp.c \ timestamp.c \
reqaccount.c \ reqaccount.c \
addressbook-config.c \
hooks-config.c hooks-config.c
noinst_HEADERS = actions.h dbus.h sflnotify.h mainwindow.h calllist.h dialpad.h audioconf.h codeclist.h assistant.h \ noinst_HEADERS = actions.h dbus.h sflnotify.h mainwindow.h calllist.h dialpad.h audioconf.h codeclist.h assistant.h \
callmanager-glue.h errors.h sflphone_const.h configurationmanager-glue.h instance-glue.h menus.h calltab.h calltree.h configwindow.h \ callmanager-glue.h errors.h sflphone_const.h configurationmanager-glue.h instance-glue.h menus.h calltab.h calltree.h configwindow.h \
accountlist.h accountwindow.h marshaller.h sliders.h $(STATUSICON_HEADER) timestamp.h searchfilter.h reqaccount.h addressbook-config.h hooks-config.h accountlist.h accountwindow.h marshaller.h sliders.h statusicon.h timestamp.h reqaccount.h hooks-config.h
EXTRA_DIST = marshaller.list EXTRA_DIST = marshaller.list
sflphone_gtk_LDADD = $(DEPS_LIBS) $(NOTIFY_LIBS) $(SEXY_LIBS) \ sflphone_gtk_LDADD = $(DEPS_LIBS) $(NOTIFY_LIBS) $(SEXY_LIBS) $(SFLPHONEGTK_LIBS)
./contactlist/libcontact.la
AM_CPPFLAGS = $(DEPS_CFLAGS) \
-DICONS_DIR=\""$(prefix)/share/sflphone"\" \
-DCODECS_DIR=\""$(prefix)/lib/sflphone/codecs"\"
# add symbolic link # add symbolic link
install-exec-local: install-exec-local:
......
...@@ -25,8 +25,8 @@ ...@@ -25,8 +25,8 @@
#include <menus.h> #include <menus.h>
#include <statusicon.h> #include <statusicon.h>
#include <calltab.h> #include <calltab.h>
#include <searchfilter.h> #include <contacts/searchfilter.h>
#include <contactlist/eds.h> #include <contacts/addressbook/eds.h>
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include <string.h> #include <string.h>
......
...@@ -27,10 +27,10 @@ ...@@ -27,10 +27,10 @@
#include <calllist.h> #include <calllist.h>
#include <calltab.h> #include <calltab.h>
#include <menus.h> #include <menus.h>
#include <searchfilter.h> #include <contacts/searchfilter.h>
#include <contacts/addressbook/eds.h>
#include <dbus.h> #include <dbus.h>
#include <contactlist/eds.h> #include <addressbook-config.h>
#include "addressbook-config.h"
GtkWidget * toolbar; GtkWidget * toolbar;
GtkToolItem * pickupButton; GtkToolItem * pickupButton;
......
include ../../globals.mak
noinst_LTLIBRARIES = libconfig.la
libconfig_la_SOURCES = addressbook-config.c
libconfig_la_LDFLAGS = @DEPS_LDFLAGS@
libconfig_la_CFLAGS = @DEPS_CFLAGS@
noinst_LTLIBRARIES = libcontact.la
libcontact_la_SOURCES = \
eds.c
libcontact_la_LDFLAGS=@DEPS_LDFLAGS@
libcontact_la_CFLAGS=@DEPS_CFLAGS@
Ref trac http://dev.savoirfairelinux.net/sflphone/report/3
* Ticket #163
* Ticket #164
* Ticket #165
* Ticket #166
include ../../globals.mak
SUBDIRS = addressbook
noinst_LTLIBRARIES = libcontacts.la
libcontacts_la_SOURCES = searchfilter.c
libcontacts_la_LDFLAGS = @DEPS_LDFLAGS@
libcontacts_la_CFLAGS = @DEPS_CFLAGS@
libcontacts_la_LIBADD = ./addressbook/libaddressbook.la
\ No newline at end of file
include ../../../globals.mak
noinst_LTLIBRARIES = libaddressbook.la
libaddressbook_la_SOURCES = eds.c
libaddressbook_la_LDFLAGS = @DEPS_LDFLAGS@
libaddressbook_la_CFLAGS = @DEPS_CFLAGS@
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include <searchfilter.h> #include <searchfilter.h>
#include <calltree.h> #include <calltree.h>
#include <contactlist/eds.h> #include <addressbook/eds.h>
#include "addressbook-config.h" #include "addressbook-config.h"
static void handler_async_search (GList *hits, gpointer user_data UNUSED); static void handler_async_search (GList *hits, gpointer user_data UNUSED);
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#include <mainwindow.h> #include <mainwindow.h>
#include <menus.h> #include <menus.h>
#include <sliders.h> #include <sliders.h>
#include <searchfilter.h> #include <contacts/searchfilter.h>
#include <assistant.h> #include <assistant.h>
#include <gtk/gtk.h> #include <gtk/gtk.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment