-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwscript
executable file
·33 lines (26 loc) · 1.02 KB
/
wscript
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
#! /usr/bin/env python
APPNAME = 'vteplugin'
VERSION = '0.1'
top = '.'
blddir = 'build'
def configure(ctx):
import Options
if Options.options.debug:
ctx.env['CFLAGS'] = ['-g']
ctx.env['CPPFLAGS'] = ['-DDEBUG']
else:
ctx.env['CFLAGS'] = ['-O2', '-Wall']
ctx.check_tool('gcc')
ctx.check_cfg(package='gtk+-2.0', args='--cflags --libs', uselib_store="gtk", mandatory=True)
ctx.check_cfg(package='gdk-2.0', args='--cflags --libs', uselib_store="gdk", mandatory=True)
ctx.check_cfg(package='vte', args='--cflags --libs', uselib_store="vte", mandatory=True)
def set_options (opt):
opt.add_option ('--debug', action='store_true', default=False, help='Debug mode', dest='debug')
def build(ctx):
import os.path
ctx.env.shlib_PATTERN = "%s.so"
obj = ctx.new_task_gen(features='cc cshlib',
target=APPNAME,
install_path="/usr/lib/mozilla/plugins",
uselib="vte gdk gtk")
obj.find_sources_in_dirs(top)