#!/usr/bin/env python

top = '../..'

def build(ctx):
	tgt = '../../bin/serialoscd'

	if ctx.env.DEST_OS[:3] == "win":
		ctx.program(
			features='winres_gen',
			source=[
				'win_svc.c',
				'uv.c'],

			target=tgt,
			use='serialosc-common LIBUV LO')
	else:
		ctx.program(
			source='uv.c',
			target=tgt,
			use='serialosc-common LIBUV LO')
