Files
ns-3-dev/src/template/wscript
T

46 lines
1.5 KiB
Python

## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
def build(bld):
# Create the module with the appropriate name and the list of
# modules it depends on.
module = bld.create_ns3_module('template', ['core'])
# Set the C++ source files for this module.
module.source = [
# Uncomment this line to compile this model source file.
#'model/sample-model.cc',
# Uncomment this line to compile this helper source file.
#'helper/sample-helper.cc',
]
# Create the module's test library.
test_library = bld.create_ns3_module_test_library('template')
# Set the C++ source files for the module's test library.
test_library.source = [
'test/sample-test-suite.cc',
]
# Make headers be installed for this module.
headers = bld.new_task_gen('ns3header')
headers.module = 'template'
# Set the C++ header files for this module.
headers.source = [
# Uncomment this line to install this model header file.
#'model/sample-model.h',
# Uncomment this line to install this helper header file.
#'helper/sample-helper.h',
]
# Uncomment these lines if this module needs a library such as the
# real-time (RT) library to be linked in at build time.
#module .uselib = 'RT'
#test_library.uselib = 'RT'
# Look for examples if they are enabled.
if (bld.env['ENABLE_EXAMPLES']):
bld.add_subdirs('examples')