fix for scons with recent change to how BINRELOC is enabled via cmake.
also add WITH_PYTHON define to qtcreator project generator until we get a way to add them properly.
This commit is contained in:
@@ -94,6 +94,8 @@ qtc_cfg = join(base, "%s.config" % PROJECT_NAME)
|
||||
if not exists(qtc_cfg):
|
||||
f = open(qtc_cfg, 'w')
|
||||
f.write("// ADD PREDEFINED MACROS HERE!\n")
|
||||
# todo, include real defines.
|
||||
f.write("#define WITH_PYTHON\n")
|
||||
|
||||
print("Project file written to: %s" % qtc_prj)
|
||||
# --- end
|
||||
|
||||
2
extern/SConscript
vendored
2
extern/SConscript
vendored
@@ -13,7 +13,7 @@ if env['WITH_BF_OPENJPEG'] and env['BF_OPENJPEG_LIB'] == '':
|
||||
if env['WITH_BF_REDCODE'] and env['BF_REDCODE_LIB'] == '':
|
||||
SConscript(['libredcode/SConscript'])
|
||||
|
||||
if env['OURPLATFORM'] == 'linux2':
|
||||
if env['WITH_BF_BINRELOC']:
|
||||
SConscript(['binreloc/SConscript']);
|
||||
|
||||
if env['WITH_BF_LZO']:
|
||||
|
||||
@@ -7,11 +7,12 @@ cflags=''
|
||||
incs = '. ../makesdna ../blenkernel #/intern/guardedalloc #/intern/ghost ../editors/include ../gpu ../blenloader'
|
||||
incs += ' ' + env['BF_FREETYPE_INC']
|
||||
incs += ' ' + env['BF_ZLIB_INC']
|
||||
defs = ''
|
||||
defs = []
|
||||
|
||||
if env['OURPLATFORM'] == 'linux2':
|
||||
if env['WITH_BF_BINRELOC']:
|
||||
cflags='-pthread'
|
||||
incs += ' ../../../extern/binreloc/include'
|
||||
defs.append('WITH_BINRELOC')
|
||||
|
||||
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
|
||||
incs += ' ' + env['BF_PTHREADS_INC']
|
||||
|
||||
@@ -33,11 +33,6 @@ if(WITH_CODEC_QUICKTIME)
|
||||
add_definitions(-DWITH_QUICKTIME)
|
||||
endif()
|
||||
|
||||
if(WITH_BINRELOC)
|
||||
add_definitions(-DWITH_BINRELOC)
|
||||
blender_include_dirs(${BINRELOC_INC})
|
||||
endif()
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/dna.c
|
||||
COMMAND ${CMAKE_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/makesdna ${CMAKE_CURRENT_BINARY_DIR}/dna.c ${CMAKE_SOURCE_DIR}/source/blender/makesdna/
|
||||
|
||||
Reference in New Issue
Block a user