scons update, BF_NO_ELBEEM wasnt working, WITH_BF_SDL wasnt implimented, WITH_CCGSUBS...
authorCampbell Barton <ideasman42@gmail.com>
Fri, 19 Sep 2008 01:39:34 +0000 (01:39 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 19 Sep 2008 01:39:34 +0000 (01:39 +0000)
SConstruct
source/blender/blenkernel/SConscript
source/blender/src/SConscript
source/blender/src/seqaudio.c
tools/Blender.py

index 356f116e29030bbcc8d4bc1d3193fd2a32ae63a2..96b8c239c9c0f4a29b28c3d22c39177cc981b43c 100644 (file)
@@ -267,6 +267,18 @@ if 'blenderlite' in B.targets:
     env['WITH_BF_YAFRAY'] = False
     env['WITH_BF_REDCODE'] = False
     env['WITH_BF_FTGL'] = False
+    env['WITH_BF_DDS'] = False
+    env['WITH_BF_ZLIB'] = False
+    env['WITH_BF_SDL'] = False
+    env['WITH_BF_JPEG'] = False
+    env['WITH_BF_PNG'] = False
+    env['WITH_BF_ODE'] = False
+    env['WITH_BF_BULLET'] = False
+    env['WITH_BF_BINRELOC'] = False
+    env['BF_BUILDINFO'] = False
+    env['BF_NO_ELBEEM'] = True
+    
+
 
 # lastly we check for root_build_dir ( we should not do before, otherwise we might do wrong builddir
 #B.root_build_dir = B.arguments.get('BF_BUILDDIR', '..'+os.sep+'build'+os.sep+platform+os.sep)
index db67251f44efa9073478c33da20ad4251048d6ab..f891b307b2ccb0991b821701097b30349640f9d3 100644 (file)
@@ -43,7 +43,8 @@ if env['WITH_BF_QUICKTIME'] == 1:
     defs += ' WITH_QUICKTIME'
     incs += ' ' + env['BF_QUICKTIME_INC']
 
-defs += ' WITH_CCGSUBSURF'
+if env['BF_NO_ELBEEM'] == 1:
+    defs += ' DISABLE_ELBEEM'
 
 if env['WITH_BF_PLAYER']:
     SConscript(['bad_level_call_stubs/SConscript'])
index c8c517e15ff10d999bc3f06d5b8b56e19d751a69..c421d1e83880353bc3eb45ecf967c7b76d96f645 100644 (file)
@@ -75,7 +75,13 @@ if env['WITH_BF_VERSE']:
 # TODO buildinfo
 if env['BF_BUILDINFO'] == 1:
     defs.append('NAN_BUILDINFO')
-       
+
+if env['BF_NO_ELBEEM'] == 1:
+    defs.append('DISABLE_ELBEEM')
+
+if env['WITH_BF_SDL'] == 0:
+    defs.append('DISABLE_SDL')
+
 if (env['BF_SPLIT_SRC'] == 1) and (env['OURPLATFORM'] == 'win32-mingw'):        
        for i in range(numlibs):         
                env.BlenderLib ( libname = 'src%d' % (i), sources = subsources[i], includes = Split(incs), defines = defs, libtype=['core', 'intern'], priority = [5, 25] )      
index 7c27f32c242b1b94be8acef8abcc90dde3ae7ba0..2c86ac92c7f6ca899761222531b1c77cd7476bd5 100644 (file)
@@ -27,6 +27,7 @@
  * ***** END GPL LICENSE BLOCK *****
  */
 
+
 #include <math.h>
 #include <stdlib.h>
 #include <string.h>
@@ -118,6 +119,7 @@ void makewavstring (char *string)
 
 void audio_mixdown()
 {
+#ifndef DISABLE_SDL
        int file, c, totlen, totframe, i, oldcfra;
        char *buf;
 
@@ -203,6 +205,7 @@ void audio_mixdown()
        MEM_freeN(buf);
 
        return;
+#endif
 }
 
 void audiostream_fill(Uint8 *mixdown, int len)
@@ -211,7 +214,7 @@ void audiostream_fill(Uint8 *mixdown, int len)
        int i;
 
        memset(mixdown, 0, len);
-
+#ifndef DISABLE_SDL
        for (i = 0; i < len; i += 64) {
                CFRA = (int) ( ((float)(audio_pos-64)
                                /( G.scene->audio.mixrate*4 ))
@@ -222,6 +225,7 @@ void audiostream_fill(Uint8 *mixdown, int len)
        }
 
        CFRA = oldcfra;
+#endif
 }
 
 
@@ -288,6 +292,7 @@ void audio_makestream(bSound *sound)
        }       
 }
 
+#ifndef DISABLE_SDL
 static void audio_fill_ram_sound(Sequence *seq, void * mixdown, 
                                 Uint8 * sstream, int len)
 {
@@ -318,7 +323,9 @@ static void audio_fill_ram_sound(Sequence *seq, void * mixdown,
        }
        seq->curpos += len;
 }
+#endif
 
+#ifndef DISABLE_SDL
 static void audio_fill_hd_sound(Sequence *seq, 
                                void * mixdown, Uint8 * sstream, 
                                int len)
@@ -354,7 +361,9 @@ static void audio_fill_hd_sound(Sequence *seq,
        }
        seq->curpos += len;
 }
+#endif
 
+#ifndef DISABLE_SDL
 static void audio_fill_seq(Sequence * seq, void * mixdown,
                           Uint8 *sstream, int len, int advance_only)
 {
@@ -407,7 +416,9 @@ static void audio_fill_seq(Sequence * seq, void * mixdown,
                seq = seq->next;
        }
 }
+#endif
 
+#ifndef DISABLE_SDL
 void audio_fill(void *mixdown, Uint8 *sstream, int len)
 {    
        Editing *ed;
@@ -427,7 +438,9 @@ void audio_fill(void *mixdown, Uint8 *sstream, int len)
                }
        }
 }    
+#endif
 
+#ifndef DISABLE_SDL
 static int audio_init(SDL_AudioSpec *desired)
 {
        SDL_AudioSpec *obtained, *hardware_spec;
@@ -452,6 +465,7 @@ static int audio_init(SDL_AudioSpec *desired)
        SDL_PauseAudio(0);
        return 1;
 }
+#endif
 
 static int audiostream_play_seq(Sequence * seq, Uint32 startframe)
 {
@@ -498,6 +512,7 @@ static int audiostream_play_seq(Sequence * seq, Uint32 startframe)
 
 void audiostream_play(Uint32 startframe, Uint32 duration, int mixdown)
 {
+#ifndef DISABLE_SDL
        static SDL_AudioSpec desired;
        Editing *ed;
        int have_sound = 0;
@@ -539,6 +554,7 @@ void audiostream_play(Uint32 startframe, Uint32 duration, int mixdown)
                SDL_PauseAudio(0);
                audio_playing++;
        }
+#endif
 }
 
 void audiostream_start(Uint32 frame)
@@ -553,8 +569,10 @@ void audiostream_scrub(Uint32 frame)
 
 void audiostream_stop(void)
 {
+#ifndef DISABLE_SDL
        SDL_PauseAudio(1);
        audio_playing=0;
+#endif
 }
 
 int audiostream_pos(void) 
index 2a63ca5b697ff0c65ef5eaf97710e6b8409c13ff..8f565174b0e0d0d8602de8e70dcbfe0233c98bef 100644 (file)
@@ -111,15 +111,16 @@ def setup_staticlibs(lenv):
         '/usr/lib',
         lenv['BF_PYTHON_LIBPATH'],
         lenv['BF_OPENGL_LIBPATH'],
-        lenv['BF_SDL_LIBPATH'],
         lenv['BF_JPEG_LIBPATH'],
         lenv['BF_PNG_LIBPATH'],
         lenv['BF_ZLIB_LIBPATH'],
         lenv['BF_ICONV_LIBPATH']
         ]
-    
-    
-    libincs += Split(lenv['BF_FFMPEG_LIBPATH'])
+
+    if lenv['WITH_BF_SDL']:
+        libincs += Split(lenv['BF_SDL_LIBPATH'])
+    if lenv['WITH_BF_FFMPEG']:
+        libincs += Split(lenv['BF_FFMPEG_LIBPATH'])
     if lenv['WITH_BF_STATICCXX']:
         statlibs += Split(lenv['BF_CXX_LIB_STATIC'])
     if lenv['WITH_BF_OPENEXR']:
@@ -172,7 +173,8 @@ def setup_syslibs(lenv):
             syslibs += Split(lenv['BF_OPENEXR_LIB'])
     if lenv['WITH_BF_FFMPEG']:
         syslibs += Split(lenv['BF_FFMPEG_LIB'])
-    syslibs += Split(lenv['BF_SDL_LIB'])
+    if lenv['WITH_BF_SDL']:
+        syslibs += Split(lenv['BF_SDL_LIB'])
     if not lenv['WITH_BF_STATICOPENGL']:
         syslibs += Split(lenv['BF_OPENGL_LIB'])
     if lenv['OURPLATFORM'] in ('win32-vc', 'win32-mingw','linuxcross'):