forked from webcamoid/akvcam
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathakvcam.pro
126 lines (117 loc) · 3.26 KB
/
akvcam.pro
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
# akvcam, virtual camera for Linux.
# Copyright (C) 2018 Gonzalo Exequiel Pedone
#
# This program 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 2 of the License, or
# (at your option) any later version.
#
# This program 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 this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
CONFIG += console
CONFIG -= app_bundle qt
TARGET = akvcam
TEMPLATE = lib
lupdate_only {
HEADERS += \
src/attributes.h \
src/buffer.h \
src/buffers.h \
src/buffers_types.h \
src/controls.h \
src/controls_types.h \
src/device.h \
src/device_types.h \
src/driver.h \
src/events.h \
src/events_types.h \
src/file_read.h \
src/format.h \
src/format_types.h \
src/frame.h \
src/frame_types.h \
src/global_deleter.h \
src/ioctl.h \
src/list.h \
src/list_types.h \
src/log.h \
src/map.h \
src/mmap.h \
src/node.h \
src/node_types.h \
src/object.h \
src/object_types.h \
src/rbuffer.h \
src/settings.h \
src/utils.h
SOURCES += \
src/attributes.c \
src/module.c \
src/buffer.c \
src/buffers.c \
src/controls.c \
src/device.c \
src/driver.c \
src/events.c \
src/file_read.c \
src/format.c \
src/frame.c \
src/global_deleter.c \
src/ioctl.c \
src/list.c \
src/log.c \
src/map.c \
src/mmap.c \
src/node.c \
src/object.c \
src/rbuffer.c \
src/settings.c \
src/utils.c
}
KERNEL_RELEASE = $$system(uname -r)
isEmpty(KERNEL_DIR): KERNEL_DIR = /lib/modules/$${KERNEL_RELEASE}/build
!isEmpty(USE_SPARSE): USE_SPARSE_VAR = USE_SPARSE=1
isEmpty(SPARSE_MODE): SPARSE_MODE=2
INCLUDEPATH += \
src \
$${KERNEL_DIR}/include \
$${KERNEL_DIR}/include/linux \
$${KERNEL_DIR}/include/uapi \
$${KERNEL_DIR}/arch/x86/include \
$${KERNEL_DIR}/arch/x86/include/generated
DEFINES += \
__KERNEL__ \
CONFIG_COMPAT \
CONFIG_HZ=0 \
CONFIG_PAGE_OFFSET=0 \
CONFIG_PCI \
KBUILD_MODNAME=\"\\\"\\\"\"
OTHER_FILES += \
src/dkms.conf \
src/Makefile \
share/config_example.ini
DUMMY_FILES = .
makedriver.input = DUMMY_FILES
makedriver.output = $${PWD}/src/akvcam.ko
makedriver.commands = \
cd $${PWD}/src; \
make \
KERNEL_DIR=$${KERNEL_DIR} \
$${USE_SPARSE_VAR} \
SPARSE_MODE=$${SPARSE_MODE}; \
cd ..
makedriver.clean = \
$${PWD}/src/*.ko \
$${PWD}/src/*.o \
$${PWD}/src/*.mod.c \
$${PWD}/src/modules.order \
$${PWD}/src/Module.symvers
makedriver.CONFIG += no_link
QMAKE_EXTRA_COMPILERS += makedriver
PRE_TARGETDEPS += compiler_makedriver_make_all