blender/source/creator/SConscript
Michel Selten 70a4ead0ae SCons updates
* Blender static now links. By default this option is disabled on all
  platforms. Simply set the option in config.opts to 'true'.
* Added the following flags to config.opts:
  - HOST_CC.    This is the C compiler for the host platform. This value is the
                same as TARGET_CC when not cross compiling.
  - HOST_CXX.   This is the C++ compiler for the host platform. This value is
                the same as TARGET_CXX when not cross compiling.
  - TARGET_CC.  This is the C compiler for the target platform.
  - TARGET_CXX. This is the C++ compiler for the target platform.
  - TARGET_AR.  This is the linker command for linking libraries.
  - PATH        This is the standard search path
  All SConscript files have been updated to reflect these changes. Now it's
  possible to change only the root SConstruct file, and all compiler specific
  variables are passed automatically to all SConscript files. Of course, this
  does not apply to makesdna because there the host and target platform is
  different from all other libraries.
  To pass a variable that applies to all platforms, all we now have to do is
  set the correct value in library_env


Note: as usual, to get the latest options in the config.opts file, first
      remove your version.
2004-02-29 21:40:48 +00:00

25 lines
1002 B
Python

Import ('user_options_dict')
Import ('library_env')
creator_env = library_env.Copy ()
source_files = ['creator.c']
creator_env.Append (CPPPATH = ['#/intern/guardedalloc',
'../blender/blenlib',
'../blender/blenkernel',
'../blender/include',
'../blender/blenloader',
'../blender/imbuf',
'../blender/renderconverter',
'../blender/render/extern/include',
'../blender/python',
'../blender/makesdna',
'../kernel/gen_messaging',
'../kernel/gen_system'])
if user_options_dict['USE_QUICKTIME'] == 1:
creator_env.Append (CPPDEFINES = ['WITH_QUICKTIME'])
creator_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_creator', source=source_files)