Change OURPLATFORM from "linux<major_version>" to simple "linux". Since new policy for linux kernel versions that major version in platform doesn't make much sense for building rules so the same rules could be used for both of linux2 and linux3 now/ Tested on both of linux2 and linux3 systems.
		
			
				
	
	
		
			22 lines
		
	
	
		
			638 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			638 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| #!/usr/bin/python
 | |
| Import ('env')
 | |
| 
 | |
| sources = env.Glob('intern/*.c')
 | |
| 
 | |
| incs = '. .. #/intern/guardedalloc ../blenlib ../imbuf ../makesdna ../blenloader'
 | |
| 
 | |
| defs = []
 | |
| 
 | |
| if env['WITH_BF_QUICKTIME']:
 | |
|     defs.append('WITH_QUICKTIME')
 | |
|     incs += ' ' + env['BF_QUICKTIME_INC']
 | |
| 
 | |
| if env['OURPLATFORM'] == 'linux':
 | |
|     cflags='-pthread'
 | |
|     incs += ' ../../../extern/binreloc/include'
 | |
| 
 | |
| if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
 | |
|     incs += ' ' + env['BF_PTHREADS_INC']
 | |
| 
 | |
| env.BlenderLib ( libname = 'bf_blenpluginapi', sources = sources, includes = Split(incs), defines = defs, libtype=['core'], priority = [170] )
 |