forked from opencor/qwt
-
Notifications
You must be signed in to change notification settings - Fork 2
/
qwtbuild.pri
77 lines (62 loc) · 2.41 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
################################################################
# 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
DEFINES += QT_NO_DEPRECATED_WARNINGS # not fixing those before Qwt 6.2
######################################################################
# 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
# avoid warnings since gcc9
# QMAKE_CXXFLAGS *= -Wno-deprecated-copy
# 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
}