Skip to content
Commits on Source (2)
......@@ -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/" % bldnode,
"%s/" % ctx.bldnode.parent.abspath()
ntpdnode,
"%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"
)
......
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/",
)
......
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")
......@@ -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')
from waflib import Utils
def build(ctx):
srcnode = ctx.srcnode.abspath()
bldnode = ctx.bldnode.abspath()
util = ['sht']
......