-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathqicstable_config.pri
144 lines (116 loc) · 3.57 KB
/
qicstable_config.pri
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
##############################################################################
##
## Copyright (C) 2002-2014 Integrated Computer Solutions, Inc.
## All rights reserved.
##
## This file is part of the QicsTable software.
##
## See the top level README file for license terms under which this
## software can be used, distributed, or modified.
##
##############################################################################
#
# Common settings for all QicsTable builds
#
# QicsTable Version
MAJOR_VERSION = 3
VERSION = 3.0.0
# If you want to, set local config options in local_config.pri
exists(local_config.pri) {
include(local_config.pri)
}
#CONFIG += eval_noop
# Do not change this line
CONFIG += qt
QT += xml
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
# Chose one of the following two lines to configure the build
#CONFIG += release # Compile and link QicsTable with debugging turned off.
#CONFIG += debug # Compile and link QicsTable with debugging turned on.
CONFIG += debug_and_release build_all # Compile and link two QicsTable libraries, with and without debugging turned on.
# Uncomment this line if you want to use saving to XML, designer plugin, advanced spreadsheet demo.
CONFIG += xml
# Configuration for MacOS X
macx {
# Using gcc
QMAKESPEC=macx-g++
# uncoment this line if you want use xcode
# QMAKESPEC=macx-xcode
}
win32 {
QMAKE_CXXFLAGS *= /MP
contains(QMAKE_HOST.arch, x86):{
QMAKE_LFLAGS *= /MACHINE:X86
}
contains(QMAKE_HOST.arch, x86_64):{
QMAKE_LFLAGS *= /MACHINE:X64
}
}
BUILDDIR = .build/
win32:BUILDDIR = $$join(BUILDDIR,,,win32)
unix:BUILDDIR = $$join(BUILDDIR,,,unix)
macx:BUILDDIR = $$join(BUILDDIR,,,macx)
UI_DIR = $${BUILDDIR}/ui
UIC_DIR = $${BUILDDIR}/uic
MOC_DIR = $${BUILDDIR}/moc
RCC_DIR = $${BUILDDIR}/rcc
OBJECTS_DIR = $${BUILDDIR}/obj
CONFIG(release, debug|release) {
OBJECTS_DIR = $$join(OBJECTS_DIR,,,/release)
}
else {
OBJECTS_DIR = $$join(OBJECTS_DIR,,,/debug)
}
CONFIG(debug, debug|release) {
unix {
TARGET = $$join(TARGET,,,_debug)
}
else {
TARGET = $$join(TARGET,,,d)
}
}
# Install prefix. Specifies path where QicsTable will be installed(with make install command).
# For unix systems default prefix is /usr/local, for Windows - $QTDIR.
# Libs will be added into $$INSTALL_PREFIX/lib, includes into $$INSTALL_PREFIX/include.
unix {
INSTALL_PREFIX = /usr/local
INSTALL_LIB_SUFFIX = qicstable
INSTALL_INCLUDE_SUFFIX = qicstable
}
win32 {
INSTALL_PREFIX = $$(QTDIR)
INSTALL_LIB_SUFFIX =
INSTALL_INCLUDE_SUFFIX = qicstable
}
# Chose one of the following two lines to configure the build
#LIB_CONFIG = staticlib
LIB_CONFIG = dll
# QicsTable flags
QICSTABLELIB = qicstable
CONFIG(debug, debug|release) {
unix: QICSTABLELIB = $$join(QICSTABLELIB,,,_debug)
else: QICSTABLELIB = $$join(QICSTABLELIB,,,d)
}
contains(LIB_CONFIG, staticlib) {
DEFINES += QICS_STATICLIB
} else {
DEFINES += QICS_SHAREDLIB
win32 {
QICSTABLELIB = $$join(QICSTABLELIB,,,$$MAJOR_VERSION)
}
}
#KDCHART_NOOP
# This line enables KDChart support
# You should set KDCHART_PATH=/full/path/to/kdchart
KDCHART_PATH =
!isEmpty(KDCHART_PATH) {
DEFINES += BIND_KDCHART
KDCHARTLIB = kdchart
CONFIG(debug, debug|release) {
!unix: KDCHARTLIB = "kdchartd"
}
INCLUDEPATH += $$KDCHART_PATH/include
DEPENDPATH += $$KDCHART_PATH/include
LIBS += -L$$KDCHART_PATH/lib -l$$KDCHARTLIB
}
#END_KDCHART_NOOP