2020-06-02 15:37:45 +00:00
|
|
|
# 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) {
|
2020-06-04 22:25:05 +00:00
|
|
|
DEFAULT_PREFIX = $(ProgramW6432)
|
2020-06-02 15:37:45 +00:00
|
|
|
} else: !isEmpty(ProgramFiles) {
|
2020-06-04 22:25:05 +00:00
|
|
|
DEFAULT_PREFIX = $(ProgramFiles)
|
2020-06-02 15:37:45 +00:00
|
|
|
} else: contains(host_name, linux) {
|
2020-06-04 22:25:05 +00:00
|
|
|
DEFAULT_PREFIX = /opt
|
2020-06-02 15:37:45 +00:00
|
|
|
} else {
|
2020-06-04 22:25:05 +00:00
|
|
|
DEFAULT_PREFIX = C:/
|
2020-06-02 15:37:45 +00:00
|
|
|
}
|
|
|
|
}
|
2020-06-11 20:38:57 +00:00
|
|
|
macx: DEFAULT_PREFIX = /Applications
|
2020-06-02 15:37:45 +00:00
|
|
|
|
|
|
|
isEmpty(PREFIX): PREFIX = $${DEFAULT_PREFIX}
|
|
|
|
|
|
|
|
DEFINES += \
|
|
|
|
COMMONS_APPNAME=\"\\\"$$COMMONS_APPNAME\\\"\" \
|
|
|
|
COMMONS_TARGET=\"\\\"$$COMMONS_TARGET\\\"\" \
|
|
|
|
COMMONS_VER_MAJ=\"\\\"$$VER_MAJ\\\"\" \
|
|
|
|
COMMONS_VERSION=\"\\\"$$VERSION\\\"\" \
|
2020-06-04 22:25:05 +00:00
|
|
|
PREFIX=\"\\\"$$PREFIX\\\"\"
|
2020-06-02 15:37:45 +00:00
|
|
|
|
|
|
|
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}
|
|
|
|
DEFINES += QT_DEBUG
|
|
|
|
} 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)
|