Cleanup util.h (#20849)

* cleanup util.h

* fix build error:omx_encoder.cc:408: undefined reference to do_exit

* fix build error

* rebase master

* move helper functions back to util

* ExitHandleHelper->ExitHandlerHelper

* std::clamp

* struct ExitHandlerHelper to class

* rebase master

* cleanup

* restore ExitHandler

* prefer cassert
This commit is contained in:
Dean Lee
2021-06-01 22:53:12 +08:00
committed by GitHub
parent f184bae8e0
commit 65e0b1e699
7 changed files with 106 additions and 91 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
Import('env', 'cereal', 'messaging', 'arch')
Import('env', 'cereal', 'messaging', 'common', 'arch')
if arch == "aarch64":
env.Program('logcatd', 'logcatd_android.cc', LIBS=[cereal, messaging, 'cutils', 'zmq', 'capnp', 'kj'])
env.Program('logcatd', 'logcatd_android.cc', LIBS=[cereal, messaging, common, 'cutils', 'zmq', 'capnp', 'kj'])
else:
env.Program('logcatd', 'logcatd_systemd.cc', LIBS=[cereal, messaging, 'zmq', 'capnp', 'kj', 'systemd', 'json11'])
env.Program('logcatd', 'logcatd_systemd.cc', LIBS=[cereal, messaging, common, 'zmq', 'capnp', 'kj', 'systemd', 'json11'])