|
Lines 206-212
Link Here
|
| 206 |
if lenv['WITH_BF_STATICJEMALLOC']: |
206 |
if lenv['WITH_BF_STATICJEMALLOC']: |
| 207 |
statlibs += Split(lenv['BF_JEMALLOC_LIB_STATIC']) |
207 |
statlibs += Split(lenv['BF_JEMALLOC_LIB_STATIC']) |
| 208 |
|
208 |
|
| 209 |
if lenv['OURPLATFORM']=='linux2': |
209 |
if lenv['OURPLATFORM']=='linux': |
| 210 |
if lenv['WITH_BF_3DMOUSE']: |
210 |
if lenv['WITH_BF_3DMOUSE']: |
| 211 |
libincs += Split(lenv['BF_3DMOUSE_LIBPATH']) |
211 |
libincs += Split(lenv['BF_3DMOUSE_LIBPATH']) |
| 212 |
if lenv['WITH_BF_STATIC3DMOUSE']: |
212 |
if lenv['WITH_BF_STATIC3DMOUSE']: |
|
Lines 277-283
Link Here
|
| 277 |
if not lenv['WITH_BF_STATICJEMALLOC']: |
277 |
if not lenv['WITH_BF_STATICJEMALLOC']: |
| 278 |
syslibs += Split(lenv['BF_JEMALLOC_LIB']) |
278 |
syslibs += Split(lenv['BF_JEMALLOC_LIB']) |
| 279 |
|
279 |
|
| 280 |
if lenv['OURPLATFORM']=='linux2': |
280 |
if lenv['OURPLATFORM']=='linux': |
| 281 |
if lenv['WITH_BF_3DMOUSE']: |
281 |
if lenv['WITH_BF_3DMOUSE']: |
| 282 |
if not lenv['WITH_BF_STATIC3DMOUSE']: |
282 |
if not lenv['WITH_BF_STATIC3DMOUSE']: |
| 283 |
syslibs += Split(lenv['BF_3DMOUSE_LIB']) |
283 |
syslibs += Split(lenv['BF_3DMOUSE_LIB']) |
|
Lines 364-379
Link Here
|
| 364 |
|
364 |
|
| 365 |
obj = [] |
365 |
obj = [] |
| 366 |
if lenv['BF_BUILDINFO']: |
366 |
if lenv['BF_BUILDINFO']: |
| 367 |
lenv.Append (CPPDEFINES = ['BUILD_TIME="%s"'%(build_time), |
367 |
lenv.Append (CPPDEFINES = ['BUILD_TIME=\\"%s\\"'%(build_time), |
| 368 |
'BUILD_DATE="%s"'%(build_date), |
368 |
'BUILD_DATE=\\"%s\\"'%(build_date), |
| 369 |
'BUILD_TYPE="%s"'%(build_type), |
369 |
'BUILD_TYPE=\\"%s\\"'%(build_type), |
| 370 |
'BUILD_REV="%s"'%(build_rev), |
370 |
'BUILD_REV=\\"%s\\"'%(build_rev), |
| 371 |
'NAN_BUILDINFO', |
371 |
'WITH_BUILDINFO', |
| 372 |
'BUILD_PLATFORM="%s:%s"'%(platform.system(), platform.architecture()[0]), |
372 |
'BUILD_PLATFORM=\\"%s:%s\\"'%(platform.system(), platform.architecture()[0]), |
| 373 |
'BUILD_CFLAGS=\\"%s\\"'%(build_cflags), |
373 |
'BUILD_CFLAGS=\\"%s\\"'%(build_cflags), |
| 374 |
'BUILD_CXXFLAGS=\\"%s\\"'%(build_cxxflags), |
374 |
'BUILD_CXXFLAGS=\\"%s\\"'%(build_cxxflags), |
| 375 |
'BUILD_LINKFLAGS=\\"%s\\"'%(build_linkflags), |
375 |
'BUILD_LINKFLAGS=\\"%s\\"'%(build_linkflags), |
| 376 |
'BUILD_SYSTEM="SCons"' |
376 |
'BUILD_SYSTEM=\\"SCons\\"' |
| 377 |
]) |
377 |
]) |
| 378 |
|
378 |
|
| 379 |
lenv.Append (CPPPATH = [root_build_dir+'source/blender/blenkernel']) |
379 |
lenv.Append (CPPPATH = [root_build_dir+'source/blender/blenkernel']) |
|
Lines 536-542
Link Here
|
| 536 |
print("Installing to %s"%(installdir)) |
536 |
print("Installing to %s"%(installdir)) |
| 537 |
# TODO, use tar. |
537 |
# TODO, use tar. |
| 538 |
python_zip = 'python_' + osxarch + '.zip' # set specific python_arch.zip |
538 |
python_zip = 'python_' + osxarch + '.zip' # set specific python_arch.zip |
| 539 |
print("unzipping to app-bundle: %s"%(python_zip)) |
539 |
if env['WITH_OSX_STATICPYTHON']: |
|
|
540 |
print("unzipping to app-bundle: %s"%(python_zip)) |
| 541 |
else: |
| 542 |
print("dynamic build - make sure to have python3.x-framework installed") |
| 540 |
bldroot = env.Dir('.').abspath |
543 |
bldroot = env.Dir('.').abspath |
| 541 |
binary = env['BINARYKIND'] |
544 |
binary = env['BINARYKIND'] |
| 542 |
|
545 |
|
|
Lines 569-578
Link Here
|
| 569 |
commands.getoutput(cmd) |
572 |
commands.getoutput(cmd) |
| 570 |
cmd = 'cp %s/release/bin/%s/.Blanguages %s/%s.app/Contents/Resources/'%(bldroot,VERSION,installdir,binary) |
573 |
cmd = 'cp %s/release/bin/%s/.Blanguages %s/%s.app/Contents/Resources/'%(bldroot,VERSION,installdir,binary) |
| 571 |
commands.getoutput(cmd) |
574 |
commands.getoutput(cmd) |
| 572 |
cmd = 'mkdir %s/%s.app/Contents/MacOS/%s/python/'%(installdir,binary, VERSION) |
575 |
if env['WITH_OSX_STATICPYTHON']: |
| 573 |
commands.getoutput(cmd) |
576 |
cmd = 'mkdir %s/%s.app/Contents/MacOS/%s/python/'%(installdir,binary, VERSION) |
| 574 |
cmd = 'unzip -q %s/release/%s -d %s/%s.app/Contents/MacOS/%s/python/'%(libdir,python_zip,installdir,binary,VERSION) |
577 |
commands.getoutput(cmd) |
| 575 |
commands.getoutput(cmd) |
578 |
cmd = 'unzip -q %s/release/%s -d %s/%s.app/Contents/MacOS/%s/python/'%(libdir,python_zip,installdir,binary,VERSION) |
|
|
579 |
commands.getoutput(cmd) |
| 576 |
|
580 |
|
| 577 |
if binary == 'blender':#not copy everything for blenderplayer |
581 |
if binary == 'blender':#not copy everything for blenderplayer |
| 578 |
cmd = 'cp -R %s/release/scripts %s/%s.app/Contents/MacOS/%s/'%(bldroot,installdir,binary,VERSION) |
582 |
cmd = 'cp -R %s/release/scripts %s/%s.app/Contents/MacOS/%s/'%(bldroot,installdir,binary,VERSION) |
|
Lines 775-781
Link Here
|
| 775 |
if lenv['OURPLATFORM'] in ('win32-vc', 'cygwin', 'win64-vc'): |
779 |
if lenv['OURPLATFORM'] in ('win32-vc', 'cygwin', 'win64-vc'): |
| 776 |
if lenv['BF_DEBUG']: |
780 |
if lenv['BF_DEBUG']: |
| 777 |
lenv.Prepend(LINKFLAGS = ['/DEBUG','/PDB:'+progname+'.pdb','/NODEFAULTLIB:libcmt']) |
781 |
lenv.Prepend(LINKFLAGS = ['/DEBUG','/PDB:'+progname+'.pdb','/NODEFAULTLIB:libcmt']) |
| 778 |
if lenv['OURPLATFORM']=='linux2': |
782 |
if lenv['OURPLATFORM']=='linux': |
| 779 |
if lenv['WITH_BF_PYTHON']: |
783 |
if lenv['WITH_BF_PYTHON']: |
| 780 |
lenv.Append(LINKFLAGS = lenv['BF_PYTHON_LINKFLAGS']) |
784 |
lenv.Append(LINKFLAGS = lenv['BF_PYTHON_LINKFLAGS']) |
| 781 |
if lenv['OURPLATFORM']=='sunos5': |
785 |
if lenv['OURPLATFORM']=='sunos5': |