[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14806] branches/soc-2008-mxcurioni/extern /freestyle/swig/SConscript: soc-2008-mxcurioni: updated swig SConscript with jmsoler's patch

Maxime Curioni maxime.curioni at gmail.com
Mon May 12 03:32:25 CEST 2008


Revision: 14806
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14806
Author:   mxcurioni
Date:     2008-05-12 03:32:17 +0200 (Mon, 12 May 2008)

Log Message:
-----------
soc-2008-mxcurioni: updated swig SConscript with jmsoler's patch

Modified Paths:
--------------
    branches/soc-2008-mxcurioni/extern/freestyle/swig/SConscript

Modified: branches/soc-2008-mxcurioni/extern/freestyle/swig/SConscript
===================================================================
--- branches/soc-2008-mxcurioni/extern/freestyle/swig/SConscript	2008-05-11 22:51:56 UTC (rev 14805)
+++ branches/soc-2008-mxcurioni/extern/freestyle/swig/SConscript	2008-05-12 01:32:17 UTC (rev 14806)
@@ -16,115 +16,105 @@
 
 swig_env = env.Copy()
 
-defines = []
-cflags = []
-debug_flags = []
-extra_flags = []
-release_flags = []
-warn_flags = []
-platform_libs = []
-platform_libpath = []
-platform_linkflags = []
 
 if env['OURPLATFORM'] in ['win32-vc','win32-mingw']:
-	win_build_dir = "#" + root_build_dir + os.sep + "/bin/"
+	win_build_dir =  root_build_dir + os.sep + "bin\\"
 	print "Under Windows, swig.exe is directly copied to build (binary) directory: " + win_build_dir
-	shutil.copy ( "#" + root + "/swig.exe", win_build_dir )
-	Exit()
+	shutil.copy (  root + "/swig.exe", win_build_dir )
+else:	
+	#  Configure
+	print "Configuring swig..."
 
-#  Configure
-print "Configuring swig..."
+	cflags = ['-g', '-O2', '-Wall', '-W','-ansi','-pedantic']
+	defines = ['-DHAVE_CONFIG_H']
 
-cflags = ['-g', '-O2', '-Wall', '-W','-ansi','-pedantic']
-defines = ['-DHAVE_CONFIG_H']
+	swig_env.Append(CPPDEFINES = defines)
+	swig_env.Append(CCFLAGS = cflags)
+	swig_env.Append(CXXFLAGS = cflags)
 
-swig_env.Append(CPPDEFINES = defines)
-swig_env.Append(CCFLAGS = cflags)
-swig_env.Append(CXXFLAGS = cflags)
+	#  Compulation parameters
 
-#  Compulation parameters
+	swig_source_files_list = ([ 'CParse/cscanner.c',
+								'CParse/parser.y',
+								'CParse/templ.c',
+								'CParse/util.c',
+								'DOH/base.c',
+								'DOH/file.c',
+								'DOH/fio.c',
+								'DOH/hash.c',
+								'DOH/list.c',
+								'DOH/memory.c',
+								'DOH/string.c',
+								'DOH/void.c',
+								'Modules/allegrocl.cxx',
+								'Modules/allocate.cxx',
+								'Modules/browser.cxx',
+								'Modules/cffi.cxx',
+								'Modules/chicken.cxx',
+								'Modules/clisp.cxx',
+								'Modules/contract.cxx',
+								'Modules/csharp.cxx',
+								'Modules/directors.cxx',
+								'Modules/emit.cxx',
+								'Modules/guile.cxx',
+								'Modules/java.cxx',
+								'Modules/lang.cxx',
+								'Modules/lua.cxx',
+								'Modules/main.cxx',
+								'Modules/modula3.cxx',
+								'Modules/module.cxx',
+								'Modules/mzscheme.cxx',
+								'Modules/ocaml.cxx',
+								'Modules/octave.cxx',
+								'Modules/overload.cxx',
+								'Modules/perl5.cxx',
+								'Modules/php4.cxx',
+								'Modules/pike.cxx',
+								'Modules/python.cxx',
+								'Modules/r.cxx',
+								'Modules/ruby.cxx',
+								'Modules/s-exp.cxx',
+								'Modules/swigmain.cxx',
+								'Modules/tcl8.cxx',
+								'Modules/typepass.cxx',
+								'Modules/uffi.cxx',
+								'Modules/utils.cxx',
+								'Modules/xml.cxx',
+								'Preprocessor/cpp.c',
+								'Preprocessor/expr.c',
+								'Swig/cwrap.c',
+								'Swig/deprecate.c',
+								'Swig/error.c',
+								'Swig/fragment.c',
+								'Swig/getopt.c',
+								'Swig/include.c',
+								'Swig/misc.c',
+								'Swig/naming.c',
+								'Swig/parms.c',
+								'Swig/scanner.c',
+								'Swig/stype.c',
+								'Swig/symbol.c',
+								'Swig/tree.c',
+								'Swig/typeobj.c',
+								'Swig/typemap.c',
+								'Swig/typesys.c',
+								'Swig/warn.c',
+								'Swig/wrapfunc.c'])
 
-swig_source_files_list = ([ 'CParse/cscanner.c',
-							'CParse/parser.y',
-							'CParse/templ.c',
-							'CParse/util.c',
-							'DOH/base.c',
-							'DOH/file.c',
-							'DOH/fio.c',
-							'DOH/hash.c',
-							'DOH/list.c',
-							'DOH/memory.c',
-							'DOH/string.c',
-							'DOH/void.c',
-							'Modules/allegrocl.cxx',
-							'Modules/allocate.cxx',
-							'Modules/browser.cxx',
-							'Modules/cffi.cxx',
-							'Modules/chicken.cxx',
-							'Modules/clisp.cxx',
-							'Modules/contract.cxx',
-							'Modules/csharp.cxx',
-							'Modules/directors.cxx',
-							'Modules/emit.cxx',
-							'Modules/guile.cxx',
-							'Modules/java.cxx',
-							'Modules/lang.cxx',
-							'Modules/lua.cxx',
-							'Modules/main.cxx',
-							'Modules/modula3.cxx',
-							'Modules/module.cxx',
-							'Modules/mzscheme.cxx',
-							'Modules/ocaml.cxx',
-							'Modules/octave.cxx',
-							'Modules/overload.cxx',
-							'Modules/perl5.cxx',
-							'Modules/php4.cxx',
-							'Modules/pike.cxx',
-							'Modules/python.cxx',
-							'Modules/r.cxx',
-							'Modules/ruby.cxx',
-							'Modules/s-exp.cxx',
-							'Modules/swigmain.cxx',
-							'Modules/tcl8.cxx',
-							'Modules/typepass.cxx',
-							'Modules/uffi.cxx',
-							'Modules/utils.cxx',
-							'Modules/xml.cxx',
-							'Preprocessor/cpp.c',
-							'Preprocessor/expr.c',
-							'Swig/cwrap.c',
-							'Swig/deprecate.c',
-							'Swig/error.c',
-							'Swig/fragment.c',
-							'Swig/getopt.c',
-							'Swig/include.c',
-							'Swig/misc.c',
-							'Swig/naming.c',
-							'Swig/parms.c',
-							'Swig/scanner.c',
-							'Swig/stype.c',
-							'Swig/symbol.c',
-							'Swig/tree.c',
-							'Swig/typeobj.c',
-							'Swig/typemap.c',
-							'Swig/typesys.c',
-							'Swig/warn.c',
-							'Swig/wrapfunc.c'])
+	swig_source_files = []
+	for source_file in swig_source_files_list:
+		swig_source_files.append('Source/' + source_file)
 
-swig_source_files = []
-for source_file in swig_source_files_list:
-	swig_source_files.append('Source/' + source_file)
+	includes = ['Source/CParse',
+				'Source/DOH',
+				'Source/Include',
+				'Source/Modules',
+				'Source/Preprocessor',
+				'Source/Swig' ]
 
-includes = ['Source/CParse',
-			'Source/DOH',
-			'Source/Include',
-			'Source/Modules',
-			'Source/Preprocessor',
-			'Source/Swig' ]
-
-swig_env.BlenderProg(builddir="#"+root_build_dir+os.sep,
-					 progname='swig',
-					 sources=swig_source_files,
-					 includes=includes,
-					 libs=[],
-					 libpath='#'+root_build_dir+'/lib')
\ No newline at end of file
+	swig_env.BlenderProg(builddir="#"+root_build_dir+os.sep,
+						 progname='swig',
+						 sources=swig_source_files,
+						 includes=includes,
+						 libs=[],
+						 libpath='#'+root_build_dir+'/lib')
\ No newline at end of file





More information about the Bf-blender-cvs mailing list