2 # Parent 034c99a4c2010c8d60ff52daf0a183ac1fd05777
3 Bug 1341543: Update libyuv gyp file with mozilla changes r=sotaro
5 diff --git a/libyuv.gyp b/libyuv.gyp
10 'target_name': 'libyuv',
11 # Change type to 'shared_library' to build .so or .dll files.
12 'type': 'static_library',
14 'optimize': 'max', # enable O2 and ltcg.
16 # Allows libyuv.a redistributable library without external dependencies.
17 - 'standalone_static_library': 1,
18 + # 'standalone_static_library': 1,
20 # Disable -Wunused-parameter
23 '-Wno-unused-parameter',
34 # '-mthumb', # arm32 not thumb
36 + 'cflags_mozilla!': [
42 # Disable LTO in libyuv_neon target due to gcc 4.9 compiler bug.
43 ['clang == 0 and use_lto == 1', {
49 # arm64 does not need -mfpu=neon option as neon is not optional
50 ['target_arch != "arm64"', {
53 # '-marm', # arm32 not thumb
66 - ['OS != "ios" and libyuv_disable_jpeg != 1', {
67 + ['build_with_mozilla == 1', {
72 + '$(MOZ_JPEG_CFLAGS)',
75 + ['OS != "ios" and libyuv_disable_jpeg != 1 and build_with_mozilla != 1', {
80 # Caveat system jpeg support may not support motion jpeg
81 [ 'use_system_libjpeg == 1', {
83 '<(DEPTH)/third_party/libjpeg/libjpeg.gyp:libjpeg',