Changeset 5ba6949 in rtems-libbsd for builder.py


Ignore:
Timestamp:
May 20, 2015, 7:45:16 AM (5 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.11, afaeccc05a556f6aa25ba044a7e49d6aa634a59e, freebsd-9.3, master
Children:
feaf877
Parents:
66ec94a
Message:

Add support to build using waf.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • builder.py

    r66ec94a r5ba6949  
    5252isDiffMode = False
    5353filesProcessed = 0
     54
     55class error(Exception):
     56    """Base class for exceptions."""
     57    def __init(self, msg):
     58        self.msg = 'error: %s' % (msg)
     59    def set_output(self, msg):
     60        self.msg = msg
     61    def __str__(self):
     62        return self.msg
     63
     64def common_flags():
     65    return ['-O',
     66            '-g',
     67            '-fno-strict-aliasing',
     68            '-ffreestanding',
     69            '-fno-common']
     70
     71def common_warnings():
     72    return ['-Wall',
     73            '-Wno-format']
     74
     75def common_no_warnings():
     76    return ['-Wno-implicit-function-declaration']
     77
     78def includes():
     79    return ['-Irtemsbsd/include',
     80            '-Ifreebsd/sys',
     81            '-Ifreebsd/sys/contrib/altq',
     82            '-Ifreebsd/sys/contrib/pf',
     83            '-Ifreebsd/include',
     84            '-Ifreebsd/lib/libc/include',
     85            '-Ifreebsd/lib/libc/isc/include',
     86            '-Ifreebsd/lib/libc/resolv',
     87            '-Ifreebsd/lib/libutil',
     88            '-Ifreebsd/lib/libkvm',
     89            '-Ifreebsd/lib/libmemstat',
     90            '-Ifreebsd/lib/libipsec',
     91            '-Irtemsbsd/sys',
     92            '-ImDNSResponder/mDNSCore',
     93            '-ImDNSResponder/mDNSShared',
     94            '-ImDNSResponder/mDNSPosix',
     95            '-Itestsuite/include']
     96
     97def cpu_includes():
     98    return ['-Irtemsbsd/@CPU@/include',
     99            '-Ifreebsd/sys/@CPU@/include']
     100
     101def cflags():
     102    return ['-std=gnu11']
     103
     104def cxxflags():
     105    return ['-std=gnu++11']
    54106
    55107# compare and process file only if different
Note: See TracChangeset for help on using the changeset viewer.