1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2025-10-16 07:28:25 +02:00

building on CentOS5.2 Using "CONFIG += dbus" in .pro files including configure test; workaround breaks on centos and is hard to fix and maintain. If CONFIG construct does not work on some old Linuxes , then there will be no fwbtransfer support

This commit is contained in:
Vadim Kurland 2009-11-19 01:55:30 +00:00
parent b4f7d093cf
commit 22ca82900a
5 changed files with 26 additions and 29 deletions

View File

@ -1 +1 @@
#define BUILD_NUM 1819
#define BUILD_NUM 1820

View File

@ -1,13 +1,10 @@
# -*- mode: makefile; tab-width: 4; -*-
TEMPLATE = app
unix {
macx {
LIBS += -framework QtDBus
}
!macx {
# workaround for QT += dbus not working atm
LIBS += -lQtDBus
}
!macx: QT += network dbus
macx: LIBS += -framework QtDBus
}
SOURCES = qtdbus_test.cpp
TARGET = qtdbus_test

View File

@ -115,12 +115,14 @@ bool ProjectPanel::event(QEvent *event)
return true;
case OBJECT_NAME_CHANGED_EVENT:
{
objectNameChangedEvent *name_change_event =
dynamic_cast<objectNameChangedEvent*>(event);
// This performs automatic renaming of child objects if necessary
m_panel->om->updateObjName(obj, name_change_event->old_name, true);
ev->accept();
return true;
}
case UPDATE_LAST_COMPILED_TIMESTAMP_EVENT:
if (Firewall::cast(obj))

View File

@ -4,16 +4,10 @@ TEMPLATE = app
LANGUAGE = C++
QT += network
# this should work, but it does not with 4.3.5, workaround below
# QT += network dbus
TARGET = fwbuilder
include(../../qmake.inc)
exists(qmake.inc):include( qmake.inc)
contains( HAVE_QTDBUS, 1 ):unix {
macx:LIBS += -framework \
QtDBus
!macx:LIBS += -lQtDBus # workaround for QT += dbus not working atm
}
# This makes gcc compile this header file and store result in
# .obj/fwbuilder.gch/c++. Generated Makefile will also add
@ -425,18 +419,28 @@ FORMS = FWBMainWindow_q.ui \
InterfaceEditorWidget.ui \
InterfacesTabWidget.ui
# fwtransfer stuff
# fwtransfer stuff.
HEADERS += transferDialog.h
SOURCES += transferDialog.cpp
FORMS += transferdialog_q.ui
contains( HAVE_ANTLR_RUNTIME, 1 ) {
INCLUDEPATH += $$ANTLR_INCLUDEPATH
LIBS += $$FWBPARSER_LIB \
$$ANTLR_LIBS \
$$FWTRANSFER_LIB
LIBS += $$FWBPARSER_LIB $$ANTLR_LIBS
DEFINES += $$ANTLR_DEFINES
}
LIBS += $$LIBS_FWCOMPILER
# fwtransfer lib. Add this before adding -lQtDBus to LIBS below
LIBS += $$FWTRANSFER_LIB
contains( HAVE_QTDBUS, 1 ):unix {
!macx: QT += network dbus
macx: LIBS += -framework QtDBus
#!macx:LIBS += -lQtDBus # workaround for QT += dbus not working with Qt < 4.4.0
}
INCLUDEPATH += ../iptlib \
../pflib \
../cisco_lib/ \

View File

@ -7,16 +7,10 @@ SOURCES = transfer_secuwall.cpp
HEADERS = ../../../config.h
contains( HAVE_QTDBUS, 1 ) {
unix {
macx {
LIBS += -framework QtDBus
}
!macx {
# workaround for QT += dbus not working atm
LIBS += -lQtDBus
}
}
contains( HAVE_QTDBUS, 1 ):unix {
!macx: QT += network dbus
macx: LIBS += -framework QtDBus
#!macx:LIBS += -lQtDBus # workaround for QT += dbus not working with Qt < 4.4.0
}
!win32 {