Changeset 1052 for trunk/SConstruct

Show
Ignore:
Timestamp:
01/29/08 00:44:39 (1 year ago)
Author:
vossg
Message:

rebuild scanner / parser files inside the build dir (works well with new flex/bison packages)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/SConstruct

    r1002 r1052  
    350350   else: 
    351351      common_env = Environment(ENV = os.environ,  
    352                                toolpath = '.', 
    353                                tools = ['default', 'doxygen']) 
     352                               toolpath = ['.', 'Tools/scons-build/OpenSG/Tools'], 
     353                               tools = ['g++', 'gcc', 'gnulink', 'osg_yacc', 
     354                                        'osg_lex', 'doxygen']) 
    354355 
    355356SConsignFile('.sconsign.'+GetPlatform()+common_env.subst('$CXX')) 
     
    582583    "enable_memory_debugging", "Enable memory debugging checks in OpenSG.", False) 
    583584 
     585feature_options["enable_scanparse_in_builddir"] = sca_opts.BoolOption( 
     586    "enable_scanparse_in_builddir", "Enable scanparse files generated into the builddir", False) 
     587 
    584588if "win32" == platform: 
    585589    feature_options["enable_win_localstorage"] = sca_opts.BoolOption( 
     
    743747    
    744748   # Add lexer to the build 
    745    addScanParseSkel(common_env)       
     749#   addScanParseSkel(common_env)       
    746750       
    747751   # -- Common builder settings 
     
    776780    
    777781   # ---- Generate OSGConfigured.h --- # 
    778    definemap = {"OSG_DISABLE_DEPRECATED"   : (common_env["disable_deprecated"], 
    779                                               "Disable interface that will go away in the future"), 
    780                 "OSG_NO_GLUT_GLSUBDIR"     : (common_env["disable_glut_glsubdir"], 
    781                                               "Don't use GL subdir for glut"), 
    782                 "OSG_MT_CPTR_ASPECT"       : ("MT_CPTR" == common_env["fcptr_mode"]), 
    783                 "OSG_1_COMPAT"             : common_env["enable_osg1_compat"], 
    784                 "OSG_DEPRECATED_PROPS"     : common_env["enable_deprecated_props"], 
    785                 "OSG_NEW_OSB_IO"           : common_env["enable_new_osb_io"], 
    786                 "OSG_ICC_GNU_COMPAT"       : common_env["icc_gnu_compat"], 
    787                 "OSG_ENABLE_VALGRIND_CHECKS" : common_env["enable_valgrind_checks"], 
     782   definemap = {"OSG_DISABLE_DEPRECATED"      : (common_env["disable_deprecated"], 
     783                                                 "Disable interface that will go away in the future"), 
     784                "OSG_NO_GLUT_GLSUBDIR"        : (common_env["disable_glut_glsubdir"], 
     785                                                 "Don't use GL subdir for glut"), 
     786                "OSG_MT_CPTR_ASPECT"          : ("MT_CPTR" == common_env["fcptr_mode"]), 
     787                "OSG_1_COMPAT"                : common_env["enable_osg1_compat"], 
     788                "OSG_DEPRECATED_PROPS"        : common_env["enable_deprecated_props"], 
     789                "OSG_NEW_OSB_IO"              : common_env["enable_new_osb_io"], 
     790                "OSG_ICC_GNU_COMPAT"          : common_env["icc_gnu_compat"], 
     791                "OSG_ENABLE_VALGRIND_CHECKS" : common_env["enable_valgrind_checks"], 
    788792                "OSG_ENABLE_MEMORY_DEBUGGING" : common_env["enable_memory_debugging"], 
    789793                 
    790                 "OSG_WITH_JPG"       : image_format_options["jpeg"].isAvailable(), 
    791                 "OSG_WITH_TIF"       : image_format_options["tiff"].isAvailable(), 
    792                 "OSG_WITH_PNG"       : image_format_options["png"].isAvailable(), 
    793                 "OSG_WITH_GIF"       : image_format_options["gif"].getValue(), 
    794                 "OSG_WITH_GLUT"      : optional_libs_options["glut"].isAvailable(), 
    795                 "OSG_WITH_ZLIB"      : optional_libs_options["zlib"].isAvailable(), 
    796                 "OSG_WITH_NVPERFSDK" : optional_libs_options["NVPerfSDK"].isAvailable(), 
    797                 "OSG_WITH_VTK"       : optional_libs_options["vtk"].isAvailable(), 
    798                 "OSG_WITH_COLLADA"   : optional_libs_options["collada"].isAvailable(), 
    799                 "OSG_GV_BETA"        : common_env["enable_gv_beta"] 
     794                "OSG_WITH_JPG"                : image_format_options["jpeg"].isAvailable(), 
     795                "OSG_WITH_TIF"                : image_format_options["tiff"].isAvailable(), 
     796                "OSG_WITH_PNG"                : image_format_options["png"].isAvailable(), 
     797                "OSG_WITH_GIF"                : image_format_options["gif"].getValue(), 
     798                "OSG_WITH_GLUT"               : optional_libs_options["glut"].isAvailable(), 
     799                "OSG_WITH_ZLIB"               : optional_libs_options["zlib"].isAvailable(), 
     800                "OSG_WITH_NVPERFSDK"          : optional_libs_options["NVPerfSDK"].isAvailable(), 
     801                "OSG_WITH_VTK"                : optional_libs_options["vtk"].isAvailable(), 
     802                "OSG_WITH_COLLADA"            : optional_libs_options["collada"].isAvailable(), 
     803                "OSG_GV_BETA"                 : common_env["enable_gv_beta"], 
     804                "OSG_PREBUILD_SCANPARSE"      : not common_env["enable_scanparse_in_builddir"] 
    800805               } 
    801806   if "win32" == platform:   # Win32 specific defines