Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Commits on Source (2)
Build recipe cleanup as recommended by waf maintainer.
· 3de0aff4
Eric S. Raymond
authored
Oct 17, 2016
3de0aff4
More uniform naming.
· 028c907d
Eric S. Raymond
authored
Oct 17, 2016
028c907d
Hide whitespace changes
Inline
Side-by-side
ntpd/wscript
View file @
028c907d
...
...
@@ -2,6 +2,7 @@
def build(ctx):
srcnode = ctx.srcnode.abspath()
bldnode = ctx.bldnode.abspath()
ntpdnode = ctx.bldnode.make_node('ntpd')
if ctx.variant == "host":
...
...
@@ -15,8 +16,8 @@ def build(ctx):
features = "c src_include bld_include libisc_include",
source = bison_source,
includes = [
"%s/ntpd/" % srcnode,
"%s/" % ctx.bldnode.parent.abspath()
"%s/ntpd/" % srcnode,
"%s/" % ctx.bldnode.parent.abspath()
]
)
...
...
@@ -31,20 +32,19 @@ def build(ctx):
features = "c cprogram bld_include src_include libisc_include",
source = keyword_gen_source,
includes = [
"%s/ntpd/" % bl
dnode,
"%s/" % ctx.bldnode.parent.abspath()
ntp
dnode,
"%s/" % ctx.bldnode.parent.abspath()
],
install_path= None,
)
# XXX: needs a dependency to rebuild ntp_keyword.h when keyword-gen is rebuilt
ctx.add_group() # Make sure keyword-gen is created next.
ctx(
rule = "%s/ntpd/keyword-gen ${SRC} > ${TGT}" % bldnode,
rule = "keyword-gen ${SRC} > ${TGT}",
cwd = ntpdnode,
features = "c bld_include src_include",
source = "ntp_parser.tab.h",
source =
["keyword-gen",
"ntp_parser.tab.h"
]
,
target = "ntp_keyword.h"
)
...
...
ntpdig/wscript
View file @
028c907d
def build(ctx):
srcnode = ctx.srcnode.abspath()
bldnode = ctx.bldnode.abspath()
bldnode = ctx.bldnode.make_node('ntpdig')
ntpdig_obj_source = [
"crypto.c",
...
...
@@ -14,11 +13,12 @@ def build(ctx):
ctx(
target = "ntpdig_obj",
features = "c bld_include src_include libisc_include",
use
= "ntp isc opts M PTHREAD LIBEVENT_CORE LIBEVENT_PTHREADS RT CRYPTO",
use = "ntp isc opts M PTHREAD LIBEVENT_CORE LIBEVENT_PTHREADS RT CRYPTO",
source = ntpdig_obj_source,
cwd = bldnode,
includes = [
"%s/ntpdig/" %
bldnode
] + ctx.env.PLATFORM_INCLUDES, # XXX: Hack needs to use libevent_inc or something else.
bldnode
,
] + ctx.env.PLATFORM_INCLUDES, # XXX: Hack needs to use libevent_inc or something else.
)
ntpdig_source = [
...
...
@@ -28,11 +28,12 @@ def build(ctx):
ctx(
target = "ntpdig",
features = "c cprogram bld_include src_include libisc_include ntp_version",
use
= "ntp isc opts ntpdig_obj M PTHREAD ntpdig_obj LIBEVENT_CORE LIBEVENT_PTHREADS RT CRYPTO",
use = "ntp isc opts ntpdig_obj M PTHREAD ntpdig_obj LIBEVENT_CORE LIBEVENT_PTHREADS RT CRYPTO",
source = ntpdig_source,
cwd = bldnode,
includes = [
"%s/ntpdig/" %
bldnode
] + ctx.env.PLATFORM_INCLUDES, # XXX: Hack needs to use libevent_inc or something else.
bldnode
] + ctx.env.PLATFORM_INCLUDES, # XXX: Hack needs to use libevent_inc or something else.
install_path= "${PREFIX}/bin/",
)
...
...
ntpq/wscript
View file @
028c907d
def build(ctx):
srcnode = ctx.srcnode.abspath()
bldnode = ctx.bldnode.
abspath(
)
bldnode = ctx.bldnode.
make_node('ntpq'
)
ntpq_source = [
"ntpq.c",
...
...
@@ -11,11 +11,9 @@ def build(ctx):
target = "ntpq",
features = "c cprogram bld_include src_include libisc_include ntp_version",
source = ntpq_source,
use = "ntp opts isc M RT READLINE EDIT PTHREAD CRYPTO CURSES NCURSES READLINE",
includes = [
"%s/ntpq/" % bldnode
],
install_path= "${PREFIX}/bin/",
use = "ntp opts isc M RT READLINE EDIT PTHREAD CRYPTO CURSES NCURSES READLINE",
includes = [bldnode],
install_path = "${PREFIX}/bin/",
)
ctx.manpage(1, "ntpq-man.txt")
pylib/wscript
View file @
028c907d
...
...
@@ -5,5 +5,5 @@ def configure(conf):
conf.load('python')
conf.check_python_version((2,6,0))
def build(
bld
):
bld
(features='py', source=
bld
.path.ant_glob('*.py'), install_from='.',install_path='${PYTHONDIR}/ntp')
def build(
ctx
):
ctx
(features='py', source=
ctx
.path.ant_glob('*.py'), install_from='.',install_path='${PYTHONDIR}/ntp')
util/wscript
View file @
028c907d
from waflib import Utils
def build(ctx):
srcnode = ctx.srcnode.abspath()
bldnode = ctx.bldnode.abspath()
util = ['sht']
...
...