You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							37 lines
						
					
					
						
							620 B
						
					
					
				
			
		
		
	
	
							37 lines
						
					
					
						
							620 B
						
					
					
				Import('env', 'arch', 'SHARED', 'QCOM_REPLAY')
 | 
						|
 | 
						|
if SHARED:
 | 
						|
  fxn = env.SharedLibrary
 | 
						|
else:
 | 
						|
  fxn = env.Library
 | 
						|
 | 
						|
common_libs = [
 | 
						|
  'params.cc',
 | 
						|
  'swaglog.cc',
 | 
						|
  'util.cc',
 | 
						|
  'gpio.cc',
 | 
						|
  'i2c.cc',
 | 
						|
  'watchdog.cc',
 | 
						|
]
 | 
						|
 | 
						|
_common = fxn('common', common_libs, LIBS="json11")
 | 
						|
 | 
						|
files = [
 | 
						|
  'clutil.cc',
 | 
						|
  'glutil.cc',
 | 
						|
  'visionimg.cc',
 | 
						|
]
 | 
						|
 | 
						|
if arch == "aarch64":
 | 
						|
  files += [
 | 
						|
    'framebuffer.cc',
 | 
						|
    'touch.c',
 | 
						|
  ]
 | 
						|
  _gpu_libs = ['gui', 'adreno_utils']
 | 
						|
elif arch == "larch64":
 | 
						|
  _gpu_libs = ["GLESv2"]
 | 
						|
else:
 | 
						|
  _gpu_libs = ["GL"]
 | 
						|
 | 
						|
_gpucommon = fxn('gpucommon', files, LIBS=_gpu_libs)
 | 
						|
Export('_common', '_gpucommon', '_gpu_libs')
 | 
						|
 |