Created
October 12, 2011 11:10
-
-
Save jledet/1280935 to your computer and use it in GitHub Desktop.
ftp-client wscript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
APPNAME = 'ftp-client' | |
VERSION = '1.0' | |
top = '.' | |
out = 'build' | |
modules = ['../libcsp/', '../libio'] | |
def options(ctx): | |
ctx.load('gcc') | |
ctx.recurse(modules) | |
def configure(ctx): | |
ctx.load('gcc') | |
# Options for CSP | |
ctx.options.os = 'posix' | |
ctx.options.with_can = 'socketcan' | |
ctx.recurse(modules) | |
def build(ctx): | |
ctx.recurse(modules) | |
ctx.program(source=ctx.path.ant_glob('*.c'), target='ftp-client', includes='include', use='io csp', lib='rt') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment