Bug 1153849 - Use MOZ_JPEG_CFLAGS when build libyuv with system jpeg. r?glandium draft
authorHector Zhao <bzhao@mozilla.com>
Thu, 21 Jan 2016 23:19:13 +0800
changeset 323920 734284f91e68589e4fecdda63b37e4c7ccd74079
parent 323893 977d78a8dd78afbc0153d37fd9887c3a200dce6a
child 513295 9207177627820f62c61bbf51e7552b0ee24ac4a5
push id9809
push userbzhao@mozilla.com
push dateThu, 21 Jan 2016 15:21:07 +0000
reviewersglandium
bugs1153849
milestone46.0a1
Bug 1153849 - Use MOZ_JPEG_CFLAGS when build libyuv with system jpeg. r?glandium
media/libyuv/libyuv.gyp
--- a/media/libyuv/libyuv.gyp
+++ b/media/libyuv/libyuv.gyp
@@ -80,16 +80,19 @@
       # Allows libyuv.a redistributable library without external dependencies.
       # 'standalone_static_library': 1,
       'conditions': [
         # TODO(fbarchard): Use gyp define to enable jpeg.
         [ 'build_with_mozilla==1', {
           'defines': [
             'HAVE_JPEG'
           ],
+          'cflags_mozilla': [
+            '$(MOZ_JPEG_CFLAGS)',
+          ],
         }],
         [ 'OS != "ios" and build_with_mozilla!=1', {
           'defines': [
             'HAVE_JPEG'
           ],
           'conditions': [
             # Android uses libjpeg for system jpeg support.
             [ 'OS == "android" and use_system_libjpeg == 1', {