First release
[sim/ns3-o-ran-e2.git] / wscript
1 # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2
3 # def options(opt):
4 #     pass
5
6 def configure(conf):
7     conf.env.append_value('CXXFLAGS', '-I/usr/local/include/e2sim')
8     conf.env.append_value("LINKFLAGS", ["-L/usr/local/lib"])
9     conf.env.append_value("LIB", ["e2sim"])
10
11 def build(bld):
12     module = bld.create_ns3_module('oran-interface', ['core'])    
13     module.source = [
14         'model/oran-interface.cc',
15         'model/asn1c-types.cc',
16         'model/function-description.cc',
17         'model/kpm-indication.cc',
18         'model/kpm-function-description.cc',
19         'model/ric-control-message.cc',
20         'model/ric-control-function-description.cc',
21         'helper/oran-interface-helper.cc',
22         'helper/indication-message-helper.cc',
23         'helper/lte-indication-message-helper.cc',
24         'helper/mmwave-indication-message-helper.cc'
25         ]
26
27     module_test = bld.create_ns3_module_test_library('oran-interface')
28     module_test.source = [
29         'test/oran-interface-test-suite.cc',
30         ]
31     # Tests encapsulating example programs should be listed here
32     if (bld.env['ENABLE_EXAMPLES']):
33         module_test.source.extend([
34         #    'test/oran-interface-examples-test-suite.cc',
35              ])
36
37     headers = bld(features='ns3header')
38     headers.module = 'oran-interface'
39     headers.source = [
40         'model/oran-interface.h',
41         'model/asn1c-types.h',
42         'model/function-description.h',
43         'model/kpm-indication.h',
44         'model/kpm-function-description.h',
45         'model/ric-control-message.h',
46         'model/ric-control-function-description.h',
47         'helper/oran-interface-helper.h',
48         'helper/indication-message-helper.h',
49         'helper/lte-indication-message-helper.h',
50         'helper/mmwave-indication-message-helper.h',
51         ]
52
53     if bld.env.ENABLE_EXAMPLES:
54         bld.recurse('examples')
55     
56
57     # bld.ns3_python_bindings()