gecko/dom/camera/update.sh
Inder Kumar ext:(%20and%20Mike%20Habicher%20%3Cmhabicher%40mozilla.com%3E) 796bda9b42 Bug 776062: Add support for recording video on gonk. r=cjones,double,ikumar,mikeh sr=sicking
2012-09-28 22:30:52 -07:00

15 lines
836 B
Bash

# Usage: ./update.sh <android_ics_os_src_directory>
#
# Copies the needed files from the directory containing the original
# Android ICS OS source and applies the B2G specific changes for the
# camcorder functionality in B2G.
cp $1/frameworks/base/media/libmediaplayerservice/StagefrightRecorder.cpp ./GonkRecorder.cpp
cp $1/frameworks/base/media/libmediaplayerservice/StagefrightRecorder.h ./GonkRecorder.h
cp $1/frameworks/base/media/libstagefright/CameraSource.cpp ./GonkCameraSource.cpp
cp $1/frameworks/base/include/media/stagefright/CameraSource.h ./GonkCameraSource.h
cp $1/frameworks/base/media/libmedia/AudioParameter.cpp ./AudioParameter.cpp
cp $1/frameworks/base/include/camera/Camera.h ./GonkCameraListener.h
patch -p1 <update.patch
# If you import CAF sources, you also need to apply update2.patch
patch -p1 <update2.patch