mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-26 02:30:21 -06:00
38ff104cb9
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.
25 lines
736 B
Prolog
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
|
|
|