SConstruct (7618:47d9409b2b7f) SConstruct (7727:e40fbbe1ed4f)
1# -*- mode:python -*-
2
3# Copyright (c) 2009 The Hewlett-Packard Development Company
4# Copyright (c) 2004-2005 The Regents of The University of Michigan
5# All rights reserved.
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions are

--- 298 unchanged lines hidden (view full) ---

307
308global_sticky_vars = Variables(global_sticky_vars_file, args=ARGUMENTS)
309
310global_sticky_vars.AddVariables(
311 ('CC', 'C compiler', environ.get('CC', main['CC'])),
312 ('CXX', 'C++ compiler', environ.get('CXX', main['CXX'])),
313 ('BATCH', 'Use batch pool for build and tests', False),
314 ('BATCH_CMD', 'Batch pool submission command name', 'qdo'),
1# -*- mode:python -*-
2
3# Copyright (c) 2009 The Hewlett-Packard Development Company
4# Copyright (c) 2004-2005 The Regents of The University of Michigan
5# All rights reserved.
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions are

--- 298 unchanged lines hidden (view full) ---

307
308global_sticky_vars = Variables(global_sticky_vars_file, args=ARGUMENTS)
309
310global_sticky_vars.AddVariables(
311 ('CC', 'C compiler', environ.get('CC', main['CC'])),
312 ('CXX', 'C++ compiler', environ.get('CXX', main['CXX'])),
313 ('BATCH', 'Use batch pool for build and tests', False),
314 ('BATCH_CMD', 'Batch pool submission command name', 'qdo'),
315 ('M5_BUILD_CACHE', 'Cache built objects in this directory', False),
315 ('EXTRAS', 'Add Extra directories to the compilation', '',
316 PathListAllExist, PathListMakeAbsolute),
317 )
318
319# base help text
320help_text = '''
321Usage: scons [scons options] [build options] [target(s)]
322

--- 221 unchanged lines hidden (view full) ---

544 lib = lib[2:]
545 if lib not in py_libs:
546 py_libs.append(lib)
547py_libs.append(py_version)
548
549main.Append(CPPPATH=py_includes)
550main.Append(LIBPATH=py_lib_path)
551
316 ('EXTRAS', 'Add Extra directories to the compilation', '',
317 PathListAllExist, PathListMakeAbsolute),
318 )
319
320# base help text
321help_text = '''
322Usage: scons [scons options] [build options] [target(s)]
323

--- 221 unchanged lines hidden (view full) ---

545 lib = lib[2:]
546 if lib not in py_libs:
547 py_libs.append(lib)
548py_libs.append(py_version)
549
550main.Append(CPPPATH=py_includes)
551main.Append(LIBPATH=py_lib_path)
552
553# Cache build files in the supplied directory.
554if main['M5_BUILD_CACHE']:
555 print 'Using build cache located at', main['M5_BUILD_CACHE']
556 CacheDir(main['M5_BUILD_CACHE'])
557
558
552# verify that this stuff works
553if not conf.CheckHeader('Python.h', '<>'):
554 print "Error: can't find Python.h header in", py_includes
555 Exit(1)
556
557for lib in py_libs:
558 if not conf.CheckLib(lib):
559 print "Error: can't find library %s required by python" % lib

--- 338 unchanged lines hidden ---
559# verify that this stuff works
560if not conf.CheckHeader('Python.h', '<>'):
561 print "Error: can't find Python.h header in", py_includes
562 Exit(1)
563
564for lib in py_libs:
565 if not conf.CheckLib(lib):
566 print "Error: can't find library %s required by python" % lib

--- 338 unchanged lines hidden ---