blob: 630ccfe05d2f13af1d040643e74090b153c2df90 [file] [log] [blame]
yujieqin916de9f2016-01-25 08:26:16 -08001# 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', {
msarett7869bbf2016-01-25 11:40:02 -080020 'dependencies': [ 'android_deps.gyp:libpiex' ],
21 'export_dependent_settings': [ 'android_deps.gyp:libpiex' ],
yujieqin916de9f2016-01-25 08:26:16 -080022 }, {
msarett7869bbf2016-01-25 11:40:02 -080023 'dependencies': [ 'piex.gyp:piex' ],
24 'export_dependent_settings': [ 'piex.gyp:piex' ],
yujieqin916de9f2016-01-25 08:26:16 -080025 }]
26 ]
27},{
28 'target_name': 'piex',
29 'type': 'static_library',
30 'sources': [
mtkleinb9c61f72016-02-08 06:33:07 -080031 '../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',
yujieqin916de9f2016-01-25 08:26:16 -080034 '../third_party/externals/piex/src/piex.cc',
mtkleinb9c61f72016-02-08 06:33:07 -080035 '../third_party/externals/piex/src/tiff_directory/tiff_directory.cc',
yujieqin916de9f2016-01-25 08:26:16 -080036 '../third_party/externals/piex/src/tiff_parser.cc',
37 ],
mtklein6fd4e442016-02-08 09:35:05 -080038 'defines': [ 'BREAK_IF_DEBUGGING_AND_OUT_OF_RANGE' ],
mtkleinb9c61f72016-02-08 06:33:07 -080039 'include_dirs': [ '../third_party/externals/piex' ],
yujieqin916de9f2016-01-25 08:26:16 -080040 'direct_dependent_settings': {
mtkleinb9c61f72016-02-08 06:33:07 -080041 'include_dirs': [ '../third_party/externals/piex' ],
yujieqin916de9f2016-01-25 08:26:16 -080042 },
mtkleinb9c61f72016-02-08 06:33:07 -080043 'cflags': [ '-w' ],
44 'msvs_settings': { 'VCCLCompilerTool': { 'WarningLevel': '0' } },
45 'xcode_settings': { 'WARNING_CFLAGS': ['-w'] },
yujieqin916de9f2016-01-25 08:26:16 -080046}],
47}