forked from xuzhongxing/fuchsia-notes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fidl.txt
43 lines (35 loc) · 1.73 KB
/
fidl.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
\section{fidl}
\begin{verbatim}
appmgr里用到了component/cpp/fidl.h
首先用gen_response_file.py为一组fidl文件生成response file和library file。
fidlc读入response file, 生成json ir。
然后fidlgen为c++, dart, go, rust各生成一组接口文件。
fidl compiler的前端在zircon里,后端在garnet里。
/usr/bin/env ../../build/fidl/gen_response_file.py
--out-response-file fidling/gen/garnet/public/lib/app/fidl/fidl.args
--out-libraries fidling/gen/garnet/public/lib/app/fidl/fidl.libraries
--json fidling/gen/garnet/public/lib/app/fidl/fidl.fidl.json
--c-header fidling/gen/component/c/fidl.h
--tables fidling/gen/garnet/public/lib/app/fidl/fidl.fidl.tables.cc
--name component
--sources ../../garnet/public/lib/app/fidl/application_launcher.fidl
../../garnet/public/lib/app/fidl/component_controller.fidl
../../garnet/public/lib/app/fidl/environment.fidl
../../garnet/public/lib/app/fidl/environment_controller.fidl
../../garnet/public/lib/app/fidl/flat_namespace.fidl
../../garnet/public/lib/app/fidl/loader.fidl
../../garnet/public/lib/app/fidl/runner.fidl
../../garnet/public/lib/app/fidl/service_provider.fidl
--dep-libraries fidling/gen/garnet/public/lib/mem/fidl/fidl.libraries
/usr/bin/env ../../build/gn_run_binary.sh
../../buildtools/linux-x64/clang/bin
host_x64/fidlc
@fidling/gen/garnet/public/lib/app/fidl/fidl.args
/usr/bin/env ../../build/gn_run_binary.sh
../../buildtools/linux-x64/clang/bin
host_x64/fidlgen
--json fidling/gen/garnet/public/lib/app/fidl/fidl.fidl.json
--output-base fidling/gen/component/cpp/fidl
--include-base fidling/gen
--generators cpp
\end{verbatim}