Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(638)

Side by Side Diff: src/core/wscript

Issue 8932044: Minimum changes needed to support ns-3 on Visual Studio 2012
Patch Set: Created 10 years, 11 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/core/model/wall-clock-synchronizer.cc ('k') | src/dsdv/model/dsdv-routing-protocol.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- 1 ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2 import sys 2 import sys
3 3
4 from waflib import Options 4 from waflib import Options
5 import wutils 5 import wutils
6 6
7 def options(opt): 7 def options(opt):
8 opt.add_option('--int64x64-as-double', 8 opt.add_option('--int64x64-as-double',
9 help=('Whether to use a double floating point' 9 help=('Whether to use a double floating point'
10 ' type for int64x64 values' 10 ' type for int64x64 values'
(...skipping 22 matching lines...) Expand all
33 highprec = 'cairo 128-bit integer' 33 highprec = 'cairo 128-bit integer'
34 34
35 conf.msg('Checking high precision time implementation', highprec) 35 conf.msg('Checking high precision time implementation', highprec)
36 36
37 conf.check_nonfatal(header_name='stdint.h', define_name='HAVE_STDINT_H') 37 conf.check_nonfatal(header_name='stdint.h', define_name='HAVE_STDINT_H')
38 conf.check_nonfatal(header_name='inttypes.h', define_name='HAVE_INTTYPES_H') 38 conf.check_nonfatal(header_name='inttypes.h', define_name='HAVE_INTTYPES_H')
39 conf.check_nonfatal(header_name='sys/inttypes.h', define_name='HAVE_SYS_INT_ TYPES_H') 39 conf.check_nonfatal(header_name='sys/inttypes.h', define_name='HAVE_SYS_INT_ TYPES_H')
40 conf.check_nonfatal(header_name='sys/types.h', define_name='HAVE_SYS_TYPES_H ') 40 conf.check_nonfatal(header_name='sys/types.h', define_name='HAVE_SYS_TYPES_H ')
41 conf.check_nonfatal(header_name='sys/stat.h', define_name='HAVE_SYS_STAT_H') 41 conf.check_nonfatal(header_name='sys/stat.h', define_name='HAVE_SYS_STAT_H')
42 conf.check_nonfatal(header_name='dirent.h', define_name='HAVE_DIRENT_H') 42 conf.check_nonfatal(header_name='dirent.h', define_name='HAVE_DIRENT_H')
43 conf.check_nonfatal(header_name='sys/time.h', define_name='HAVE_SYS_TIME_H')
44 conf.check_nonfatal(header_name='unistd.h', define_name='HAVE_UNISTD_H')
43 45
44 if conf.check_nonfatal(header_name='stdlib.h'): 46 if conf.check_nonfatal(header_name='stdlib.h'):
45 conf.define('HAVE_STDLIB_H', 1) 47 conf.define('HAVE_STDLIB_H', 1)
46 conf.define('HAVE_GETENV', 1) 48 conf.define('HAVE_GETENV', 1)
47 49
48 conf.check_nonfatal(header_name='signal.h', define_name='HAVE_SIGNAL_H') 50 conf.check_nonfatal(header_name='signal.h', define_name='HAVE_SIGNAL_H')
49 51
50 # Check for POSIX threads 52 # Check for POSIX threads
51 test_env = conf.env.derive() 53 test_env = conf.env.derive()
52 if Options.platform != 'darwin' and Options.platform != 'cygwin': 54 if Options.platform != 'darwin' and Options.platform != 'cygwin':
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 core.use.extend(['GSL', 'GSLCBLAS', 'M']) 308 core.use.extend(['GSL', 'GSLCBLAS', 'M'])
307 core_test.use.extend(['GSL', 'GSLCBLAS', 'M']) 309 core_test.use.extend(['GSL', 'GSLCBLAS', 'M'])
308 core_test.source.extend(['test/rng-test-suite.cc']) 310 core_test.source.extend(['test/rng-test-suite.cc'])
309 311
310 if (bld.env['ENABLE_EXAMPLES']): 312 if (bld.env['ENABLE_EXAMPLES']):
311 bld.recurse('examples') 313 bld.recurse('examples')
312 314
313 pymod = bld.ns3_python_bindings() 315 pymod = bld.ns3_python_bindings()
314 if pymod is not None: 316 if pymod is not None:
315 pymod.source += ['bindings/module_helpers.cc'] 317 pymod.source += ['bindings/module_helpers.cc']
OLDNEW
« no previous file with comments | « src/core/model/wall-clock-synchronizer.cc ('k') | src/dsdv/model/dsdv-routing-protocol.cc » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b