build nui with scons (#19561)

* it builds

* cleanup

* remove that
old-commit-hash: 3c00e6792c
This commit is contained in:
Adeeb Shihadeh
2020-12-20 19:39:59 -08:00
committed by GitHub
parent 824106eab4
commit 5eecc6056f
8 changed files with 87 additions and 91 deletions
+3 -5
View File
@@ -1,12 +1,12 @@
#include <string>
#include <vector>
#include <yaml-cpp/yaml.h>
#include <capnp/dynamic.h>
#include <capnp/schema.h>
// include the dynamic struct
#include "cereal/gen/cpp/car.capnp.c++"
#include "cereal/gen/cpp/log.capnp.c++"
#include "cereal/services.h"
#include "Unlogger.hpp"
@@ -27,7 +27,6 @@ static inline uint64_t nanos_since_boot() {
Unlogger::Unlogger(Events *events_, QReadWriteLock* events_lock_, QMap<int, FrameReader*> *frs_, int seek)
: events(events_), events_lock(events_lock_), frs(frs_) {
ctx = Context::create();
YAML::Node service_list = YAML::LoadFile("../../cereal/service_list.yaml");
seek_request = seek*1e9;
@@ -37,9 +36,8 @@ Unlogger::Unlogger(Events *events_, QReadWriteLock* events_lock_, QMap<int, Fram
QStringList allow = QString(getenv("ALLOW")).split(",");
qDebug() << "allowlist" << allow;
for (const auto& it : service_list) {
auto name = it.first.as<std::string>();
for (const auto& it : services) {
std::string name = it.name;
if (allow[0].size() > 0 && !allow.contains(name.c_str())) {
qDebug() << "not allowing" << name.c_str();
continue;