-
Notifications
You must be signed in to change notification settings - Fork 0
/
qwtbuild.pri
86 lines (69 loc) · 2.72 KB
/
qwtbuild.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
################################################################
# Qwt Widget Library
# Copyright (C) 1997 Josef Wilgen
# Copyright (C) 2002 Uwe Rathmann
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the Qwt License, Version 1.0
################################################################
######################################################################
# qmake internal options
######################################################################
CONFIG += qt
CONFIG += warn_on
CONFIG += no_keywords
CONFIG += silent
######################################################################
# release/debug mode
######################################################################
win32 {
# On Windows you can't mix release and debug libraries.
# The designer is built in release mode. If you like to use it
# you need a release version. For your own application development you
# might need a debug version.
# Enable debug_and_release + build_all if you want to build both.
CONFIG += debug_and_release
CONFIG += build_all
}
else {
CONFIG += release
VER_MAJ = $${QWT_VER_MAJ}
VER_MIN = $${QWT_VER_MIN}
VER_PAT = $${QWT_VER_PAT}
VERSION = $${QWT_VERSION}
}
linux-g++ | linux-g++-64 {
#CONFIG += separate_debug_info
#QMAKE_CXXFLAGS *= -Wfloat-equal
#QMAKE_CXXFLAGS *= -Wshadow
#QMAKE_CXXFLAGS *= -Wpointer-arith
#QMAKE_CXXFLAGS *= -Wconversion
#QMAKE_CXXFLAGS *= -Wsign-compare
#QMAKE_CXXFLAGS *= -Wsign-conversion
#QMAKE_CXXFLAGS *= -Wlogical-op
#QMAKE_CXXFLAGS *= -Werror=format-security
#QMAKE_CXXFLAGS *= -std=c++11
# when using the gold linker ( Qt < 4.8 ) - might be
# necessary on non linux systems too
#QMAKE_LFLAGS += -lrt
}
######################################################################
# paths for building qwt
######################################################################
MOC_DIR = moc
RCC_DIR = resources
!debug_and_release {
# in case of debug_and_release object files
# are built in the release and debug subdirectories
OBJECTS_DIR = obj
}
unix {
exists( $${QMAKE_LIBDIR_QT}/libqwt.* ) {
# On some Linux distributions the Qwt libraries are installed
# in the same directory as the Qt libraries. Unfortunately
# qmake always adds QMAKE_LIBDIR_QT at the beginning of the
# linker path, so that the installed libraries will be
# used instead of the local ones.
error( "local build will conflict with $${QMAKE_LIBDIR_QT}/libqwt.*" )
}
}