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/] [libmcapi/] [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
subdirs = ['shm']
4
 
5
def options(opt):
6
        opt.add_option('--max-data-len', default='1024', type='int', help='The maximum size, in bytes, of data that can be sent through an endpoint. The transport-level buffer may be slightly larger, to accommodate transport-specific metadata.')
7
        opt.add_option('--max-endpoints', default='32', type='int', help='The maximum number of endpoints that may be simultaneously open in one node.')
8
 
9
        opt.recurse(subdirs)
10
 
11
def configure(conf):
12
        conf.define('MCAPI_MAX_DATA_LEN', conf.options.max_data_len)
13
        conf.define('MCAPI_MAX_ENDPOINTS', conf.options.max_endpoints)
14
 
15
        conf.recurse(subdirs)
16
 
17
def build(bld):
18
        includes = [
19
                '../include',
20
                '../include/%s' % bld.env.OS,
21
                'include',
22
        ]
23
 
24
        sources = [
25
                'mcapi_cfg.c',
26
                'mcapi/cntrl_msg.c',
27
                'mcapi/connect.c',
28
                'mcapi/create_endpoint.c',
29
                'mcapi/data_avail.c',
30
                'mcapi/data_count.c',
31
                'mcapi/endpoint.c',
32
                'mcapi/forward.c',
33
                'mcapi/get_endp.c',
34
                'mcapi/handle.c',
35
                'mcapi/interface.c',
36
                'mcapi/mcapi_cancel.c',
37
                'mcapi/mcapi_connect_pktchan_i.c',
38
                'mcapi/mcapi_connect_sclchan_i.c',
39
                'mcapi/mcapi_create_endp.c',
40
                'mcapi/mcapi_delete_endp.c',
41
                'mcapi/mcapi_finalize.c',
42
                'mcapi/mcapi_get_endp_attrib.c',
43
                'mcapi/mcapi_get_endp_i.c',
44
                'mcapi/mcapi_get_endp.c',
45
                'mcapi/mcapi_get_node_id.c',
46
                'mcapi/mcapi_init.c',
47
                'mcapi/mcapi_msg_avail.c',
48
                'mcapi/mcapi_msg_rcv_i.c',
49
                'mcapi/mcapi_msg_rcv.c',
50
                'mcapi/mcapi_msg_snd_i.c',
51
                'mcapi/mcapi_msg_snd.c',
52
                'mcapi/mcapi_open_pktchan_rcv_i.c',
53
                'mcapi/mcapi_open_pktchan_snd_i.c',
54
                'mcapi/mcapi_open_sclchan_rcv_i.c',
55
                'mcapi/mcapi_open_sclchan_snd_i.c',
56
                'mcapi/mcapi_pktchan_avail.c',
57
                'mcapi/mcapi_pktchan_free.c',
58
                'mcapi/mcapi_pktchan_rcv_close_i.c',
59
                'mcapi/mcapi_pktchan_rcv_i.c',
60
                'mcapi/mcapi_pktchan_rcv.c',
61
                'mcapi/mcapi_pktchan_snd_close_i.c',
62
                'mcapi/mcapi_pktchan_snd_i.c',
63
                'mcapi/mcapi_pktchan_snd.c',
64
                'mcapi/mcapi_sclchan_avail.c',
65
                'mcapi/mcapi_sclchan_rcv_close_i.c',
66
                'mcapi/mcapi_sclchan_rcv_u16.c',
67
                'mcapi/mcapi_sclchan_rcv_u32.c',
68
                'mcapi/mcapi_sclchan_rcv_u64.c',
69
                'mcapi/mcapi_sclchan_rcv_u8.c',
70
                'mcapi/mcapi_sclchan_snd_close_i.c',
71
                'mcapi/mcapi_sclchan_snd_u16.c',
72
                'mcapi/mcapi_sclchan_snd_u32.c',
73
                'mcapi/mcapi_sclchan_snd_u64.c',
74
                'mcapi/mcapi_sclchan_snd_u8.c',
75
                'mcapi/mcapi_set_endp_attrib.c',
76
                'mcapi/mcapi_test.c',
77
                'mcapi/mcapi_wait_any.c',
78
                'mcapi/mcapi_wait.c',
79
                'mcapi/msg_rcv.c',
80
                'mcapi/msg_snd.c',
81
                'mcapi/node_data.c',
82
                'mcapi/node.c',
83
                'mcapi/pkt_rcv.c',
84
                'mcapi/pkt_snd.c',
85
                'mcapi/queue.c',
86
                'mcapi/request.c',
87
                'mcapi/route.c',
88
                'mcapi/scal_rcv.c',
89
                'mcapi/scal_snd.c',
90
                'mcapi/suspend.c',
91
                'mcapi/mcapi_tls.c',
92
        ]
93
 
94
        extra_sources = {
95
                'linux': ['mcapi/linux/mcapi_os.c'],
96
        }
97
 
98
        sources += extra_sources.get(bld.env.OS, [])
99
 
100
        bld.env.prepend_value('CFLAGS', ['-O2', '-Wall'])
101
 
102
        bld.stlib(
103
                target='mcapi',
104
                source=' '.join(sources),
105
                includes=' '.join(includes),
106
                use='shm_objs',
107
        )
108
 
109
        bld.recurse(subdirs)

powered by: WebSVN 2.1.0

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