Move opencl and reigidbody from source/blender/ to intern/
This modules does not depend on any blender-specific data structures or algorithms and due to our policy better be placed to intern/ Shall be no functional changes, tested CMake and SCons on Linux, hopefully other platforms will work as well. P.S. SVN history shall be preserved for the files.
This commit is contained in:
@@ -69,6 +69,14 @@ if(WITH_INTERNATIONAL)
|
||||
add_subdirectory(locale)
|
||||
endif()
|
||||
|
||||
if(WITH_BULLET)
|
||||
add_subdirectory(rigidbody)
|
||||
endif()
|
||||
|
||||
if(WITH_COMPOSITOR)
|
||||
add_subdirectory(opencl)
|
||||
endif()
|
||||
|
||||
# only windows needs utf16 converter
|
||||
if(WIN32)
|
||||
add_subdirectory(utfconv)
|
||||
|
@@ -59,6 +59,12 @@ if env['WITH_BF_BOOLEAN']:
|
||||
if env['WITH_BF_INTERNATIONAL']:
|
||||
SConscript(['locale/SConscript'])
|
||||
|
||||
if env['WITH_BF_BULLET']:
|
||||
SConscript (['rigidbody/SConscript'])
|
||||
|
||||
if env['WITH_BF_COMPOSITOR']:
|
||||
SConscript (['opencl/SConscript'])
|
||||
|
||||
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'win64-mingw', 'linuxcross', 'win64-vc'):
|
||||
SConscript(['utfconv/SConscript'])
|
||||
|
||||
|
@@ -39,4 +39,4 @@ set(SRC
|
||||
)
|
||||
|
||||
|
||||
blender_add_lib(bf_opencl "${SRC}" "${INC}" "${INC_SYS}")
|
||||
blender_add_lib(bf_intern_opencl "${SRC}" "${INC}" "${INC_SYS}")
|
@@ -31,4 +31,4 @@ sources = env.Glob('intern/*.c')
|
||||
|
||||
incs = '.'
|
||||
|
||||
env.BlenderLib ( 'bf_opencl', sources, Split(incs), libtype=['core','player'], priority = [192,192] )
|
||||
env.BlenderLib ( 'bf_intern_opencl', sources, Split(incs), libtype=['core','player'], priority = [192,192] )
|
@@ -23,7 +23,7 @@
|
||||
|
||||
SET(INC
|
||||
.
|
||||
../../../extern/bullet2/src
|
||||
../../extern/bullet2/src
|
||||
)
|
||||
|
||||
set(SRC
|
||||
@@ -32,4 +32,4 @@ set(SRC
|
||||
RBI_api.h
|
||||
)
|
||||
|
||||
blender_add_lib(bf_rigidbody "${SRC}" "${INC}" "${INC_SYS}")
|
||||
blender_add_lib(bf_intern_rigidbody "${SRC}" "${INC}" "${INC_SYS}")
|
@@ -34,9 +34,9 @@ sources = env.Glob('*.cpp')
|
||||
|
||||
incs = [
|
||||
'.',
|
||||
'../../../extern/bullet2/src',
|
||||
'../../extern/bullet2/src',
|
||||
]
|
||||
|
||||
env.BlenderLib('bf_rigidbody', sources=sources,
|
||||
env.BlenderLib('bf_intern_rigidbody', sources=sources,
|
||||
includes=incs, defines=[],
|
||||
libtype=['core', 'player'], priority=[180, 30])
|
@@ -107,12 +107,7 @@ add_subdirectory(modifiers)
|
||||
add_subdirectory(makesdna)
|
||||
add_subdirectory(makesrna)
|
||||
|
||||
if(WITH_BULLET)
|
||||
add_subdirectory(rigidbody)
|
||||
endif()
|
||||
|
||||
if(WITH_COMPOSITOR)
|
||||
add_subdirectory(opencl) # later on this may be used more generally
|
||||
add_subdirectory(compositor)
|
||||
endif()
|
||||
|
||||
|
@@ -61,12 +61,8 @@ if env['WITH_BF_OPENEXR']:
|
||||
if env['WITH_BF_QUICKTIME']:
|
||||
SConscript (['quicktime/SConscript'])
|
||||
|
||||
if env['WITH_BF_BULLET']:
|
||||
SConscript (['rigidbody/SConscript'])
|
||||
|
||||
if env['WITH_BF_COLLADA']:
|
||||
SConscript (['collada/SConscript'])
|
||||
|
||||
if env['WITH_BF_COMPOSITOR']:
|
||||
SConscript (['compositor/SConscript',
|
||||
'opencl/SConscript'])
|
||||
SConscript (['compositor/SConscript'])
|
||||
|
@@ -264,7 +264,7 @@ if(WITH_BULLET)
|
||||
${BULLET_INCLUDE_DIRS}
|
||||
)
|
||||
list(APPEND INC
|
||||
../rigidbody
|
||||
../../../intern/rigidbody
|
||||
)
|
||||
add_definitions(-DWITH_BULLET)
|
||||
endif()
|
||||
|
@@ -41,7 +41,7 @@ incs += ' ../render/extern/include ../makesrna'
|
||||
incs += ' ../imbuf ../ikplugin ../avi #/intern/elbeem/extern ../nodes ../modifiers'
|
||||
incs += ' #/intern/iksolver/extern ../blenloader'
|
||||
incs += ' #/extern/bullet2/src'
|
||||
incs += ' ../rigidbody'
|
||||
incs += ' #/intern/rigidbody'
|
||||
incs += ' #/intern/opennl/extern #/intern/bsp/extern'
|
||||
incs += ' ../gpu #/extern/glew/include'
|
||||
incs += ' ../bmesh'
|
||||
|
@@ -35,13 +35,13 @@ set(INC
|
||||
../imbuf
|
||||
../makesdna
|
||||
../makesrna
|
||||
../opencl
|
||||
../windowmanager
|
||||
../nodes
|
||||
../nodes/composite
|
||||
../nodes/intern
|
||||
../render/extern/include
|
||||
../render/intern/include
|
||||
../../../intern/opencl
|
||||
../../../intern/guardedalloc
|
||||
)
|
||||
|
||||
|
@@ -32,7 +32,7 @@ sources = env.Glob('intern/*.cpp') + env.Glob('nodes/*.cpp') + env.Glob('operati
|
||||
|
||||
incs = '. nodes intern operations ../blenlib ../blenkernel ../makesdna ../render/extern/include ../render/intern/include'
|
||||
incs += ' ../makesrna ../blenloader ../../../intern/guardedalloc ../imbuf ../windowmanager '
|
||||
incs += '../opencl ../nodes ../nodes/intern ../nodes/composite '
|
||||
incs += '#intern/opencl ../nodes ../nodes/intern ../nodes/composite '
|
||||
|
||||
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
|
||||
incs += ' ' + env['BF_PTHREADS_INC']
|
||||
|
@@ -64,7 +64,7 @@ endif()
|
||||
|
||||
if(WITH_BULLET)
|
||||
list(APPEND INC
|
||||
../../rigidbody
|
||||
../../../../intern/rigidbody
|
||||
)
|
||||
add_definitions(-DWITH_BULLET)
|
||||
endif()
|
||||
|
@@ -33,7 +33,7 @@ incs = '../include ../../blenfont ../../blenlib ../../blenkernel ../../makesdna
|
||||
incs += ' ../../windowmanager #/intern/guardedalloc #/extern/glew/include'
|
||||
incs += ' ../../gpu ../../blenloader ../../bmesh'
|
||||
incs += ' ../../makesrna ../../render/extern/include #/intern/elbeem/extern'
|
||||
incs += ' ../../rigidbody'
|
||||
incs += ' #/intern/rigidbody'
|
||||
|
||||
defs = []
|
||||
|
||||
|
@@ -38,7 +38,6 @@ incs += ' ../render/extern/include #/intern/cycles/blender'
|
||||
incs += ' ../nodes'
|
||||
incs += ' #/extern/glew/include'
|
||||
incs += ' #/intern/smoke/extern'
|
||||
incs += ' ../rigidbody'
|
||||
|
||||
incs += ' ../bmesh'
|
||||
|
||||
@@ -49,7 +48,7 @@ if env['WITH_BF_SMOKE']:
|
||||
|
||||
if env['WITH_BF_BULLET']:
|
||||
defs.append('WITH_BULLET')
|
||||
incs += ' ../../rigidbody'
|
||||
incs += ' #/intern/rigidbody'
|
||||
|
||||
if env['WITH_BF_OPENEXR']:
|
||||
defs.append('WITH_OPENEXR')
|
||||
|
@@ -240,7 +240,7 @@ endif()
|
||||
|
||||
if(WITH_BULLET)
|
||||
list(APPEND INC
|
||||
../../rigidbody
|
||||
../../../../intern/rigidbody
|
||||
)
|
||||
add_definitions(-DWITH_BULLET)
|
||||
endif()
|
||||
|
@@ -68,7 +68,7 @@ if env['WITH_BF_SMOKE']:
|
||||
|
||||
if env['WITH_BF_BULLET']:
|
||||
defs.append('WITH_BULLET')
|
||||
incs += ' ../../rigidbody'
|
||||
incs += ' #/intern/rigidbody'
|
||||
|
||||
if env['WITH_BF_OPENEXR']:
|
||||
defs.append('WITH_OPENEXR')
|
||||
|
@@ -95,7 +95,7 @@ endif()
|
||||
bf_rna
|
||||
bf_bmesh
|
||||
bf_blenkernel
|
||||
bf_rigidbody
|
||||
bf_intern_rigidbody
|
||||
bf_blenloader
|
||||
ge_blen_routines
|
||||
bf_editor_datafiles
|
||||
|
@@ -918,7 +918,7 @@ endif()
|
||||
if(WITH_COMPOSITOR)
|
||||
# added for opencl compositor
|
||||
list_insert_before(BLENDER_SORTED_LIBS "bf_blenkernel" "bf_compositor")
|
||||
list_insert_after(BLENDER_SORTED_LIBS "bf_compositor" "bf_opencl")
|
||||
list_insert_after(BLENDER_SORTED_LIBS "bf_compositor" "bf_intern_opencl")
|
||||
endif()
|
||||
|
||||
if(WITH_LIBMV)
|
||||
@@ -971,7 +971,7 @@ endif()
|
||||
endif()
|
||||
|
||||
if(WITH_BULLET)
|
||||
list_insert_after(BLENDER_SORTED_LIBS "bf_blenkernel" "bf_rigidbody")
|
||||
list_insert_after(BLENDER_SORTED_LIBS "bf_blenkernel" "bf_intern_rigidbody")
|
||||
endif()
|
||||
|
||||
if(WITH_BULLET AND NOT WITH_BULLET_SYSTEM)
|
||||
|
Reference in New Issue
Block a user