| | 1 | diff -Naur ./scons-2.2.0/engine/SCons/Platform/__init__.py ./scons-2.2.0-haiku/engine/SCons/Platform/__init__.py |
| | 2 | --- ./scons-2.2.0/engine/SCons/Platform/__init__.py 2012-08-05 15:38:31.009961472 +0000 |
| | 3 | +++ ./scons-2.2.0-haiku/engine/SCons/Platform/__init__.py 2012-09-30 13:28:21.978583552 +0000 |
| | 4 | @@ -78,6 +78,8 @@ |
| | 5 | return 'aix' |
| | 6 | elif sys.platform.find('darwin') != -1: |
| | 7 | return 'darwin' |
| | 8 | + elif sys.platform.find('haiku') != -1: |
| | 9 | + return 'haiku' |
| | 10 | else: |
| | 11 | return 'posix' |
| | 12 | elif os.name == 'os2': |
| | 13 | diff -Naur ./scons-2.2.0/engine/SCons/Platform/haiku.py ./scons-2.2.0-haiku/engine/SCons/Platform/haiku.py |
| | 14 | --- ./scons-2.2.0/engine/SCons/Platform/haiku.py 1970-01-01 00:00:00.000000000 +0000 |
| | 15 | +++ ./scons-2.2.0-haiku/engine/SCons/Platform/haiku.py 2012-09-30 13:30:07.109051904 +0000 |
| | 16 | @@ -0,0 +1,54 @@ |
| | 17 | +"""SCons.Platform.haiku |
| | 18 | + |
| | 19 | +Platform-specific initialization for Haiku systems. |
| | 20 | + |
| | 21 | +There normally shouldn't be any need to import this module directly. It |
| | 22 | +will usually be imported through the generic SCons.Platform.Platform() |
| | 23 | +selection method. |
| | 24 | +""" |
| | 25 | + |
| | 26 | +# |
| | 27 | +# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 The SCons Foundation |
| | 28 | +# |
| | 29 | +# Permission is hereby granted, free of charge, to any person obtaining |
| | 30 | +# a copy of this software and associated documentation files (the |
| | 31 | +# "Software"), to deal in the Software without restriction, including |
| | 32 | +# without limitation the rights to use, copy, modify, merge, publish, |
| | 33 | +# distribute, sublicense, and/or sell copies of the Software, and to |
| | 34 | +# permit persons to whom the Software is furnished to do so, subject to |
| | 35 | +# the following conditions: |
| | 36 | +# |
| | 37 | +# The above copyright notice and this permission notice shall be included |
| | 38 | +# in all copies or substantial portions of the Software. |
| | 39 | +# |
| | 40 | +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY |
| | 41 | +# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE |
| | 42 | +# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| | 43 | +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE |
| | 44 | +# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION |
| | 45 | +# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
| | 46 | +# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| | 47 | +# |
| | 48 | + |
| | 49 | +__revision__ = "" |
| | 50 | + |
| | 51 | +import posix |
| | 52 | +import commands |
| | 53 | + |
| | 54 | +def findDir( identifier ): |
| | 55 | + return commands.getoutput( 'finddir %s' % identifier ) |
| | 56 | + |
| | 57 | +def generate(env): |
| | 58 | + posix.generate(env) |
| | 59 | + |
| | 60 | + # path list |
| | 61 | + listPath = [ '.' ] |
| | 62 | + listPath.append( '%s/bin' % findDir( 'B_USER_CONFIG_DIRECTORY' ) ) |
| | 63 | + listPath.append( findDir( 'B_COMMON_BIN_DIRECTORY' ) ) |
| | 64 | + listPath.append( findDir( 'B_SYSTEM_BIN_DIRECTORY' ) ) |
| | 65 | + listPath.append( findDir( 'B_BEOS_BIN_DIRECTORY' ) ) |
| | 66 | + listPath.append( '%s/tools/gnupro/bin' % findDir( 'B_COMMON_DEVELOP_DIRECTORY' ) ) |
| | 67 | + env['ENV']['PATH'] = ':'.join( listPath ) |
| | 68 | + |
| | 69 | + # help the linker find the startfiles |
| | 70 | + env['ENV']['BELIBRARIES'] = ':%s/lib/x86' % findDir( 'B_COMMON_DEVELOP_DIRECTORY' ) |