-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwscript
More file actions
34 lines (25 loc) · 1.1 KB
/
wscript
File metadata and controls
34 lines (25 loc) · 1.1 KB
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
#! /usr/bin/env python
import waflib
def configure(ctx):
if ctx.env.GSTREAMER_PLUGINS == False:
return
ctx.check_cfg(package='gstreamer-1.0', args='--cflags --libs', uselib_store='gstreamer')
ctx.check_cfg(package='gstreamer-video-1.0', args='--cflags --libs',
uselib_store='gstreamer_video')
def build(ctx):
ctx.env.ZCM_GSTREAMER_PLUGINS_ROOT = ctx.path.get_src().abspath()
if not waflib.Options.options.skip_git:
ctx(rule = 'OUTPUT=$(cd %s && git rev-parse HEAD && \
((git tag --contains ; echo "<no-tag>") | head -n1) \
&& git diff) && echo "$OUTPUT" > ${TGT}' %
(ctx.env.ZCM_GSTREAMER_PLUGINS_ROOT),
target = 'zcm_gstreamer_plugins.gitid',
always = True)
gitidNode = ctx.path.get_bld().find_or_declare('zcm_gstreamer_plugins.gitid')
ctx.install_files('${PREFIX}',
gitidNode,
cwd = ctx.srcnode,
relative_trick = True)
if ctx.variant == 'sign':
return
ctx.recurse('src')