forked from drahnr/oregano
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwscript
49 lines (40 loc) · 1.17 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#! /usr/bin/env python3
# encoding: utf-8
import os
from waflib import Logs as logs
from waflib import Utils as utils
def options(opt):
pass
def configure(conf):
pass
def build(bld):
if bld.cmd == 'install' or bld.cmd == 'uninstall':
if not os.geteuid()==0:
logs.warn ('You most likely need root privileges to install or uninstall properly.')
nodes = bld.path.ant_glob(\
['*.c',
'tools/*.c',
'gplot/*.c',
'engines/*.c',
'sheet/*.c',
'model/*.c'],
excl='main.c')
bld.objects (
['c','glib2'],
source = nodes,
includes = ['.', 'tools/', 'engines/', 'gplot/', 'model/', 'sheet/'],
uselib = 'M XML GOBJECT GLIB GTK3 XML GOOCANVAS GTKSOURCEVIEW3',
target = 'shared_objects'
)
exe = bld.program(
features = ['c', 'glib2'],
target = bld.env.appname,
source = ['main.c'],
includes = ['.', 'tools/', 'engines/', 'gplot/', 'model/', 'sheet/'],
use = 'shared_objects',
uselib = 'M XML GOBJECT GLIB GTK3 XML GOOCANVAS GTKSOURCEVIEW3',
settings_schema_files = ['../data/settings/'+bld.env.gschema_name ] if not bld.options.no_install_gschema else [],
install_path = "${BINDIR}"
)
for item in exe.includes:
logs.debug(item)