forked from webcamoid/akvirtualcamera
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommons.pri
92 lines (78 loc) · 2.71 KB
/
commons.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
# akvirtualcamera, virtual camera for Mac and Windows.
# Copyright (C) 2020 Gonzalo Exequiel Pedone
#
# akvirtualcamera is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# akvirtualcamera is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with akvirtualcamera. If not, see <http://www.gnu.org/licenses/>.
#
# Web-Site: http://webcamoid.github.io/
COMMONS_APPNAME = "AkVirtualCamera"
COMMONS_TARGET = $$lower($${COMMONS_APPNAME})
COMMONS_TARGET = $$replace(COMMONS_TARGET, lib, "")
VER_MAJ = 9
VER_MIN = 0
VER_PAT = 0
VERSION = $${VER_MAJ}.$${VER_MIN}.$${VER_PAT}
win32 {
host_name = $$lower($$QMAKE_HOST.os)
!isEmpty(ProgramW6432) {
DEFAULT_PREFIX = $(ProgramW6432)
} else: !isEmpty(ProgramFiles) {
DEFAULT_PREFIX = $(ProgramFiles)
} else: contains(host_name, linux) {
DEFAULT_PREFIX = /
} else {
DEFAULT_PREFIX = C:/
}
}
macx: DEFAULT_PREFIX = /Applications
isEmpty(PREFIX): PREFIX = $${DEFAULT_PREFIX}
DEFINES += \
COMMONS_APPNAME=\"\\\"$$COMMONS_APPNAME\\\"\" \
COMMONS_TARGET=\"\\\"$$COMMONS_TARGET\\\"\" \
COMMONS_VER_MAJ=\"\\\"$$VER_MAJ\\\"\" \
COMMONS_VERSION=\"\\\"$$VERSION\\\"\" \
PREFIX=\"\\\"$$PREFIX\\\"\"
msvc {
TARGET_ARCH = $${QMAKE_TARGET.arch}
TARGET_ARCH = $$basename(TARGET_ARCH)
TARGET_ARCH = $$replace(TARGET_ARCH, x64, x86_64)
} else {
TARGET_ARCH = $$system($${QMAKE_CXX} -dumpmachine)
TARGET_ARCH = $$split(TARGET_ARCH, -)
TARGET_ARCH = $$first(TARGET_ARCH)
}
COMPILER = $$basename(QMAKE_CXX)
COMPILER = $$replace(COMPILER, \+\+, pp)
COMPILER = $$join(COMPILER, _)
CONFIG(debug, debug|release) {
COMMONS_BUILD_PATH = debug/$${COMPILER}/$${TARGET_ARCH}
} else {
COMMONS_BUILD_PATH = release/$$COMPILER/$${TARGET_ARCH}
}
BIN_DIR = $${COMMONS_BUILD_PATH}/bin
MOC_DIR = $${COMMONS_BUILD_PATH}/moc
OBJECTS_DIR = $${COMMONS_BUILD_PATH}/obj
RCC_DIR = $${COMMONS_BUILD_PATH}/rcc
UI_DIR = $${COMMONS_BUILD_PATH}/ui
win32 {
CONFIG += skip_target_version_ext
!isEmpty(STATIC_BUILD):!isEqual(STATIC_BUILD, 0) {
win32-g++: QMAKE_LFLAGS = -static-libgcc -static-libstdc++
}
}
# Enable c++11 support in all platforms
!CONFIG(c++11): CONFIG += c++11
!win32: !macx {
error("This driver only works in Mac an Windows. For Linux check 'akvcam' instead.")
}
CMD_SEP = $$escape_expand(\n\t)