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.
		
		
		
		
		
			
		
			
				
					
					
						
							31 lines
						
					
					
						
							1.1 KiB
						
					
					
				
			
		
		
	
	
							31 lines
						
					
					
						
							1.1 KiB
						
					
					
				| Import('env', 'qt_env', 'arch', 'common', 'messaging', 'gpucommon', 'visionipc', 'cereal')
 | |
| 
 | |
| src = ['ui.cc', 'paint.cc', 'sidebar.cc', '#phonelibs/nanovg/nanovg.c']
 | |
| libs = [common, 'zmq', 'capnp', 'kj', 'm', cereal, messaging, gpucommon, visionipc]
 | |
| 
 | |
| 
 | |
| if qt_env is None:
 | |
|   libs += ['EGL', 'GLESv3', 'gnustl_shared', 'log', 'utils', 'gui', 'hardware',
 | |
|            'ui', 'CB', 'gsl', 'adreno_utils', 'OpenSLES', 'cutils', 'uuid', 'OpenCL']
 | |
|   linkflags = ['-Wl,-rpath=/system/lib64,-rpath=/system/comma/usr/lib']
 | |
| 
 | |
|   src += ["android/ui.cc", "android/sl_sound.cc"]
 | |
|   env.Program('_ui', src,
 | |
|     LINKFLAGS=linkflags,
 | |
|     LIBS=libs)
 | |
| else:
 | |
|   qt_libs = ["pthread"]
 | |
| 
 | |
|   qt_modules = ["Widgets", "Gui", "Core", "DBus", "Multimedia"]
 | |
|   if arch == "Darwin":
 | |
|     qt_env["FRAMEWORKS"] += [f"Qt{m}" for m in qt_modules]
 | |
|   else:
 | |
|     qt_libs += [f"Qt5{m}" for m in qt_modules]
 | |
| 
 | |
|   if arch == "larch64":
 | |
|     qt_libs += ["GLESv2", "wayland-client"]
 | |
|   else:
 | |
|     qt_libs += ["GL"]
 | |
| 
 | |
|   qt_src = ["qt/ui.cc", "qt/window.cc", "qt/qt_sound.cc", "qt/offroad/settings.cc", "qt/offroad/onboarding.cc"] + src
 | |
|   qt_env.Program("_ui", qt_src, LIBS=qt_libs + libs)
 | |
| 
 |