mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 00:29:21 +00:00
Fix compilations issue with wizard (if not wanted)
This commit is contained in:
parent
5ad81af695
commit
d4ee76a065
5 changed files with 14 additions and 4 deletions
|
|
@ -145,7 +145,7 @@ AC_ARG_ENABLE(gtk_ui,
|
|||
esac],[gtk_ui=true])
|
||||
|
||||
if test "$gtk_ui" = "true" ; then
|
||||
PKG_CHECK_MODULES(LIBGTK, gtk+-2.0 >= 2.22.0 gthread-2.0)
|
||||
PKG_CHECK_MODULES(LIBGTK, gtk+-2.0 >= 2.18.0 gthread-2.0)
|
||||
if test "$enable_x11" = "false" ; then
|
||||
PKG_CHECK_MODULES(LIBGTKMAC,[ige-mac-integration >= 0.9.7 ])
|
||||
AC_DEFINE([HAVE_GTK_OSX],[1],[Defined when gtk osx is used])
|
||||
|
|
@ -417,6 +417,9 @@ PKG_CHECK_MODULES(LIBSOUP, [libsoup-2.4 >= 2.26],[build_wizard=true],foo=bar)
|
|||
AC_SUBST(LIBSOUP_CFLAGS)
|
||||
AC_SUBST(LIBSOUP_LIBS)
|
||||
AM_CONDITIONAL(BUILD_WIZARD, test x$build_wizard = xtrue)
|
||||
if test "$build_wizard" = "true" ; then
|
||||
AC_DEFINE( BUILD_WIZARD, 1, [Define if wizard enabled] )
|
||||
fi
|
||||
|
||||
##################################################
|
||||
# Stricter build options (after external packages)
|
||||
|
|
|
|||
|
|
@ -42,12 +42,15 @@ linphone_SOURCES= \
|
|||
update.c \
|
||||
buddylookup.c \
|
||||
utils.c \
|
||||
setupwizard.c\
|
||||
incall_view.c \
|
||||
loginframe.c \
|
||||
singleinstance.c \
|
||||
conference.c \
|
||||
linphone.h
|
||||
if BUILD_WIZARD
|
||||
linphone_SOURCES+= \
|
||||
setupwizard.c
|
||||
endif
|
||||
|
||||
linphone_LDADD=$(ORTP_LIBS) \
|
||||
$(MEDIASTREAMER_LIBS) \
|
||||
|
|
|
|||
|
|
@ -1586,12 +1586,14 @@ static void linphone_gtk_check_soundcards(){
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef BUILD_WIZARD
|
||||
// Display the account wizard
|
||||
void linphone_gtk_display_wizard() {
|
||||
if (the_wizard == NULL || !gtk_widget_get_visible(the_wizard)) { // Only one instance of the wizard at the same time
|
||||
the_wizard = linphone_gtk_create_assistant();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
static void linphone_gtk_quit(void){
|
||||
static gboolean quit_done=FALSE;
|
||||
|
|
@ -1737,10 +1739,12 @@ int main(int argc, char *argv[]){
|
|||
gtk_timeout_add(30,(GtkFunction)linphone_gtk_check_logs,(gpointer)NULL);
|
||||
linphone_gtk_init_main_window();
|
||||
|
||||
#ifdef BUILD_WIZARD
|
||||
// Veryfing if at least one sip account is configured. If not, show wizard
|
||||
if (linphone_core_get_proxy_config_list(linphone_gtk_get_core()) == NULL) {
|
||||
linphone_gtk_display_wizard();
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_GTK_OSX
|
||||
linphone_gtk_init_status_icon();
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit e25eb6683a0ae9933b59eb9023424e2333c5d236
|
||||
Subproject commit 902cd8d36daef0913ac235b283668e5b3dbda515
|
||||
2
oRTP
2
oRTP
|
|
@ -1 +1 @@
|
|||
Subproject commit d2e91c8d48077fc9ab811e417cb0264d405c982e
|
||||
Subproject commit d62fa221ed9d373427f1fda9bdbfc301f25a5141
|
||||
Loading…
Add table
Reference in a new issue