-
Notifications
You must be signed in to change notification settings - Fork 2
/
SConstruct
41 lines (33 loc) · 1.19 KB
/
SConstruct
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
import utils
utils.initialize_build()
name = "mensactr_video_plugin"
out_path = utils.create_bin_name(name)
env = Environment(CPPPATH=[
'/usr/include/vlc',
'/usr/include/vlc/plugins',
'include'],
CFLAGS=[
'-std=gnu99',
'-g',
'-Wall',
'-Wextra',
'-O3',
'-DPIC'
],
LIBPATH=[
'/usr/lib/',
'/usr/local/lib'],
LIBS=[
'libvlc',
'libzmq'])
env.MergeFlags('!pkg-config --cflags vlc-plugin')
env.MergeFlags('!pkg-config --libs vlc-plugin')
env.MergeFlags('-Wl,-no-undefined,-z,defs')
#Alias install to put the .so library where it needs to be for VLC to use it
env.Alias('install', ['/usr/lib/vlc/plugins/video_output'])
#Collect all the source files
src_files = utils.get_source_list(base = "src", recursive = True)
#Create the Shared Object Library
sl = env.SharedLibrary(target = out_path, source = src_files)
#Install the library
env.Install(dir = "/usr/lib/vlc/plugins/video_output", source = sl)