• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

test/25-Apr-2025-648369

AST.cppD25-Apr-20258.1 KiB348250

AST.hD25-Apr-20252.4 KiB9957

Android.bpD25-Apr-20251.6 KiB5651

CompositeDeclaration.cppD25-Apr-20254.7 KiB174120

CompositeDeclaration.hD25-Apr-20251.9 KiB6231

Declaration.cppD25-Apr-20251.9 KiB7342

Declaration.hD25-Apr-20251.7 KiB6832

Define.cppD25-Apr-20251.6 KiB6434

Define.hD25-Apr-20251.5 KiB5427

EnumVarDeclaration.cppD25-Apr-20251.5 KiB5829

EnumVarDeclaration.hD25-Apr-20251.4 KiB5224

Expression.cppD25-Apr-20257.2 KiB295212

Expression.hD25-Apr-20252.7 KiB9257

FunctionDeclaration.cppD25-Apr-20252.4 KiB10064

FunctionDeclaration.hD25-Apr-20251.6 KiB5728

Include.cppD25-Apr-20251.2 KiB4822

Include.hD25-Apr-20251.3 KiB4922

Note.cppD25-Apr-20251.2 KiB5933

Note.hD25-Apr-20251.4 KiB5222

README.mdD25-Apr-20251.8 KiB4933

Scope.hD25-Apr-20251.9 KiB8447

Type.cppD25-Apr-20256.7 KiB261192

Type.hD25-Apr-20253.2 KiB11876

TypeDef.cppD25-Apr-20251.1 KiB4117

TypeDef.hD25-Apr-20251.2 KiB4621

VarDeclaration.cppD25-Apr-20251.4 KiB5730

VarDeclaration.hD25-Apr-20251.3 KiB4821

c2hal_l.llD25-Apr-202510.9 KiB316255

c2hal_y.yyD25-Apr-202512.8 KiB545482

main.cppD25-Apr-20255.3 KiB200143

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 [email protected].
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 [email protected] system/tools/hidl/c2hal/test/test.h
30
31# Build the simple.h header:
32c2hal -r android.hardware:hardware/interfaces -p [email protected] system/tools/hidl/c2hal/test/simple.h
33
34# Build a particular libhardware header:
35c2hal -r android.hardware:hardware/interfaces -p [email protected] 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