c2hal user-guide
来源:互联网 发布:北京编程培训学校 编辑:程序博客网 时间:2024/06/16 07:25
1. Build
croot
make c2hal ‐j64
2. Run
c2hal [‐g] [‐o dir] ‐p package (‐r interface‐root)+ (header‐filepath)+
-o output path: If missing, the second half of a relevant interface-root will be used.
-p package: For example android.hardware.baz@1.0. This will be used as the package in .hal files and will
also be used to construct the correct directory structure.
-g: Enabling this flag changes the behavior of c2hal to parse opengl files.
-r package:path root: For example ‘android.hardware:hardware/interfaces’.
Examples:
# Build the test.h header:
c2hal ‐r android.hardware:hardware/interfaces ‐p android.hardware.baz@1.0
system/tools/hidl/c2hal/test/test.h
# Build the simple.h header:
c2hal ‐r android.hardware:hardware/interfaces ‐p android.hardware.simple@1.0
system/tools/hidl/c2hal/test/simple.h
# Build a particular libhardware header:
c2hal ‐r android.hardware:hardware/interfaces ‐p android.hardware.nfc@1.0
hardware/libhardware/include/hardware/nfc.h
# Build all headers from libhardware:
python3 system/tools/hidl/c2hal/test/build_all.py
~/android/master/hardware/libhardware/include/hardware/
# Build various OpenGl versions:
python3 system/tools/hidl/c2hal/test/build_all.py ‐g
~/android/master/frameworks/native/opengl/include/EGL/
python3 system/tools/hidl/c2hal/test/build_all.py ‐g
~/android/master/frameworks/native/opengl/include/ETC1/
python3 system/tools/hidl/c2hal/test/build_all.py ‐g
~/android/master/frameworks/native/opengl/include/GLES/
python3 system/tools/hidl/c2hal/test/build_all.py ‐g
~/android/master/frameworks/native/opengl/include/GLES2/
python3 system/tools/hidl/c2hal/test/build_all.py ‐g
~/android/master/frameworks/native/opengl/include/GLES3/
python3 system/tools/hidl/c2hal/test/build_all.py ‐g
~/android/master/frameworks/native/opengl/include/KHR/
- c2hal user-guide
- user guide
- user guide
- GCC User Guide
- commons-fileupload user guide
- proxool user guide
- ubuntu user guide
- Auto Test User Guide
- Axis2 User's Guide
- EJBCA User Guide
- Sharepoint User's Guide
- Phpeclipse: A User Guide
- MySQLdb User's Guide
- Interactive User Guide
- Cindy User Guide
- BBC User's Guide
- Cindy User Guide
- Biowulf User Guide
- Matlab 使用Hough霍夫变换进行直线检测+寻找最长直线
- linux中profile对常用的软件的路径配置
- String一些简单方法
- mysql约束
- 排序 2
- c2hal user-guide
- 移动架构11_建造者模式
- SSL P2670 作业
- 正则表达式贪婪与非贪婪模式-学习笔记
- UVA 12118 检察员的烦恼 欧拉路径(实际上是考理解啦)
- 15算法课程 66. Plus One
- explicit
- C语言重定义不同的基类型
- rocketmq入门使用