libyuv.gyp 3.56 KB
Newer Older
1
# Copyright 2011 The LibYuv Project Authors. All rights reserved.
mikhal@webrtc.org's avatar
mikhal@webrtc.org committed
2 3 4 5
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file in the root of the source
# tree. An additional intellectual property rights grant can be found
6
# in the file PATENTS. All contributing project authors may
mikhal@webrtc.org's avatar
mikhal@webrtc.org committed
7 8 9
# be found in the AUTHORS file in the root of the source tree.

{
10 11 12
  'variables': {
     'use_system_libjpeg%': 0,
  },
mikhal@webrtc.org's avatar
mikhal@webrtc.org committed
13 14 15
  'targets': [
    {
      'target_name': 'libyuv',
16
      # Change type to 'shared_library' to build .so or .dll files.
mikhal@webrtc.org's avatar
mikhal@webrtc.org committed
17
      'type': 'static_library',
18
      'conditions': [
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
        # TODO(fbarchard): Use gyp define to enable jpeg.
        [ 'OS != "ios"', {
          'defines': [
            'HAVE_JPEG'
          ],
          'conditions': [
            [ 'use_system_libjpeg==0', {
              'dependencies': [
                 '<(DEPTH)/third_party/libjpeg_turbo/libjpeg.gyp:libjpeg',
              ],
            }, {
              'link_settings': {
                'libraries': [
                  '-ljpeg',
                ],
              },
            }],
36 37
          ],
        }],
38
      ],
39
      'defines': [
40
        # Enable the following 3 macros to turn off assembly for specified CPU.
41 42 43
        # 'LIBYUV_DISABLE_X86',
        # 'LIBYUV_DISABLE_NEON',
        # 'LIBYUV_DISABLE_MIPS',
44 45
        # Enable the following macro to build libyuv as a shared library (dll).
        # 'LIBYUV_USING_SHARED_LIBRARY',
46
      ],
mikhal@webrtc.org's avatar
mikhal@webrtc.org committed
47
      'include_dirs': [
48
        'include',
49
        '.',
mikhal@webrtc.org's avatar
mikhal@webrtc.org committed
50
      ],
51 52 53
      'direct_dependent_settings': {
        'include_dirs': [
          'include',
54
          '.',
55 56
        ],
      },
mikhal@webrtc.org's avatar
mikhal@webrtc.org committed
57
      'sources': [
58
        # includes.
59 60 61 62
        'include/libyuv.h',
        'include/libyuv/basic_types.h',
        'include/libyuv/compare.h',
        'include/libyuv/convert.h',
fbarchard@google.com's avatar
fbarchard@google.com committed
63
        'include/libyuv/convert_argb.h',
64
        'include/libyuv/convert_from.h',
65
        'include/libyuv/convert_from_argb.h',
66 67 68 69 70 71
        'include/libyuv/cpu_id.h',
        'include/libyuv/format_conversion.h',
        'include/libyuv/mjpeg_decoder.h',
        'include/libyuv/planar_functions.h',
        'include/libyuv/rotate.h',
        'include/libyuv/rotate_argb.h',
72
        'include/libyuv/row.h',
73 74 75 76
        'include/libyuv/scale.h',
        'include/libyuv/scale_argb.h',
        'include/libyuv/version.h',
        'include/libyuv/video_common.h',
mikhal@webrtc.org's avatar
mikhal@webrtc.org committed
77

78
        # sources.
79
        'source/compare.cc',
80
        'source/compare_common.cc',
81
        'source/compare_neon.cc',
82 83
        'source/compare_posix.cc',
        'source/compare_win.cc',
mikhal@webrtc.org's avatar
mikhal@webrtc.org committed
84
        'source/convert.cc',
fbarchard@google.com's avatar
fbarchard@google.com committed
85
        'source/convert_argb.cc',
86
        'source/convert_from.cc',
87
        'source/convert_from_argb.cc',
88
        'source/convert_jpeg.cc',
89
        'source/convert_to_argb.cc',
90
        'source/convert_to_i420.cc',
mikhal@webrtc.org's avatar
mikhal@webrtc.org committed
91 92
        'source/cpu_id.cc',
        'source/format_conversion.cc',
93
        'source/mjpeg_decoder.cc',
94
        'source/mjpeg_validate.cc',
95
        'source/planar_functions.cc',
96
        'source/rotate.cc',
97
        'source/rotate_argb.cc',
98
        'source/rotate_mips.cc',
99
        'source/rotate_neon.cc',
100
        'source/row_any.cc',
101
        'source/row_common.cc',
102
        'source/row_mips.cc',
103
        'source/row_neon.cc',
104
        'source/row_posix.cc',
105
        'source/row_win.cc',
106
        'source/scale.cc',
107
        'source/scale_argb.cc',
108
        'source/scale_argb_neon.cc',
109
        'source/scale_mips.cc',
110
        'source/scale_neon.cc',
111
        'source/video_common.cc',
mikhal@webrtc.org's avatar
mikhal@webrtc.org committed
112 113
      ],
    },
114
  ], # targets.
mikhal@webrtc.org's avatar
mikhal@webrtc.org committed
115 116 117 118 119 120 121
}

# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2: