fix for linking with scons.

This commit is contained in:
Campbell Barton 2012-07-16 08:42:55 +00:00
parent 5b04685f49
commit 4cacff2342
4 changed files with 12 additions and 5 deletions

View File

@ -11,4 +11,4 @@ incs += '../opencl ../nodes ../nodes/intern ../nodes/composite '
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
incs += ' ' + env['BF_PTHREADS_INC']
env.BlenderLib ( 'bf_composite', sources, Split(incs), defines=defs, libtype=['core'], priority = [191] )
env.BlenderLib ( 'bf_composite', sources, Split(incs), defines=defs, libtype=['core'], priority = [164] )

View File

@ -684,6 +684,8 @@ static void ntreeCompositExecTreeOld(bNodeTree *ntree, RenderData *rd, int do_pr
}
#endif
void *COM_linker_hack = NULL;
void ntreeCompositExecTree(bNodeTree *ntree, RenderData *rd, int rendering, int do_preview)
{
#ifdef WITH_COMPOSITOR

View File

@ -199,6 +199,12 @@ void WM_init(bContext *C, int argc, const char **argv)
#endif
BLI_strncpy(G.lib, G.main->name, FILE_MAX);
if (1) {
extern void *COM_linker_hack;
extern void *COM_execute;
COM_linker_hack = COM_execute;
}
}
void WM_init_splash(bContext *C)

View File

@ -909,10 +909,9 @@ endif()
)
if(WITH_COMPOSITOR)
#added for opencl compositor
list(APPEND BLENDER_SORTED_LIBS bf_compositor)
list(APPEND BLENDER_SORTED_LIBS bf_opencl)
list(APPEND BLENDER_SORTED_LIBS bf_blenkernel) # hrmf, needed for BKE_mask only
# added for opencl compositor
list_insert_before(BLENDER_SORTED_LIBS "bf_blenkernel" "bf_compositor")
list_insert_after(BLENDER_SORTED_LIBS "bf_compositor" "bf_opencl")
endif()
if(WITH_LIBMV)