1# Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2# 3# Use of this source code is governed by a BSD-style license 4# that can be found in the LICENSE file in the root of the source 5# tree. An additional intellectual property rights grant can be found 6# in the file PATENTS. All contributing project authors may 7# be found in the AUTHORS file in the root of the source tree. 8 9{ 10 'includes': [ 11 '../../../../build/common.gypi', 12 ], 13 'targets': [ 14 { 15 'target_name': 'webrtc_h264', 16 'type': 'static_library', 17 'conditions': [ 18 ['OS=="ios"', { 19 'dependencies': [ 20 'webrtc_h264_video_toolbox', 21 ], 22 'sources': [ 23 'h264_objc.mm', 24 ], 25 }], 26 ], 27 'sources': [ 28 'h264.cc', 29 'include/h264.h', 30 ], 31 }, # webrtc_h264 32 ], 33 'conditions': [ 34 ['OS=="ios"', { 35 'targets': [ 36 { 37 'target_name': 'webrtc_h264_video_toolbox', 38 'type': 'static_library', 39 'dependencies': [ 40 '<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv', 41 ], 42 'link_settings': { 43 'xcode_settings': { 44 'OTHER_LDFLAGS': [ 45 '-framework CoreMedia', 46 '-framework CoreVideo', 47 '-framework VideoToolbox', 48 ], 49 }, 50 }, 51 'sources': [ 52 'h264_video_toolbox_decoder.cc', 53 'h264_video_toolbox_decoder.h', 54 'h264_video_toolbox_encoder.cc', 55 'h264_video_toolbox_encoder.h', 56 'h264_video_toolbox_nalu.cc', 57 'h264_video_toolbox_nalu.h', 58 ], 59 }, # webrtc_h264_video_toolbox 60 ], # targets 61 }], # OS=="ios" 62 ], # conditions 63} 64