Use '/protos/' as import prefix of perfetto protos
Historically we referred to our protos assuming
./protos as the source path. So all protos did
import "perfetto/trace/xxx.proto" and C++ code did
#include "perfetto/trace/xxx.pb(zero).h".
This CL makes everything relative to the repo root,
so now things look like
import "protos/perfetto/trace/xxx.proto", likewise
for #includes.
A lot of tooling out there (mainly bazel) seems to
assume that protos are referred to relatively from
the project root. Dealing with the current situation
seems prohibitively complex.
Bug: 140126865
Change-Id: I391aafaf276b68d3576ee16157dba0155dcb0879
diff --git a/test/client_api_example.cc b/test/client_api_example.cc
index f43bd98..1448721 100644
--- a/test/client_api_example.cc
+++ b/test/client_api_example.cc
@@ -18,8 +18,8 @@
#include <thread>
-#include "perfetto/trace/test_event.pbzero.h"
-#include "perfetto/trace/trace_packet.pbzero.h"
+#include "protos/perfetto/trace/test_event.pbzero.h"
+#include "protos/perfetto/trace/trace_packet.pbzero.h"
// Deliberately not pulling any non-public perfetto header to spot accidental
// header public -> non-public dependency while building this file.