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 --- 359 unchanged lines hidden (view full) --- 368if env['EXTRAS']: 369 extras_dir_list = env['EXTRAS'].split(':') 370else: 371 extras_dir_list = [] 372 373Export('base_dir') 374Export('extras_dir_list') 375 |
376# the ext directory should be on the #includes path 377env.Append(CPPPATH=[Dir('ext')]) 378 |
379# M5_PLY is used by isa_parser.py to find the PLY package. 380env.Append(ENV = { 'M5_PLY' : Dir('ext/ply').abspath }) 381 382CXX_version = read_command([env['CXX'],'--version'], exception=False) 383CXX_V = read_command([env['CXX'],'-V'], exception=False) 384 385env['GCC'] = CXX_version and CXX_version.find('g++') >= 0 386env['SUNCC'] = CXX_V and CXX_V.find('Sun C++') >= 0 --- 29 unchanged lines hidden (view full) --- 416 env['CXX'] = env['BATCH_CMD'] + ' ' + env['CXX'] 417 env['AS'] = env['BATCH_CMD'] + ' ' + env['AS'] 418 env['AR'] = env['BATCH_CMD'] + ' ' + env['AR'] 419 env['RANLIB'] = env['BATCH_CMD'] + ' ' + env['RANLIB'] 420 421if sys.platform == 'cygwin': 422 # cygwin has some header file issues... 423 env.Append(CCFLAGS=Split("-Wno-uninitialized")) |
424 425# Check for SWIG 426if not env.has_key('SWIG'): 427 print 'Error: SWIG utility not found.' 428 print ' Please install (see http://www.swig.org) and retry.' 429 Exit(1) 430 431# Check for appropriate SWIG version --- 471 unchanged lines hidden --- |