forked from tplgy/qwebrtc
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmeson.build
55 lines (46 loc) · 1.42 KB
/
meson.build
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
project('qwebrtc', 'cpp')
qt5 = import('qt5')
qt5_dep = dependency('qt5', modules: ['Core', 'Quick'])
inc = include_directories('.')
webrtc = subproject('webrtc')
webrtc_dep = webrtc.get_variable('webrtc_dep')
# Work around name collisions with webrtc's sigslot.h
qwebrtc_cargs = '-DQT_NO_KEYWORDS'
moc_headers = files(
'qwebrtc.h',
'qwebrtcpeerconnectionfactory.hpp',
'qwebrtcpeerconnection.hpp',
'qwebrtcdatachannel.hpp',
'qwebrtcdatachannel_p.hpp',
'qwebrtcmediastream.hpp',
'qwebrtcsessiondescription.hpp',
'qwebrtcmediatrack.hpp',
'qwebrtcmediatrack_p.hpp',
'qwebrtcutilities.hpp',
'qwebrtcquickvideoitem.hpp',
'qwebrtcicecandidate.hpp',
'qwebrtcconfiguration.hpp',
'qwebrtcdesktopvideosource_p.hpp',
)
moc_files = qt5.preprocess(moc_headers: moc_headers)
sources = files(
'qwebrtc.cpp',
'qwebrtcpeerconnectionfactory.cpp',
'qwebrtcpeerconnection.cpp',
'qwebrtcdatachannel.cpp',
'qwebrtcmediastream.cpp',
'qwebrtcsessiondescription.cpp',
'qwebrtcmediatrack.cpp',
'qwebrtcutilities.cpp',
'qwebrtcquickvideoitem.cpp',
'qwebrtcicecandidate.cpp',
'qwebrtcdesktopvideosource.cpp',
)
qwebrtc = static_library('qwebrtc', moc_files, sources,
cpp_args: qwebrtc_cargs,
dependencies: [qt5_dep, webrtc_dep])
qwebrtc_dep = declare_dependency(
link_with: qwebrtc,
dependencies: [qt5_dep, webrtc_dep],
include_directories: inc,
)