QT += core gui widgets printsupport QT += svg TEMPLATE = app CONFIG += app_bundle CONFIG += c++11 TRANSLATIONS = ./langs/en.ts \ ./langs/en_GB.ts \ ./langs/ru.ts \ ./langs/de.ts \ ./langs/es.ts \ ./langs/cs.ts \ ./langs/sk.ts \ ./langs/fr.ts \ ./langs/pt_BR.ts \ ./langs/it_IT.ts \ ./langs/zh_CN.ts \ ./langs/pl.ts \ ./langs/be.ts \ ./langs/bg.ts \ ./langs/ca.ts \ ./langs/da.ts \ ./langs/el_GR.ts \ ./langs/et.ts \ ./langs/fi.ts \ ./langs/ga.ts \ ./langs/gl.ts \ ./langs/he.ts \ ./langs/hi.ts \ ./langs/hr.ts \ ./langs/hu.ts \ ./langs/hy.ts \ ./langs/id.ts \ ./langs/ja.ts \ ./langs/ko.ts \ ./langs/lo.ts \ ./langs/lt.ts \ ./langs/lv.ts \ ./langs/nl.ts \ ./langs/no.ts \ ./langs/pt_PT.ts \ ./langs/ro.ts \ ./langs/sl.ts \ ./langs/sq.ts \ ./langs/sv.ts \ ./langs/tr.ts \ ./langs/uk.ts \ ./langs/ur.ts \ ./langs/vi.ts \ ./langs/be.ts \ ./langs/zh_TW.ts \ ./langs/si.ts \ ./langs/ar_SA.ts \ ./langs/sr_Latn_RS.ts \ ./langs/sr_Cyrl_RS.ts CORE_ROOT_DIR = $$PWD/../../core BASEEDITORS_PATH = $$PWD/../../desktop-sdk/ChromiumBasedEditors CORE_3DPARTY_PATH = $$PWD/../../core/Common/3dParty CONFIG += core_no_dst include($$CORE_ROOT_DIR/Common/base.pri) core_windows { DEFINES -= WIN32_LEAN_AND_MEAN } INCLUDEPATH += \ $$BASEEDITORS_PATH/lib/include \ $$BASEEDITORS_PATH/lib/qt_wrapper/include \ $$CORE_ROOT_DIR/DesktopEditor \ $$CORE_ROOT_DIR/Common \ $$PWD/src HEADERS += \ $$PWD/src/windows/cmainwindow.h \ $$PWD/src/windows/cwindowbase.h \ $$PWD/src/windows/ceditorwindow.h \ $$PWD/src/windows/ceditorwindow_p.h \ $$PWD/src/windows/cpresenterwindow.h \ $$PWD/src/components/asctabwidget.h \ $$PWD/src/components/cdownloadwidget.h \ $$PWD/src/components/cpushbutton.h \ $$PWD/src/components/cfiledialog.h \ $$PWD/src/components/cprintprogress.h \ $$PWD/src/components/ctabbar.h \ $$PWD/src/components/cmessage.h \ $$PWD/src/components/canimatedicon.h \ $$PWD/src/components/ctabpanel.h \ $$PWD/src/components/csvgpushbutton.h \ $$PWD/src/components/celipsislabel.h \ $$PWD/src/components/cfullscrwidget.h \ $$PWD/src/components/cprintdialog.h \ $$PWD/src/components/ctooltip.h \ $$PWD/src/components/cmenu.h \ $$PWD/src/version.h \ $$PWD/src/defines.h \ $$PWD/src/ccefeventstransformer.h \ $$PWD/src/cascapplicationmanagerwrapper.h \ $$PWD/src/cascapplicationmanagerwrapper_private.h \ $$PWD/src/casctabdata.h \ $$PWD/src/utils.h \ $$PWD/src/chelp.h \ $$PWD/src/cfilechecker.h \ $$PWD/src/clogger.h \ $$PWD/src/clangater.h \ $$PWD/src/cprintdata.h \ $$PWD/src/cproviders.h \ $$PWD/src/cscalingwrapper.h \ $$PWD/src/ctabundockevent.h \ $$PWD/src/ccefeventsgate.h \ $$PWD/src/ceditortools.h \ $$PWD/src/cwindowsqueue.h \ $$PWD/src/ceventdriver.h \ $$PWD/src/cappeventfilter.h \ $$PWD/src/iconfactory.h \ $$PWD/src/cthemes.h SOURCES += \ $$PWD/src/windows/cmainwindow.cpp \ $$PWD/src/windows/cwindowbase.cpp \ $$PWD/src/windows/ceditorwindow.cpp \ $$PWD/src/windows/cpresenterwindow.cpp \ $$PWD/src/components/asctabwidget.cpp\ $$PWD/src/components/cdownloadwidget.cpp \ $$PWD/src/components/cpushbutton.cpp \ $$PWD/src/components/cfiledialog.cpp \ $$PWD/src/components/cprintprogress.cpp \ $$PWD/src/components/ctabbar.cpp \ $$PWD/src/components/cmessage.cpp \ $$PWD/src/components/canimatedicon.cpp \ $$PWD/src/components/ctabpanel.cpp \ $$PWD/src/components/csvgpushbutton.cpp \ $$PWD/src/components/celipsislabel.cpp \ $$PWD/src/components/cfullscrwidget.cpp \ $$PWD/src/components/cprintdialog.cpp \ $$PWD/src/components/ctooltip.cpp \ $$PWD/src/components/cmenu.cpp \ $$PWD/src/main.cpp \ $$PWD/src/ccefeventstransformer.cpp \ $$PWD/src/cascapplicationmanagerwrapper.cpp \ $$PWD/src/casctabdata.cpp \ $$PWD/src/utils.cpp \ $$PWD/src/chelp.cpp \ $$PWD/src/cfilechecker.cpp \ $$PWD/src/clogger.cpp \ $$PWD/src/clangater.cpp \ $$PWD/src/cprintdata.cpp \ $$PWD/src/cproviders.cpp \ $$PWD/src/cscalingwrapper.cpp \ $$PWD/src/ctabundockevent.cpp \ $$PWD/src/ccefeventsgate.cpp \ $$PWD/src/ceditortools.cpp \ $$PWD/src/ceventdriver.cpp \ $$PWD/src/cappeventfilter.cpp \ $$PWD/src/iconfactory.cpp \ $$PWD/src/cthemes.cpp updmodule:!build_xp { HEADERS += $$PWD/src/cupdatemanager.h SOURCES += $$PWD/src/cupdatemanager.cpp } RESOURCES += $$PWD/resources.qrc DEFINES += COPYRIGHT_YEAR=$${CURRENT_YEAR} isEqual(QT_MAJOR_VERSION, 5) { lessThan(QT_MINOR_VERSION, 10) { DEFINES += _QTVER_DOWNGRADE message("QTVER_DOWNGRADE") } } ENV_PRODUCT_VERSION = $$(PRODUCT_VERSION) !isEmpty(ENV_PRODUCT_VERSION) { FULL_PRODUCT_VERSION = $${ENV_PRODUCT_VERSION}.$$(BUILD_NUMBER) DEFINES += VER_PRODUCT_VERSION=$$FULL_PRODUCT_VERSION \ VER_PRODUCT_VERSION_COMMAS=$$replace(FULL_PRODUCT_VERSION, \., ",") } CMD_IN_HELP_URL = $$join(URL_WEBAPPS_HELP,,\\\",\\\") !isEmpty(CMD_IN_HELP_URL) { DEFINES += URL_WEBAPPS_HELP=$$CMD_IN_HELP_URL message(webapps help url: $$CMD_IN_HELP_URL) } else { message(no webapps help url found) } PLATFORM_BUILD=$$CORE_BUILDS_PLATFORM_PREFIX core_linux:LIBS += -Wl,-unresolved-symbols=ignore-in-shared-libs ADD_DEPENDENCY(PdfFile, DjVuFile, XpsFile, UnicodeConverter, hunspell, ooxmlsignature, kernel, kernel_network, graphics, ascdocumentscore, qtascdocumentscore) include($$CORE_ROOT_DIR/../desktop-sdk/ChromiumBasedEditors/videoplayerlib/videoplayerlib_deps.pri) core_linux { QT += network x11extras dbus QMAKE_LFLAGS += "-Wl,-rpath,\'\$$ORIGIN\'" QMAKE_LFLAGS += "-Wl,-rpath,\'\$$ORIGIN/converter\'" QMAKE_LFLAGS += -static-libstdc++ -static-libgcc INCLUDEPATH += $$PWD/extras/update-daemon/src/classes HEADERS += $$PWD/src/windows/platform_linux/cx11decoration.h \ #$$PWD/src/windows/platform_linux/gtk_addon.h \ $$PWD/src/windows/platform_linux/cwindowplatform.h \ $$PWD/src/components/cnotification.h \ $$PWD/src/platform_linux/cdialogopenssl.h \ $$PWD/src/platform_linux/cdialogcertificateinfo.h \ $$PWD/src/platform_linux/singleapplication.h \ $$PWD/src/platform_linux/xdgdesktopportal.h \ $$PWD/src/platform_linux/gtkfilechooser.h \ $$PWD/src/platform_linux/gtkprintdialog.h \ $$PWD/src/platform_linux/gtkutils.h \ $$PWD/src/platform_linux/xcbutils.h \ $$PWD/extras/update-daemon/src/classes/csocket.h SOURCES += $$PWD/src/windows/platform_linux/cx11decoration.cpp \ $$PWD/src/windows/platform_linux/cwindowplatform.cpp \ $$PWD/src/components/cnotification.cpp \ $$PWD/src/platform_linux/cdialogopenssl.cpp \ $$PWD/src/platform_linux/cdialogcertificateinfo.cpp \ $$PWD/src/platform_linux/singleapplication.cpp \ $$PWD/src/platform_linux/xdgdesktopportal.cpp \ $$PWD/src/platform_linux/gtkfilechooser.cpp \ $$PWD/src/platform_linux/gtkprintdialog.cpp \ $$PWD/src/platform_linux/gtkutils.cpp \ $$PWD/src/platform_linux/xcbutils.cpp \ $$PWD/extras/update-daemon/src/classes/csocket.cpp CONFIG += link_pkgconfig PKGCONFIG += glib-2.0 gtk+-3.0 atk gtk+-unix-print-3.0 xcb xext libnotify LIBS += -lX11 -lX11-xcb -lcups cef_version_107 { LIBS += $$PWD/../../build_tools/tools/linux/sysroot/ubuntu14/libdbus-1.so.3 } else { PKGCONFIG += dbus-1 } include($$CORE_3DPARTY_PATH/icu/icu.pri) DEFINES += DOCUMENTSCORE_OPENSSL_SUPPORT } core_windows { QT += printsupport-private DEFINES += Q_COMPILER_INITIALIZER_LISTS CONFIG -= embed_manifest_exe # RC_ICONS += ./res/icons/desktop_icons.ico HEADERS += $$PWD/src/windows/platform_win/cwindowplatform.h \ $$PWD/src/windows/platform_win/caption.h \ $$PWD/src/platform_win/singleapplication.h \ $$PWD/src/platform_win/association.h \ $$PWD/src/platform_win/filechooser.h \ $$PWD/src/platform_win/printdialog.h \ $$PWD/src/platform_win/resource.h SOURCES += $$PWD/src/windows/platform_win/cwindowplatform.cpp \ $$PWD/src/platform_win/singleapplication.cpp \ $$PWD/src/platform_win/association.cpp \ $$PWD/src/platform_win/filechooser.cpp \ $$PWD/src/platform_win/printdialog.cpp OTHER_FILES += $$PWD/res/manifest/DesktopEditors.exe.manifest updmodule:!build_xp { INCLUDEPATH += $$PWD/extras/update-daemon/src/classes HEADERS += $$PWD/extras/update-daemon/src/classes/csocket.h SOURCES += $$PWD/extras/update-daemon/src/classes/csocket.cpp } LIBS += -lwininet \ -ldnsapi \ -lversion \ -lmsimg32 \ -lws2_32 \ -lusp10 \ -lpsapi \ -ldbghelp \ -lwinmm \ -lshlwapi \ -lkernel32 \ -lgdi32 \ -lwinspool \ -lcomdlg32 \ -ladvapi32 \ -lshell32 \ -lole32 \ -loleaut32 \ -luser32 \ -luuid \ -lodbc32 \ -lodbccp32 \ -ldelayimp \ -lcredui \ -lnetapi32 \ -lcomctl32 \ -lnetapi32 \ -lrpcrt4 # -lOpenGL32 build_xp { DEFINES += __OS_WIN_XP } else { HEADERS += $$PWD/src/platform_win/wintoastlib.h \ $$PWD/src/components/cnotification.h SOURCES += $$PWD/src/platform_win/wintoastlib.cpp \ $$PWD/src/components/cnotification.cpp } } core_release:DESTDIR = $$DESTDIR/build core_debug:DESTDIR = $$DESTDIR/build/debug !isEmpty(OO_BUILD_BRANDING) { DESTDIR = $$DESTDIR/$$OO_BUILD_BRANDING } DESTDIR = $$DESTDIR/$$PLATFORM_BUILD build_xp { DESTDIR = $$DESTDIR/xp } exists($$PWD/../common/loginpage/deploy/noconnect.html) { RESOURCES += $$PWD/extras.qrc } OBJECTS_DIR = $$DESTDIR/obj MOC_DIR = $$DESTDIR/moc RCC_DIR = $$DESTDIR/rcc