forked from bartvdbraak/blender
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
365 B
Python
13 lines
365 B
Python
#!/usr/bin/python
|
|
Import ('env')
|
|
|
|
sources = env.Glob('intern/*.c') + env.Glob('superlu/*.c')
|
|
|
|
incs = 'extern superlu'
|
|
|
|
if (env['OURPLATFORM'] == 'win32-mingw'):
|
|
env.BlenderLib ('blender_ONL', sources, Split(incs), [], libtype=['core','intern'], priority=[1,80] )
|
|
else:
|
|
env.BlenderLib ('blender_ONL', sources, Split(incs), [], libtype='core', priority=55 )
|
|
|