From c33d6a290c41565f07ac452bc32543cad8de151e Mon Sep 17 00:00:00 2001 From: Anatoly Mihalchenko Date: Mon, 5 Sep 2011 11:21:33 +0300 Subject: [PATCH] Adopt for linix-g++ spec --- Sankore_3.1.pro | 19 ++++++++++++++++++- src/desktop/desktop.pri | 1 + src/frameworks/frameworks.pri | 7 ++++++- src/gui/gui.pri | 5 +++++ src/pdf-merger/pdfMerger.pri | 7 ++++++- 5 files changed, 36 insertions(+), 3 deletions(-) diff --git a/Sankore_3.1.pro b/Sankore_3.1.pro index b10b733f..273cc9e8 100644 --- a/Sankore_3.1.pro +++ b/Sankore_3.1.pro @@ -86,6 +86,7 @@ BUILD_DIR = build macx:BUILD_DIR = $$BUILD_DIR/macx win32:BUILD_DIR = $$BUILD_DIR/win32 linux-g++:BUILD_DIR = $$BUILD_DIR/linux +linux-g++-32:BUILD_DIR = $$BUILD_DIR/linux linux-g++-64:BUILD_DIR = $$BUILD_DIR/linux CONFIG(debug, debug|release):BUILD_DIR = $$BUILD_DIR/debug @@ -109,7 +110,7 @@ win32 { QMAKE_CXXFLAGS_RELEASE += /Od \ /Zi QMAKE_LFLAGS_RELEASE += /DEBUG - UB_LIBRARY.path = $$DESTDIR + UB_LIBRARY.path = DESTDIR UB_I18N.path = $$DESTDIR/i18n UB_ETC.path = $$DESTDIR UB_THIRDPARTY_INTERACTIVE.path = $$DESTDIR/library @@ -117,6 +118,7 @@ win32 { system(echo "$$VERSION" > $$BUILD_DIR/version) system(echo "$$LONG_VERSION" > $$BUILD_DIR/longversion) system(echo "$$SVN_VERSION" > $$BUILD_DIR/svnversion) + } macx { @@ -323,6 +325,21 @@ linux-g++ { system(echo "$$SVN_VERSION" > $$BUILD_DIR/svnversion) } +linux-g++-32 { + LIBS += -lcrypto + QMAKE_CFLAGS += -fopenmp + QMAKE_CXXFLAGS += -fopenmp + QMAKE_LFLAGS += -fopenmp + UB_LIBRARY.path = $$DESTDIR + UB_I18N.path = $$DESTDIR/i18n + UB_ETC.path = $$DESTDIR + UB_THIRDPARTY_INTERACTIVE.path = $$DESTDIR/library + system(mkdir -p $$BUILD_DIR) + system(echo "$$VERSION" > $$BUILD_DIR/version) + system(echo "$$LONG_VERSION" > $$BUILD_DIR/longversion) + system(echo "$$SVN_VERSION" > $$BUILD_DIR/svnversion) +} + linux-g++-64 { LIBS += -lcrypto QMAKE_CFLAGS += -fopenmp diff --git a/src/desktop/desktop.pri b/src/desktop/desktop.pri index 390a2df6..eda60eb0 100644 --- a/src/desktop/desktop.pri +++ b/src/desktop/desktop.pri @@ -24,3 +24,4 @@ win32 { macx:SOURCES += src/desktop/UBWindowCapture_mac.mm linux-g++:SOURCES += src/desktop/UBWindowCapture_linux.cpp +linux-g++-32:SOURCES += src/desktop/UBWindowCapture_linux.cpp diff --git a/src/frameworks/frameworks.pri b/src/frameworks/frameworks.pri index a706ff93..e38a9aa1 100644 --- a/src/frameworks/frameworks.pri +++ b/src/frameworks/frameworks.pri @@ -38,4 +38,9 @@ linux-g++ { SOURCES += src/frameworks/UBPlatformUtils_linux.cpp \ src/frameworks/UBDesktopServices_linux.cpp -} \ No newline at end of file +} +linux-g++-32 { + + SOURCES += src/frameworks/UBPlatformUtils_linux.cpp \ + src/frameworks/UBDesktopServices_linux.cpp +} diff --git a/src/gui/gui.pri b/src/gui/gui.pri index 6d933785..530421d1 100644 --- a/src/gui/gui.pri +++ b/src/gui/gui.pri @@ -108,3 +108,8 @@ linux-g++ { SOURCES += src/gui/UBKeyboardPalette_linux.cpp } + +linux-g++-32 { + + SOURCES += src/gui/UBKeyboardPalette_linux.cpp +} diff --git a/src/pdf-merger/pdfMerger.pri b/src/pdf-merger/pdfMerger.pri index 2617a624..c976b39d 100644 --- a/src/pdf-merger/pdfMerger.pri +++ b/src/pdf-merger/pdfMerger.pri @@ -72,4 +72,9 @@ linux-g++ { LIBS += -lz -} \ No newline at end of file +} +linux-g++-32 { + + LIBS += -lz + +}