Index: webrtc/modules/video_coding/codecs/h264/h264.gypi |
diff --git a/webrtc/modules/video_coding/codecs/h264/h264.gypi b/webrtc/modules/video_coding/codecs/h264/h264.gypi |
index a20865c3aaa55ceb414dfa5ce3c7981f6183a146..2121c70ca4e4ca33181871eaef3c758361f3bbe3 100644 |
--- a/webrtc/modules/video_coding/codecs/h264/h264.gypi |
+++ b/webrtc/modules/video_coding/codecs/h264/h264.gypi |
@@ -14,6 +14,38 @@ |
{ |
'target_name': 'webrtc_h264', |
'type': 'static_library', |
+ 'dependencies': [ |
+ '<(webrtc_root)/common_video/common_video.gyp:common_video', |
+ '<(webrtc_root)/modules/video_coding/utility/video_coding_utility.gyp:video_coding_utility', |
+ '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers', |
+ ], |
+ 'include_dirs': [ |
+ # TODO(hbos): proper OpenH264 dependency |
+ '<(webrtc_root)/modules/video_coding/codecs/h264/openh264/codec/api/svc', |
+ '<(webrtc_root)/modules/video_coding/codecs/h264/openh264/codec/common', |
+ '<(webrtc_root)/modules/video_coding/codecs/h264/openh264/codec/encoder/core/inc', |
+ '<(webrtc_root)/modules/video_coding/codecs/h264/openh264/codec/encoder/plus/inc', |
+ '<(webrtc_root)/modules/video_coding/codecs/h264/openh264/codec/processing/interface', |
+ ], |
+ 'link_settings': { |
+ 'libraries': [ |
+ # TODO(hbos): proper OpenH264 dependency |
+ # The directory |
+ '-L../../webrtc/modules/video_coding/codecs/h264/openh264', |
Niklas Enbom
2015/09/14 22:33:14
FYI does not work when building chrome
hbos
2015/09/15 15:25:33
Acknowledged. (Fixed, but will have to change agai
|
+ # The library files '-lXXX' -> 'libXXX.a' inside openh254 directory |
+ '-lcommon', |
+ '-lconsole_common', |
+ '-ldecoder', |
+ '-lencoder', |
+ '-lopenh264', |
+ '-lprocessing', |
+ |
+ # YOU GOTTA DO |
+ # export LD_LIBRARY_PATH=~/ssd/webrtc/src/webrtc/modules/video_coding/codecs/h264/openh264/ |
+ # (or you know the equivalent path) |
+ # IN ORDER FOR IT TO FIND THE LIBRARY WHEN YOU RUN A PROGRAM! |
+ ], |
+ }, |
'conditions': [ |
['OS=="ios"', { |
'dependencies': [ |
@@ -26,6 +58,10 @@ |
], |
'sources': [ |
'h264.cc', |
+ 'h264_encoder_impl.cc', |
+ 'h264_encoder_impl.h', |
+ 'h264_decoder_impl.cc', |
+ 'h264_decoder_impl.h', |
'include/h264.h', |
], |
}, # webrtc_h264 |