Home | History | Annotate | Download | only in gyp
      1 # Copyright 2016 Google Inc. All Rights Reserved.
      2 #
      3 # Licensed under the Apache License, Version 2.0 (the "License");
      4 # you may not use this file except in compliance with the License.
      5 # You may obtain a copy of the License at
      6 #
      7 #     http://www.apache.org/licenses/LICENSE-2.0
      8 #
      9 # Unless required by applicable law or agreed to in writing, software
     10 # distributed under the License is distributed on an "AS IS" BASIS,
     11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     12 # See the License for the specific language governing permissions and
     13 # limitations under the License.
     14 {
     15 'targets': [{
     16   'target_name': 'piex-selector',
     17   'type': 'none',
     18   'conditions': [
     19     [ 'skia_android_framework', {
     20         'dependencies': [ 'android_deps.gyp:libpiex' ],
     21         'export_dependent_settings': [ 'android_deps.gyp:libpiex' ],
     22       }, {
     23         'dependencies': [ 'piex.gyp:piex' ],
     24         'export_dependent_settings': [ 'piex.gyp:piex' ],
     25     }]
     26   ]
     27 },{
     28   'target_name': 'piex',
     29   'type': 'static_library',
     30   'sources': [
     31     '../third_party/externals/piex/src/binary_parse/cached_paged_byte_array.cc',
     32     '../third_party/externals/piex/src/binary_parse/range_checked_byte_ptr.cc',
     33     '../third_party/externals/piex/src/image_type_recognition/image_type_recognition_lite.cc',
     34     '../third_party/externals/piex/src/piex.cc',
     35     '../third_party/externals/piex/src/tiff_directory/tiff_directory.cc',
     36     '../third_party/externals/piex/src/tiff_parser.cc',
     37   ],
     38   'defines': [ 'BREAK_IF_DEBUGGING_AND_OUT_OF_RANGE' ],
     39   'include_dirs': [ '../third_party/externals/piex' ],
     40   'direct_dependent_settings': {
     41     'include_dirs': [ '../third_party/externals/piex' ],
     42   },
     43   'cflags': [ '-w' ],
     44   'msvs_settings': { 'VCCLCompilerTool': { 'WarningLevel': '0' } },
     45   'xcode_settings': { 'WARNING_CFLAGS': ['-w'] },
     46 }],
     47 }
     48