* Added the build system code to compile files named editors/*/*_api.c into the makesrna preprocessing. The reason to do this is to keep operators and API close together, but it doesn't fit well with the build system, especially Makefiles use an ugly hack here. * Some fixes to pass an RNA AnyType through the API, this will give a PointerRNA, for use in the interface code for example. * Added RNA wrapping of some UI template code as a test.
21 lines
587 B
Python
21 lines
587 B
Python
#!/usr/bin/python
|
|
Import ('env')
|
|
|
|
sources = env.Glob('*.c')
|
|
|
|
for source in env.Glob('*_api.c'):
|
|
sources.remove(source)
|
|
|
|
incs = '../include ../../blenlib ../../blenfont ../../blenkernel ../../makesdna ../../imbuf'
|
|
incs += ' ../../makesrna ../../windowmanager #/intern/guardedalloc #intern/bmfont'
|
|
incs += ' #/extern/glew/include'
|
|
|
|
defs = []
|
|
|
|
if env['WITH_BF_INTERNATIONAL']:
|
|
incs += ' ../../ftfont'
|
|
defs.append('INTERNATIONAL')
|
|
defs.append('FTGL_STATIC_LIBRARY')
|
|
|
|
env.BlenderLib ( 'bf_editors_interface', sources, Split(incs), Split(defs), libtype=['core'], priority=[110] )
|