6a53c0ae6a
I should have talked to joeedh before committing last time... This is an another attempt to fix the mingw long commandline issue on all versions of windows (I didn't realize that the 2k in Win2k refered to the length of the commandline). In this version, I break libsrc.a up so that no archive has more than 30 object files (adjustable with one line of code). I also fudge the priority numbers to ensure correct linking. This was done in a "guess the number" way until it worked, so please test and please check for correctness.
13 lines
376 B
Python
13 lines
376 B
Python
#!/usr/bin/python
|
|
Import ('env')
|
|
|
|
sources = env.Glob('intern/*.cpp')
|
|
|
|
incs = 'intern ../container ../moto/include ../memutil'
|
|
|
|
if (env['OURPLATFORM'] == 'win32-mingw'):
|
|
env.BlenderLib ('blender_BSP', sources, Split(incs), [], libtype=['common','intern'], priority=[26,26] )
|
|
else:
|
|
env.BlenderLib ('blender_BSP', sources, Split(incs), [], libtype='core', priority=15 )
|
|
|