OpenCores
URL https://opencores.org/ocsvn/funbase_ip_library/funbase_ip_library/trunk

Subversion Repositories funbase_ip_library

[/] [funbase_ip_library/] [trunk/] [TUT/] [ip.swp.api/] [openmcapi/] [1.0/] [test/] [wscript] - Blame information for rev 145

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 145 lanttu
#!/usr/bin/env python
2
 
3
def configure(conf):
4
        conf.env.LIB_pthread = ['pthread']
5
        conf.env.LIB_rt = ['rt']
6
 
7
def build(bld):
8
        bld.recurse('support_suite')
9
 
10
        includes = [
11
                '.',
12
                '../include',
13
                '../include/%s' % bld.env.OS,
14
                '../libmcapi/include',
15
                'support_suite/%s' % bld.env.OS
16
        ]
17
 
18
        func_frontend_sources = [
19
                'func/frontend.c',
20
                'func/fts_mcapi_cancel.c',
21
                'func/fts_mcapi_connect_pktchan_i.c',
22
                'func/fts_mcapi_connect_sclchan_i.c',
23
                'func/fts_mcapi_create_endpoint.c',
24
                'func/fts_mcapi_delete_endpoint.c',
25
                'func/fts_mcapi_get_endpoint.c',
26
                'func/fts_mcapi_get_endpoint_attribute.c',
27
                'func/fts_mcapi_get_endpoint_i.c',
28
                'func/fts_mcapi_msg_available.c',
29
                'func/fts_mcapi_msg_recv.c',
30
                'func/fts_mcapi_msg_recv_i.c',
31
                'func/fts_mcapi_msg_send.c',
32
                'func/fts_mcapi_msg_send_i.c',
33
                'func/fts_mcapi_open_pktchan_recv_i.c',
34
                'func/fts_mcapi_open_pktchan_send_i.c',
35
                'func/fts_mcapi_open_sclchan_recv_i.c',
36
                'func/fts_mcapi_open_sclchan_send_i.c',
37
                'func/fts_mcapi_pktchan_available.c',
38
                'func/fts_mcapi_pktchan_free.c',
39
                'func/fts_mcapi_pktchan_recv.c',
40
                'func/fts_mcapi_pktchan_recv_close_i.c',
41
                'func/fts_mcapi_pktchan_recv_i.c',
42
                'func/fts_mcapi_pktchan_send.c',
43
                'func/fts_mcapi_pktchan_send_close_i.c',
44
                'func/fts_mcapi_pktchan_send_i.c',
45
                'func/fts_mcapi_sclchan_available.c',
46
                'func/fts_mcapi_sclchan_recv_close_i.c',
47
                'func/fts_mcapi_sclchan_recv_x.c',
48
                'func/fts_mcapi_sclchan_send_close_i.c',
49
                'func/fts_mcapi_sclchan_send_x.c',
50
                'func/fts_mcapi_set_endpoint_attribute.c',
51
                'func/fts_mcapi_test.c',
52
                'func/fts_mcapi_wait.c',
53
                'func/fts_mcapi_wait_any.c',
54
        ]
55
 
56
        func_backend_sources = [
57
                'func/backend.c',
58
        ]
59
 
60
        bld.env.prepend_value('CFLAGS', ['-O2', '-Wall'])
61
 
62
        bld.stlib(
63
                target='mgmt',
64
                source='mgmt_svc.c',
65
                includes=' '.join(includes),
66
        )
67
 
68
        bld.program(
69
                target='func_frontend',
70
                source=' '.join(func_frontend_sources),
71
                includes=' '.join(includes),
72
                use='mgmt test_support mcapi pthread rt'
73
        )
74
 
75
        bld.program(
76
                target='func_backend',
77
                source=' '.join(func_backend_sources),
78
                includes=' '.join(includes),
79
                use='mgmt test_support mcapi pthread rt'
80
        )
81
 
82
        bld.program(
83
                target='api_suite',
84
                source='3/mcapi_tests.c',
85
                includes=' '.join(includes),
86
                use='mcapi test_support pthread rt'
87
        )
88
 
89
def options(opt):
90
        pass

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.