mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-20 18:27:16 +01:00
95 lines
2.6 KiB
Prolog
95 lines
2.6 KiB
Prolog
include(../../../../qmake.inc)
|
|
include(../gui_common.inc)
|
|
|
|
QT += testlib network gui
|
|
TARGET = IPServiceDialogTest
|
|
CONFIG += console
|
|
CONFIG -= app_bundle
|
|
TEMPLATE = app
|
|
SOURCES += main_IPServiceDialogTest.cpp \
|
|
IPServiceDialogTest.cpp
|
|
|
|
HEADERS += IPServiceDialogTest.h
|
|
|
|
CONFIG -= release
|
|
CONFIG += debug
|
|
LIBS += $$LIBS_FWCOMPILER $$LIBS_FWBUILDER $$CPPUNIT_LIBS
|
|
|
|
INCLUDEPATH += ../../.ui
|
|
INCLUDEPATH += ../../../compiler_lib
|
|
INCLUDEPATH += ../../../iptlib
|
|
INCLUDEPATH += ../../../.. \
|
|
../../../cisco_lib \
|
|
../../../pflib \
|
|
../../..
|
|
|
|
DEPENDPATH = ../../../common
|
|
|
|
!win32:LIBS += ../../../common/libcommon.a
|
|
!win32:PRE_TARGETDEPS = ../../../common/libcommon.a
|
|
|
|
win32:CONFIG += console
|
|
|
|
win32:LIBS += ../../../common/release/common.lib
|
|
win32:PRE_TARGETDEPS = ../../../common/release/common.lib
|
|
|
|
|
|
|
|
run_tests.commands = echo "Running tests..."; \
|
|
./${TARGET}
|
|
run_tests.depends = build_tests
|
|
build_tests.depends = all
|
|
clean_tests.depends = all
|
|
QMAKE_EXTRA_TARGETS += run_tests build_tests clean_tests
|
|
|
|
|
|
INCLUDEPATH += $$ANTLR_INCLUDEPATH
|
|
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
|
|
}
|
|
|
|
HEADERS += ../../transferDialog.h
|
|
SOURCES += ../../transferDialog.cpp
|
|
|
|
# !macx:LIBS += -lQtDBus # workaround for QT += dbus not working with Qt < 4.4.0
|
|
INCLUDEPATH += ../../../common \
|
|
../../../iptlib \
|
|
../../../pflib \
|
|
../../../cisco_lib/ \
|
|
../../../compiler_lib/
|
|
DEPENDPATH = ../../../common \
|
|
../../../iptlib \
|
|
../../../pflib \
|
|
../../../cisco_lib/ \
|
|
../../../compiler_lib
|
|
win32:LIBS += ../../../common/release/common.lib \
|
|
../../../iptlib/release/iptlib.lib \
|
|
../../../pflib/release/fwbpf.lib \
|
|
../../../cisco_lib/release/fwbcisco.lib \
|
|
../../../compiler_lib/release/compilerdriver.lib
|
|
!win32:LIBS += ../../../common/libcommon.a \
|
|
../../../iptlib/libiptlib.a \
|
|
../../../pflib/libfwbpf.a \
|
|
../../../cisco_lib/libfwbcisco.a \
|
|
../../../compiler_lib/libcompilerdriver.a
|
|
win32:PRE_TARGETDEPS = ../../../common/release/common.lib \
|
|
../../../iptlib/release/iptlib.lib \
|
|
../../../pflib/release/fwbpf.lib \
|
|
../../../cisco_lib/release/fwbcisco.lib \
|
|
../../../compiler_lib/release/compilerdriver.lib
|
|
!win32:PRE_TARGETDEPS = ../../../common/libcommon.a \
|
|
../../../iptlib/libiptlib.a \
|
|
../../../pflib/libfwbpf.a \
|
|
../../../cisco_lib/libfwbcisco.a \
|
|
../../../compiler_lib/libcompilerdriver.a
|