blob: f814de977dd93fc54dd9ec5528b83aa4c6792ca3 [file] [log] [blame]
Ilya Moiseenko1762af72011-07-18 16:43:10 -07001## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2
3def build(bld):
Alexander Afanasyev43e70252011-08-08 18:48:18 -07004 module = bld.create_ns3_module('NDNabstraction', ['applications', 'core', 'network', 'internet', 'point-to-point'])
Ilya Moiseenko1762af72011-07-18 16:43:10 -07005 module.includes = '.'
6 module.source = [
Alexander Afanasyev43e70252011-08-08 18:48:18 -07007 'model/ccn/ccn_charbuf.c',
8 'model/ccn/ccn_name_util.c',
9 'model/ccn/ccn_coding.c',
10 'model/ccn/ccn_indexbuf.c',
11 'model/ccn/ccn_random.c',
12 'model/ccn/ccn_buf_decoder.c',
13 'model/ccn/ccn_buf_encoder.c',
14
Ilya Moiseenko08a98a42011-08-02 16:06:51 -070015 'model/ndn_face.cc',
Alexander Afanasyev404c0792011-08-09 17:09:59 -070016 'model/interest-packet.cc',
Ilya Moiseenko08a98a42011-08-02 16:06:51 -070017 'model/ndn_contentpacket.cc',
Ilya Moiseenko1f603832011-08-04 19:06:49 -070018 'model/ndn_timeoutheader.cc',
19 'model/ndn_nonceheader.cc',
Alexander Afanasyev404c0792011-08-09 17:09:59 -070020 'model/name-builder.cc',
21
22 'apps/stupid-interest-generator.cc',
Ilya Moiseenko02fb7062011-08-11 17:18:00 -070023 'apps/stupid-interest-sink.cc',
Ilya Moiseenko1762af72011-07-18 16:43:10 -070024 ]
25
26 module_test = bld.create_ns3_module_test_library('NDNabstraction')
27 module_test.source = [
Ilya Moiseenko54a6bba2011-08-01 11:01:26 -070028 'test/ndnabstraction-basictest.cc',
Ilya Moiseenko1762af72011-07-18 16:43:10 -070029 ]
30
31 headers = bld.new_task_gen('ns3header')
32 headers.module = 'NDNabstraction'
33 headers.source = [
Alexander Afanasyev43e70252011-08-08 18:48:18 -070034 'model/ccn/ccn.h',
35 'model/ccn/ccn_charbuf.h',
36 'model/ccn/ccn_coding.h',
37 'model/ccn/ccn_name_util.h',
38 'model/ccn/ccn_indexbuf.h',
39 'model/ccn/ccn_random.h',
40
Alexander Afanasyev404c0792011-08-09 17:09:59 -070041 # 'model/ndnabstraction-header.h',
Alexander Afanasyev43e70252011-08-08 18:48:18 -070042
Ilya Moiseenko08a98a42011-08-02 16:06:51 -070043 'model/ndn_face.h',
Alexander Afanasyev404c0792011-08-09 17:09:59 -070044 'model/interest-packet.h',
Ilya Moiseenko08a98a42011-08-02 16:06:51 -070045 'model/ndn_contentpacket.h',
Ilya Moiseenko1f603832011-08-04 19:06:49 -070046 'model/ndn_timeoutheader.h',
47 'model/ndn_nonceheader.h',
Alexander Afanasyev404c0792011-08-09 17:09:59 -070048 'model/name-builder.h',
Ilya Moiseenko02fb7062011-08-11 17:18:00 -070049 'helper/ndn_stupidinterestgenerator_helper.h',
Alexander Afanasyev404c0792011-08-09 17:09:59 -070050
51 'apps/stupid-interest-generator.h',
Ilya Moiseenko02fb7062011-08-11 17:18:00 -070052 'apps/stupid-interest-sink.h'
Ilya Moiseenko1762af72011-07-18 16:43:10 -070053 ]
54
55
Ilya Moiseenko54a6bba2011-08-01 11:01:26 -070056 if bld.env['ENABLE_OPENSSL']:
Alexander Afanasyev404c0792011-08-09 17:09:59 -070057 module.uselib = 'OPENSSL'
Ilya Moiseenko54a6bba2011-08-01 11:01:26 -070058
Ilya Moiseenko1762af72011-07-18 16:43:10 -070059 if bld.env['ENABLE_EXAMPLES']:
60 bld.add_subdirs('examples')
61
Ilya Moiseenko02fb7062011-08-11 17:18:00 -070062 bld.ns3_python_bindings()
Alexander Afanasyev43e70252011-08-08 18:48:18 -070063 #bld.env['CXXFLAGS']=[filter(lambda x: x not in bld.env, sublist) for sublist in [['-Wall'], ['-Werror'], ['-Wextra']]]
64 # bld.env['CXXFLAGS']=[]
65 # bld.env['CFLAGS']=[]
66
67