platform_hardware_interfaces/update-base-files.sh
Valerie Hau ec98306549 Adding Dataspace BT2020_SRGB and ColorMode BT2020_SRGB
BT2020_SRGB is BT2020 with SRGB transfer function.  Adding to types V1.2
and upgrading methods that utilize Dataspace and ColorMode

Bug: 115335239
Test: ./libsurfaceflinger_unittest --gtest_filter=GetBestColorMode.*
Change-Id: Ic807183ae2bd0212cd8c5d7a24c93db0a1bc28fb
2018-10-22 11:19:52 -07:00

49 lines
1.7 KiB
Bash
Executable file

#!/bin/bash
if [ ! -d $ANDROID_BUILD_TOP/hardware/interfaces ] ; then
echo "Where is hardware/interfaces?";
exit 1;
fi
if [ ! -d $ANDROID_BUILD_TOP/system/libhidl/transport ] ; then
echo "Where is system/libhidl/transport?";
exit 1;
fi
echo "WARNING: This script changes files in many places."
# These files only exist to facilitate the easy transition to hidl.
options="-Lexport-header \
-randroid.hardware:hardware/interfaces \
-randroid.hidl:system/libhidl/transport"
# hardware/libhardware
hidl-gen $options \
-o $ANDROID_BUILD_TOP/hardware/libhardware/include/hardware/sensors-base.h \
android.hardware.sensors@1.0
hidl-gen $options \
-o $ANDROID_BUILD_TOP/hardware/libhardware/include/hardware/nfc-base.h \
android.hardware.nfc@1.0
hidl-gen $options \
-o $ANDROID_BUILD_TOP/hardware/libhardware/include/hardware/gnss-base.h \
android.hardware.gnss@1.0
# system/core
hidl-gen $options \
-o $ANDROID_BUILD_TOP/system/core/include/system/graphics-base-v1.0.h \
android.hardware.graphics.common@1.0
hidl-gen $options \
-o $ANDROID_BUILD_TOP/system/core/include/system/graphics-base-v1.1.h \
android.hardware.graphics.common@1.1
hidl-gen $options \
-o $ANDROID_BUILD_TOP/system/core/include/system/graphics-base-v1.2.h \
android.hardware.graphics.common@1.2
# system/media
hidl-gen $options \
-o $ANDROID_BUILD_TOP/system/media/audio/include/system/audio-base.h \
android.hardware.audio.common@2.0
hidl-gen $options \
-o $ANDROID_BUILD_TOP/system/media/audio/include/system/audio_effect-base.h \
android.hardware.audio.effect@2.0