Commit eb4d10c7 authored by Oleg Korshul's avatar Oleg Korshul

static libs pro files change

parent 43a9a0e3
......@@ -127,3 +127,6 @@ core_debug {
plugin {
DESTDIR = $$CORE_BUILDS_LIBRARIES_PATH
}
staticlib {
DESTDIR = $$CORE_BUILDS_LIBRARIES_PATH
}
......@@ -9,41 +9,23 @@ DEFINES += \
MNG_STORE_CHUNKS\
MNG_ERROR_TELLTALE
linux-g++ | linux-g++-64 | linux-g++-32 {
core_linux {
DEFINES += \
HAVE_UNISTD_H \
LINUX \
_LINUX \
_LINUX_QT
CONFIG += c++11
QMAKE_CXXFLAGS += -Wno-narrowing
message(linux)
}
mac {
core_mac {
DEFINES += \
HAVE_UNISTD_H \
_LINUX \
_LINUX_QT \
_MAC \
QT_MAC
message(mac)
HAVE_UNISTD_H
}
win32 {
core_windows {
DEFINES += \
JAS_WIN_MSVC_BUILD \
WIN32 \
NOMINMAX
DEFINES -= UNICODE
QMAKE_CXXFLAGS_RELEASE -= -Zc:strictStrings
message(windows)
}
LIB_GRAPHICS_PRI_PATH = $$PWD/../../..
......@@ -56,7 +38,7 @@ INCLUDEPATH += \
$$LIB_GRAPHICS_PRI_PATH/cximage/png \
$$LIB_GRAPHICS_PRI_PATH/cximage/zlib
SOURCES += $$LIB_GRAPHICS_PRI_PATH/Qt_build/graphics/project/graphics_pri.cpp
SOURCES += $$PWD/graphics_pri.cpp
SOURCES += $$LIB_GRAPHICS_PRI_PATH/freetype-2.5.2/src/base/ftbbox.c \
$$LIB_GRAPHICS_PRI_PATH/freetype-2.5.2/src/base/ftgxval.c \
......
DESKTOPEDITOR_PATH = $$CORE_ROOT_DIR/DesktopEditor
DESKTOPEDITOR_PATH = $$PWD/../../..
DEFINES += \
_QT \
FT2_BUILD_LIBRARY
......
#-------------------------------------------------
#
# Project created by QtCreator 2015-01-19T10:22:14
#
#-------------------------------------------------
QT -= core
QT -= gui
......
......@@ -4,20 +4,6 @@ building_hunspell {
DEFINES += BUILDING_LIBHUNSPELL
}
linux-g++ | linux-g++-64 | linux-g++-32 {
message(linux)
}
mac {
message(mac)
}
win32 {
DEFINES += WIN32
DEFINES += _WIN32
message(windows)
}
INCLUDEPATH += \
$$PWD/../hunspell \
$$PWD/../win_api
......
......@@ -12,36 +12,9 @@ TEMPLATE = lib
CONFIG += staticlib
CONFIG += building_hunspell
include($$PWD/hunspell.pri)
############### destination path ###############
DESTINATION_SDK_PATH = $$PWD/../../../../build/lib
# WINDOWS
win32:contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_64/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_64
}
}
win32:!contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_32/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_32
}
}
CORE_ROOT_DIR = $$PWD/../../../..
PWD_ROOT_DIR = $$PWD
include($$CORE_ROOT_DIR/Common/base.pri)
linux-g++:contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_64
}
linux-g++:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
}
mac {
DESTDIR = $$DESTINATION_SDK_PATH/mac_64
}
include($$PWD/hunspell.pri)
################################################
DEFINES += HAVE_VA_COPY
INCLUDEPATH += \
$$CORE_ROOT_DIR/DesktopEditor/xml/libxml2/include \
$$CORE_ROOT_DIR/DesktopEditor/xml/libxml2/include/libxml \
$$CORE_ROOT_DIR/DesktopEditor/xml/build/qt
$$PWD/../../libxml2/include \
$$PWD/../../libxml2/include/libxml \
$$PWD
SOURCES += $$CORE_ROOT_DIR/DesktopEditor/xml/build/qt/libxml2_all.c
SOURCES += $$CORE_ROOT_DIR/DesktopEditor/xml/build/qt/libxml2_all2.c
SOURCES += $$PWD/libxml2_all.c
SOURCES += $$PWD/libxml2_all2.c
SOURCES += \
$$CORE_ROOT_DIR/DesktopEditor/xml/src/xmllight.cpp \
$$CORE_ROOT_DIR/DesktopEditor/xml/src/xmldom.cpp
$$PWD/../../src/xmllight.cpp \
$$PWD/../../src/xmldom.cpp
......@@ -9,123 +9,9 @@ QT -= core gui
TARGET = libxml
TEMPLATE = lib
CONFIG += staticlib
QMAKE_CXXFLAGS += -std=c++11 -Wall -g
DEFINES += HAVE_VA_COPY
QMAKE_CXXFLAGS += -Wall -g
CONFIG += c++11
############### destination path ###############
DESTINATION_SDK_PATH = $$PWD/../../../../build/lib
# WINDOWS
win32:contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_64/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_64
}
}
win32:!contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_32/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_32
}
}
linux-g++:contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_64
}
linux-g++:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
}
mac {
DESTDIR = $$DESTINATION_SDK_PATH/mac_64
}
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \
LINUX \
_LINUX
}
mac {
DEFINES += \
_LINUX \
_MAC \
MAC
}
win32 {
DEFINES += \
WIN32 \
_WIN32
}
################################################
INCLUDEPATH += \
../../libxml2/include \
../../libxml2/include/libxml
SOURCES += \
../../libxml2/buf.c \
../../libxml2/c14n.c \
../../libxml2/catalog.c \
../../libxml2/chvalid.c \
../../libxml2/debugXML.c \
../../libxml2/dict.c \
../../libxml2/DOCBparser.c \
../../libxml2/encoding.c \
../../libxml2/entities.c \
../../libxml2/error.c \
../../libxml2/globals.c \
../../libxml2/HTMLparser.c \
../../libxml2/HTMLtree.c \
../../libxml2/legacy.c \
../../libxml2/list.c \
../../libxml2/nanoftp.c \
../../libxml2/nanohttp.c \
../../libxml2/parser.c \
../../libxml2/pattern.c \
../../libxml2/relaxng.c \
../../libxml2/SAX.c \
../../libxml2/SAX2.c \
../../libxml2/schematron.c \
../../libxml2/threads.c \
../../libxml2/tree.c \
../../libxml2/uri.c \
../../libxml2/valid.c \
../../libxml2/xinclude.c \
../../libxml2/xlink.c \
../../libxml2/xmlIO.c \
../../libxml2/xmlmemory.c \
../../libxml2/xmlmodule.c \
../../libxml2/xmlreader.c \
../../libxml2/xmlregexp.c \
../../libxml2/xmlsave.c \
../../libxml2/xmlschemas.c \
../../libxml2/xmlschemastypes.c \
../../libxml2/xmlstring.c \
../../libxml2/xmlunicode.c \
../../libxml2/xmlwriter.c \
../../libxml2/xpath.c \
../../libxml2/xpointer.c \
../../libxml2/parserInternals.c \
../../libxml2/hash.c
SOURCES += \
../../src/xmllight.cpp \
../../src/xmldom.cpp
HEADERS += \
../XML/elfgcchack.h \
../XML/libxml.h \
unix {
target.path = /usr/lib
INSTALLS += target
}
CORE_ROOT_DIR = $$PWD/../../../..
PWD_ROOT_DIR = $$PWD
include(../../../../Common/base.pri)
include($$PWD/libxml2.pri)
......@@ -6,42 +6,40 @@ core_mac {
DEFINES += unix
}
SOURCES_UTILS = $$CORE_ROOT_DIR/OfficeUtils/src
build_zlib_as_sources {
DEFINES += BUILD_ZLIB_AS_SOURCES
}
INCLUDEPATH += \
$$SOURCES_UTILS/zlib-1.2.3/contrib/minizip \
$$SOURCES_UTILS/zlib-1.2.3
$$PWD/src/zlib-1.2.3/contrib/minizip \
$$PWD/src/zlib-1.2.3
SOURCES += \
$$SOURCES_UTILS/OfficeUtils.cpp \
$$SOURCES_UTILS/ZipUtilsCP.cpp \
$$SOURCES_UTILS/zlib-1.2.3/contrib/minizip/ioapi.c \
$$SOURCES_UTILS/zlib-1.2.3/contrib/minizip/miniunz.c \
$$SOURCES_UTILS/zlib-1.2.3/contrib/minizip/minizip.c \
$$SOURCES_UTILS/zlib-1.2.3/contrib/minizip/mztools.c \
$$SOURCES_UTILS/zlib-1.2.3/contrib/minizip/unzip.c \
$$SOURCES_UTILS/zlib-1.2.3/contrib/minizip/zip.c
$$PWD/src/OfficeUtils.cpp \
$$PWD/src/ZipUtilsCP.cpp \
$$PWD/src/zlib-1.2.3/contrib/minizip/ioapi.c \
$$PWD/src/zlib-1.2.3/contrib/minizip/miniunz.c \
$$PWD/src/zlib-1.2.3/contrib/minizip/minizip.c \
$$PWD/src/zlib-1.2.3/contrib/minizip/mztools.c \
$$PWD/src/zlib-1.2.3/contrib/minizip/unzip.c \
$$PWD/src/zlib-1.2.3/contrib/minizip/zip.c
build_all_zlib {
SOURCES += \
$$SOURCES_UTILS/zlib-1.2.3/adler32.c \
$$SOURCES_UTILS/zlib-1.2.3/compress.c \
$$SOURCES_UTILS/zlib-1.2.3/crc32.c \
$$SOURCES_UTILS/zlib-1.2.3/deflate.c \
$$SOURCES_UTILS/zlib-1.2.3/example.c \
$$SOURCES_UTILS/zlib-1.2.3/gzio.c \
$$SOURCES_UTILS/zlib-1.2.3/infback.c \
$$SOURCES_UTILS/zlib-1.2.3/inffast.c \
$$SOURCES_UTILS/zlib-1.2.3/inflate.c \
$$SOURCES_UTILS/zlib-1.2.3/inftrees.c \
$$SOURCES_UTILS/zlib-1.2.3/minigzip.c \
$$SOURCES_UTILS/zlib-1.2.3/trees.c \
$$SOURCES_UTILS/zlib-1.2.3/uncompr.c \
$$SOURCES_UTILS/zlib-1.2.3/zutil.c
$$PWD/src/zlib-1.2.3/adler32.c \
$$PWD/src/zlib-1.2.3/compress.c \
$$PWD/src/zlib-1.2.3/crc32.c \
$$PWD/src/zlib-1.2.3/deflate.c \
$$PWD/src/zlib-1.2.3/example.c \
$$PWD/src/zlib-1.2.3/gzio.c \
$$PWD/src/zlib-1.2.3/infback.c \
$$PWD/src/zlib-1.2.3/inffast.c \
$$PWD/src/zlib-1.2.3/inflate.c \
$$PWD/src/zlib-1.2.3/inftrees.c \
$$PWD/src/zlib-1.2.3/minigzip.c \
$$PWD/src/zlib-1.2.3/trees.c \
$$PWD/src/zlib-1.2.3/uncompr.c \
$$PWD/src/zlib-1.2.3/zutil.c
}
HEADERS += \
......
......@@ -5,42 +5,14 @@ TEMPLATE = lib
CONFIG += staticlib
win32 {
CONFIG -= debug_and_release debug_and_release_target
CONFIG += build_all_zlib
}
############### destination path ###############
DESTINATION_SDK_PATH = $$PWD/../build/lib
# WINDOWS
win32:contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_64/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_64
}
}
win32:!contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_32/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_32
}
}
linux-g++ | linux-g++-64 | linux-g++-32:contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_64
}
linux-g++ | linux-g++-64 | linux-g++-32:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
CONFIG += build_all_zlib
}
mac {
DESTDIR = $$DESTINATION_SDK_PATH/mac_64
QMAKE_MAC_SDK = macosx10.11
}
################################################
include($$PWD/OfficeUtils.pri)
CORE_ROOT_DIR = $$PWD/..
PWD_ROOT_DIR = $$PWD
include(../Common/base.pri)
include($$PWD/OfficeUtils.pri))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment