# HG changeset patch # User Radek Brich # Date 1207865639 -7200 # Node ID c5b89d16497adbb68d9997c016c0ab77f2510a4b # Parent 242839c6d27d18ad295b20509ee700dc917869e3 fixed ICC detection diff -r 242839c6d27d -r c5b89d16497a Doxyfile --- a/Doxyfile Thu Apr 10 23:20:36 2008 +0200 +++ b/Doxyfile Fri Apr 11 00:13:59 2008 +0200 @@ -847,7 +847,7 @@ # If the GENERATE_LATEX tag is set to YES (the default) Doxygen will # generate Latex output. -GENERATE_LATEX = YES +GENERATE_LATEX = NO # The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be diff -r 242839c6d27d -r c5b89d16497a README --- a/README Thu Apr 10 23:20:36 2008 +0200 +++ b/README Fri Apr 11 00:13:59 2008 +0200 @@ -18,17 +18,16 @@ Building -------- -Type 'make all' to build everything and 'make help' for list of targets. +Type 'scons all' to build everything and 'scons -h' for list of targets. Requirements: + SCons pthreads (see bellow) Python 2.4 or newer for Python module and demos PIL (Python Imaging Library) for Python demos SDL for interactive C++ demos libpng and zlib for rendering to PNG file from C++ demos -Flags can be adjusted in config.mk. - Pthreads -------- diff -r 242839c6d27d -r c5b89d16497a SConstruct --- a/SConstruct Thu Apr 10 23:20:36 2008 +0200 +++ b/SConstruct Fri Apr 11 00:13:59 2008 +0200 @@ -47,9 +47,6 @@ opt.Save('.optioncache', env) Help(opt.GenerateHelpText(env)) -if env['intelc']: - Tool("intelc")(env) - platform = 'unknown' def CheckPlatform(context): global platform @@ -73,11 +70,16 @@ context.Result(cpu) return True +intelc = Tool("intelc").exists(env) def CheckIntelC(context): global intelc context.Message('Checking for Intel C++ Compiler... ') - intelc = "intelc" in env['TOOLS'] - context.Result(intelc) + if intelc: + testenv = Environment() + Tool("intelc").generate(testenv) + context.Result(str(testenv['INTEL_C_COMPILER_VERSION']/10.)) + else: + context.Result(intelc) return intelc def CheckGCC(context): @@ -101,7 +103,9 @@ conf.CheckIntelC() env = conf.Finish() -if intelc: + +if intelc and env['intelc']: + Tool("intelc").generate(env) cc = 'intelc' elif gcc: cc = 'gcc' @@ -118,16 +122,17 @@ cpu_flags += '-msse3 -mfpmath=sse ' cpu_flags += env['flags'] -if intelc: +if cc == 'intelc': env.Append(CCFLAGS="-O3 -w1 " + cpu_flags) -elif gcc: +elif cc == 'gcc': env.Append(CCFLAGS="-O3 -Wall -pipe " + cpu_flags) # CCFLAGS= -fno-strict-aliasing else: print "No supported compiler found." Exit(1) -print "Additional compiler flags: " + cpu_flags +print "Using compiler: " + cc +print "Additional flags: " + cpu_flags # pthread if env['PLATFORM'] == 'win32': @@ -146,7 +151,7 @@ SConscript('models/SConscript') env.Alias('docs', Command('docs/html', [], 'doxygen')) -env.Clean('docs', ['docs/html', 'docs/latex']) +env.Clean('docs', ['docs/html']) env.Alias('no-docs', ['libs', 'demos', 'models']) env.Alias('no-download', ['libs', 'demos', 'local-models'])