yujieqin | 916de9f | 2016-01-25 08:26:16 -0800 | [diff] [blame] | 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', { |
msarett | 7869bbf | 2016-01-25 11:40:02 -0800 | [diff] [blame] | 20 | 'dependencies': [ 'android_deps.gyp:libpiex' ], |
| 21 | 'export_dependent_settings': [ 'android_deps.gyp:libpiex' ], |
yujieqin | 916de9f | 2016-01-25 08:26:16 -0800 | [diff] [blame] | 22 | }, { |
msarett | 7869bbf | 2016-01-25 11:40:02 -0800 | [diff] [blame] | 23 | 'dependencies': [ 'piex.gyp:piex' ], |
| 24 | 'export_dependent_settings': [ 'piex.gyp:piex' ], |
yujieqin | 916de9f | 2016-01-25 08:26:16 -0800 | [diff] [blame] | 25 | }] |
| 26 | ] |
| 27 | },{ |
| 28 | 'target_name': 'piex', |
| 29 | 'type': 'static_library', |
| 30 | 'sources': [ |
mtklein | b9c61f7 | 2016-02-08 06:33:07 -0800 | [diff] [blame] | 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', |
yujieqin | 916de9f | 2016-01-25 08:26:16 -0800 | [diff] [blame] | 34 | '../third_party/externals/piex/src/piex.cc', |
mtklein | b9c61f7 | 2016-02-08 06:33:07 -0800 | [diff] [blame] | 35 | '../third_party/externals/piex/src/tiff_directory/tiff_directory.cc', |
yujieqin | 916de9f | 2016-01-25 08:26:16 -0800 | [diff] [blame] | 36 | '../third_party/externals/piex/src/tiff_parser.cc', |
| 37 | ], |
mtklein | 6fd4e44 | 2016-02-08 09:35:05 -0800 | [diff] [blame] | 38 | 'defines': [ 'BREAK_IF_DEBUGGING_AND_OUT_OF_RANGE' ], |
mtklein | b9c61f7 | 2016-02-08 06:33:07 -0800 | [diff] [blame] | 39 | 'include_dirs': [ '../third_party/externals/piex' ], |
yujieqin | 916de9f | 2016-01-25 08:26:16 -0800 | [diff] [blame] | 40 | 'direct_dependent_settings': { |
mtklein | b9c61f7 | 2016-02-08 06:33:07 -0800 | [diff] [blame] | 41 | 'include_dirs': [ '../third_party/externals/piex' ], |
yujieqin | 916de9f | 2016-01-25 08:26:16 -0800 | [diff] [blame] | 42 | }, |
mtklein | b9c61f7 | 2016-02-08 06:33:07 -0800 | [diff] [blame] | 43 | 'cflags': [ '-w' ], |
| 44 | 'msvs_settings': { 'VCCLCompilerTool': { 'WarningLevel': '0' } }, |
| 45 | 'xcode_settings': { 'WARNING_CFLAGS': ['-w'] }, |
yujieqin | 916de9f | 2016-01-25 08:26:16 -0800 | [diff] [blame] | 46 | }], |
| 47 | } |