blob: 1670c53110947cb7a20379c85af8f12b4405c978 [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 Afanasyev8c7784a2011-08-11 19:05:08 -07007 'model/ccn/ccn_charbuf.cc',
Alexander Afanasyev8a677dd2011-08-12 13:08:15 -07008 'model/ccn/ccn_name_util.cc',
9 'model/ccn/ccn_coding.cc',
10 'model/ccn/ccn_indexbuf.cc',
11 'model/ccn/ccn_random.cc',
12 'model/ccn/ccn_buf_decoder.cc',
13 'model/ccn/ccn_buf_encoder.cc',
Alexander Afanasyev43e70252011-08-08 18:48:18 -070014
Alexander Afanasyev3a6ea5c2011-08-11 18:15:49 -070015 'model/name-components.cc',
Alexander Afanasyev8a677dd2011-08-12 13:08:15 -070016 'model/interest-header.cc',
17 'model/content-object-header.cc',
Alexander Afanasyev404c0792011-08-09 17:09:59 -070018
Alexander Afanasyev2536e202011-08-12 14:13:10 -070019 'apps/stupid-interest-generator.cc',
20 'apps/stupid-interest-sink.cc',
Ilya Moiseenko1762af72011-07-18 16:43:10 -070021 ]
22
23 module_test = bld.create_ns3_module_test_library('NDNabstraction')
24 module_test.source = [
Ilya Moiseenko54a6bba2011-08-01 11:01:26 -070025 'test/ndnabstraction-basictest.cc',
Ilya Moiseenko1762af72011-07-18 16:43:10 -070026 ]
27
28 headers = bld.new_task_gen('ns3header')
29 headers.module = 'NDNabstraction'
30 headers.source = [
Alexander Afanasyev43e70252011-08-08 18:48:18 -070031 'model/ccn/ccn.h',
Alexander Afanasyev8a677dd2011-08-12 13:08:15 -070032 'model/ccn/ccn_charbuf.h',
33 'model/ccn/ccn_coding.h',
34 'model/ccn/ccn_name_util.h',
35 'model/ccn/ccn_indexbuf.h',
36 'model/ccn/ccn_random.h',
Alexander Afanasyev43e70252011-08-08 18:48:18 -070037
Alexander Afanasyev8a677dd2011-08-12 13:08:15 -070038 # 'model/ndnabstraction-header.h',
39
Alexander Afanasyev3a6ea5c2011-08-11 18:15:49 -070040 'model/name-components.h',
Alexander Afanasyev8a677dd2011-08-12 13:08:15 -070041 'model/interest-header.h',
42 'model/content-object-header.h',
43
Alexander Afanasyev3a6ea5c2011-08-11 18:15:49 -070044 # 'helper/ndnabstraction-helper.h',
Ilya Moiseenko02fb7062011-08-11 17:18:00 -070045 'helper/ndn_stupidinterestgenerator_helper.h',
Alexander Afanasyev404c0792011-08-09 17:09:59 -070046
Alexander Afanasyev2536e202011-08-12 14:13:10 -070047 'apps/stupid-interest-generator.h',
48 'apps/stupid-interest-sink.h'
Ilya Moiseenko1762af72011-07-18 16:43:10 -070049 ]
50
51
Ilya Moiseenko54a6bba2011-08-01 11:01:26 -070052 if bld.env['ENABLE_OPENSSL']:
Alexander Afanasyev404c0792011-08-09 17:09:59 -070053 module.uselib = 'OPENSSL'
Ilya Moiseenko54a6bba2011-08-01 11:01:26 -070054
Ilya Moiseenko1762af72011-07-18 16:43:10 -070055 if bld.env['ENABLE_EXAMPLES']:
56 bld.add_subdirs('examples')
57
Ilya Moiseenko02fb7062011-08-11 17:18:00 -070058 bld.ns3_python_bindings()
Alexander Afanasyev43e70252011-08-08 18:48:18 -070059 #bld.env['CXXFLAGS']=[filter(lambda x: x not in bld.env, sublist) for sublist in [['-Wall'], ['-Werror'], ['-Wextra']]]
60 # bld.env['CXXFLAGS']=[]
61 # bld.env['CFLAGS']=[]
62
63