pgadmin4/runtime/pgAdmin4.pro
Dave Page 38ff104cb9 Add a very experimental QT based runtime for pgAdmin 4.
This runtime implements a brower control with embedded Python
interpretor. The Python interpretor runs a simple script at
startup to generate some HTML that is displayed in the browser.
Arbitrary URLs can be opened from the "Open URL" option on the
File menu.
2013-06-16 14:17:46 +01:00

25 lines
736 B
Prolog

# Configure QT modules for the appropriate version of QT
greaterThan(QT_MAJOR_VERSION, 4) {
message(Building for QT5+...)
QT += webkitwidgets network widgets
} else {
message(Building for QT4...)
QT += webkit network
}
# Find and configure Python
!system(which python-config > /dev/null 2>&1) {
error(The python-config executable could not be found. Ensure Python is installed and in the system path.)
}
QMAKE_CXXFLAGS += $$system(python-config --includes)
QMAKE_LFLAGS += $$system(python-config --ldflags)
# Source code
HEADERS = BrowserWindow.h
SOURCES = pgAdmin4.cpp \
BrowserWindow.cpp
FORMS = BrowserWindow.ui
ICON = pgAdmin4.icns
QMAKE_INFO_PLIST = Info.plist