Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
test/ | 22-Nov-2023 | - | 631 | 351 | ||
AST.cpp | D | 22-Nov-2023 | 8.1 KiB | 349 | 251 | |
AST.h | D | 22-Nov-2023 | 2.4 KiB | 99 | 57 | |
Android.bp | D | 22-Nov-2023 | 1.2 KiB | 48 | 43 | |
CompositeDeclaration.cpp | D | 22-Nov-2023 | 4.7 KiB | 174 | 120 | |
CompositeDeclaration.h | D | 22-Nov-2023 | 1.9 KiB | 62 | 31 | |
Declaration.cpp | D | 22-Nov-2023 | 1.9 KiB | 73 | 42 | |
Declaration.h | D | 22-Nov-2023 | 1.7 KiB | 68 | 32 | |
Define.cpp | D | 22-Nov-2023 | 1.6 KiB | 64 | 34 | |
Define.h | D | 22-Nov-2023 | 1.5 KiB | 54 | 27 | |
EnumVarDeclaration.cpp | D | 22-Nov-2023 | 1.5 KiB | 58 | 29 | |
EnumVarDeclaration.h | D | 22-Nov-2023 | 1.4 KiB | 52 | 24 | |
Expression.cpp | D | 22-Nov-2023 | 7.2 KiB | 304 | 212 | |
Expression.h | D | 22-Nov-2023 | 2.7 KiB | 92 | 57 | |
FunctionDeclaration.cpp | D | 22-Nov-2023 | 2.4 KiB | 100 | 64 | |
FunctionDeclaration.h | D | 22-Nov-2023 | 1.6 KiB | 57 | 28 | |
Include.cpp | D | 22-Nov-2023 | 1.2 KiB | 48 | 22 | |
Include.h | D | 22-Nov-2023 | 1.3 KiB | 49 | 22 | |
Note.cpp | D | 22-Nov-2023 | 1.2 KiB | 59 | 33 | |
Note.h | D | 22-Nov-2023 | 1.4 KiB | 52 | 22 | |
README.md | D | 22-Nov-2023 | 1.8 KiB | 49 | 33 | |
Scope.h | D | 22-Nov-2023 | 1.9 KiB | 84 | 47 | |
Type.cpp | D | 22-Nov-2023 | 6.7 KiB | 265 | 192 | |
Type.h | D | 22-Nov-2023 | 3.2 KiB | 118 | 76 | |
TypeDef.cpp | D | 22-Nov-2023 | 1.1 KiB | 41 | 17 | |
TypeDef.h | D | 22-Nov-2023 | 1.2 KiB | 46 | 21 | |
VarDeclaration.cpp | D | 22-Nov-2023 | 1.4 KiB | 57 | 30 | |
VarDeclaration.h | D | 22-Nov-2023 | 1.3 KiB | 48 | 21 | |
c2hal_l.ll | D | 22-Nov-2023 | 10.9 KiB | 317 | 255 | |
c2hal_y.yy | D | 22-Nov-2023 | 12.8 KiB | 545 | 482 | |
main.cpp | D | 22-Nov-2023 | 5.1 KiB | 195 | 140 |
README.md
1# c2hal user-guide 2 3## 1. Build 4 5``` 6croot 7make c2hal -j64 8``` 9 10## 2. Run 11 12``` 13c2hal [-g] [-o dir] -p package (-r interface-root)+ (header-filepath)+ 14``` 15 16-o output path: If missing, the second half of a relevant interface-root will be used. 17 18-p package: For example android.hardware.baz@1.0. 19This will be used as the package in .hal files and will also be used to construct the correct directory structure. 20 21-g: Enabling this flag changes the behavior of c2hal to parse opengl files. 22 23-r package:path root: For example 'android.hardware:hardware/interfaces'. 24 25Examples: 26 27``` 28# Build the test.h header: 29c2hal -r android.hardware:hardware/interfaces -p android.hardware.baz@1.0 system/tools/hidl/c2hal/test/test.h 30 31# Build the simple.h header: 32c2hal -r android.hardware:hardware/interfaces -p android.hardware.simple@1.0 system/tools/hidl/c2hal/test/simple.h 33 34# Build a particular libhardware header: 35c2hal -r android.hardware:hardware/interfaces -p android.hardware.nfc@1.0 hardware/libhardware/include/hardware/nfc.h 36 37# Build all headers from libhardware: 38python3 system/tools/hidl/c2hal/test/build_all.py ~/android/master/hardware/libhardware/include/hardware/ 39 40# Build various OpenGl versions: 41python3 system/tools/hidl/c2hal/test/build_all.py -g ~/android/master/frameworks/native/opengl/include/EGL/ 42python3 system/tools/hidl/c2hal/test/build_all.py -g ~/android/master/frameworks/native/opengl/include/ETC1/ 43python3 system/tools/hidl/c2hal/test/build_all.py -g ~/android/master/frameworks/native/opengl/include/GLES/ 44python3 system/tools/hidl/c2hal/test/build_all.py -g ~/android/master/frameworks/native/opengl/include/GLES2/ 45python3 system/tools/hidl/c2hal/test/build_all.py -g ~/android/master/frameworks/native/opengl/include/GLES3/ 46python3 system/tools/hidl/c2hal/test/build_all.py -g ~/android/master/frameworks/native/opengl/include/KHR/ 47``` 48 49