Home | History | Annotate | Download | only in files
      1 # Copyright 2011 The LibYuv 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   'variables': {
     11      'use_system_libjpeg%': 0,
     12   },
     13   'targets': [
     14     {
     15       'target_name': 'libyuv',
     16       'type': 'static_library',
     17       # 'type': 'shared_library',
     18       'conditions': [
     19          ['use_system_libjpeg==0', {
     20           'dependencies': [
     21              '<(DEPTH)/third_party/libjpeg_turbo/libjpeg.gyp:libjpeg',
     22           ],
     23         }, {
     24           'link_settings': {
     25             'libraries': [
     26               '-ljpeg',
     27             ],
     28           },
     29         }],
     30       ],
     31       'defines': [
     32         'HAVE_JPEG',
     33         # 'LIBYUV_BUILDING_SHARED_LIBRARY',
     34       ],
     35       'include_dirs': [
     36         'include',
     37         '.',
     38       ],
     39       'direct_dependent_settings': {
     40         'include_dirs': [
     41           'include',
     42           '.',
     43         ],
     44       },
     45       'sources': [
     46         # includes.
     47         'include/libyuv.h',
     48         'include/libyuv/basic_types.h',
     49         'include/libyuv/compare.h',
     50         'include/libyuv/convert.h',
     51         'include/libyuv/convert_argb.h',
     52         'include/libyuv/convert_from.h',
     53         'include/libyuv/cpu_id.h',
     54         'include/libyuv/format_conversion.h',
     55         'include/libyuv/mjpeg_decoder.h',
     56         'include/libyuv/planar_functions.h',
     57         'include/libyuv/rotate.h',
     58         'include/libyuv/rotate_argb.h',
     59         'include/libyuv/row.h',
     60         'include/libyuv/scale.h',
     61         'include/libyuv/scale_argb.h',
     62         'include/libyuv/version.h',
     63         'include/libyuv/video_common.h',
     64 
     65         # sources.
     66         'source/compare.cc',
     67         'source/compare_neon.cc',
     68         'source/convert.cc',
     69         'source/convert_argb.cc',
     70         'source/convert_from.cc',
     71         'source/cpu_id.cc',
     72         'source/format_conversion.cc',
     73         'source/mjpeg_decoder.cc',
     74         'source/planar_functions.cc',
     75         'source/rotate.cc',
     76         'source/rotate_argb.cc',
     77         'source/rotate_neon.cc',
     78         'source/row_common.cc',
     79         'source/row_neon.cc',
     80         'source/row_posix.cc',
     81         'source/row_win.cc',
     82         'source/scale.cc',
     83         'source/scale_neon.cc',
     84         'source/scale_argb.cc',
     85         'source/video_common.cc',
     86       ],
     87     },
     88   ], # targets.
     89 }
     90 
     91 # Local Variables:
     92 # tab-width:2
     93 # indent-tabs-mode:nil
     94 # End:
     95 # vim: set expandtab tabstop=2 shiftwidth=2:
     96