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.
		
		
		
		
		
			
		
			
				
					
					
						
							28 lines
						
					
					
						
							756 B
						
					
					
				
			
		
		
	
	
							28 lines
						
					
					
						
							756 B
						
					
					
				| Import('env', 'arch', 'cereal', 'messaging', 'common', 'visionipc', 'gpucommon')
 | |
| 
 | |
| 
 | |
| logger_lib = env.Library('logger', ["logger.cc"])
 | |
| libs = [logger_lib, common, cereal, messaging, visionipc,
 | |
|         'zmq', 'capnp', 'kj', 'z',
 | |
|         'avformat', 'avcodec', 'swscale', 'avutil',
 | |
|         'yuv', 'bz2', 'OpenCL']
 | |
| 
 | |
| src = ['loggerd.cc']
 | |
| if arch in ["aarch64", "larch64"]:
 | |
|   src += ['omx_encoder.cc']
 | |
|   libs += ['OmxCore', 'gsl', 'CB'] + gpucommon
 | |
|   if arch == "aarch64":
 | |
|     libs += ['OmxVenc', 'cutils']
 | |
|   else:
 | |
|     libs += ['pthread']
 | |
| else:
 | |
|   src += ['raw_logger.cc']
 | |
|   libs += ['pthread']
 | |
| 
 | |
| if arch == "Darwin":
 | |
|   # fix OpenCL
 | |
|   del libs[libs.index('OpenCL')]
 | |
|   env['FRAMEWORKS'] = ['OpenCL']
 | |
| 
 | |
| env.Program(src, LIBS=libs)
 | |
| env.Program('bootlog.cc', LIBS=libs)
 | |
| 
 |