[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/bksys
From: Christian Ehrlicher <Ch.Ehrlicher () gmx ! de>
Date: 2006-01-31 18:11:57
Message-ID: 1138731117.178335.10678.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 504313 by chehrlic:
add helper function
M +13 -0 generic.py
--- trunk/KDE/kdelibs/bksys/generic.py #504312:504313
@@ -557,7 +557,19 @@
dest.close()
+#HELPER - returns the path to the platform specific bksys-directory
+#
+def getBksysPlatformPath(lenv, sys):
+ import os
+ path = 'bksys'+os.sep
+ if sys.platform == 'darwin':
+ return path+'osx'
+ elif lenv['WINDOWS']:
+ return path+'win32'
+ else:
+ return path+'unix'
+
## Scons-specific function, do not remove
def exists(env):
return true
@@ -1153,6 +1165,7 @@
SConsEnvironment.getInstDirForResType=getInstDirForResType
SConsEnvironment.write_lib_header=write_lib_header
SConsEnvironment.find_file_ext=find_file_ext
+ SConsEnvironment.getBksysPlatformPath=getBksysPlatformPath
if env.has_key('GENCXXFLAGS'): env.AppendUnique( CPPFLAGS = env['GENCXXFLAGS'] )
if env.has_key('GENCCFLAGS'): env.AppendUnique( CCFLAGS = env['GENCCFLAGS'] )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic