commit | 505e56125eba2ce327892646eed799419240e59d | [log] [tgz] |
---|---|---|
author | Timur Iskhakov <iskhakovt@google.com> | Sun Aug 27 18:26:48 2017 -0700 |
committer | Timur Iskhakov <iskhakovt@google.com> | Mon Aug 28 13:47:10 2017 -0700 |
tree | f8596db973b3ac3caf625510f1b787ae032203c7 | |
parent | 0344e61434d7af537cbf33c86b47ec165593f7dd [diff] |
Use constant expression isTrivialDescription Used ConstantExpression::isTrivialDescription instead of relying on that expression is set to be empty string. Empty string is considered to be trivial description as well. Stops printing meaningless comments for enums like NONE = 0u, // 0 USBA = 1, // 0x0001 and keeps meaningfull ones: 1 // (0x1 << 0) 1u // (::android::hardware::wifi::V1_0::WifiStatusCode.SUCCESS implicitly + 1) Test: mma Change-Id: I36ae2485306baf35126661334767a58ee105971f
croot make hidl-gen
hidl-gen -o output-path -L language (-r interface-root) fqname output-path: directory to store the output files. language: output file for given language. e.g.c++, vts.. fqname: fully qualified name of the input files. For singe file input, follow the format: package@version::fileName For directory input, follow the format: package@version interface-root(optional): prefix and root path for fqname. If not set, use the default prefix: android.hardware and default root path defined in $TOP. examples: croot hidl-gen -o output -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0::INfc.hal hidl-gen -o output -L vts -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0 hidl-gen -o test -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0 hidl-gen -L hash -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0