2016-01-25 16:26:16 +00:00
|
|
|
# Copyright 2016 Google Inc. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
{
|
|
|
|
'targets': [{
|
|
|
|
'target_name': 'piex-selector',
|
|
|
|
'type': 'none',
|
|
|
|
'conditions': [
|
|
|
|
[ 'skia_android_framework', {
|
2016-01-25 19:40:02 +00:00
|
|
|
'dependencies': [ 'android_deps.gyp:libpiex' ],
|
|
|
|
'export_dependent_settings': [ 'android_deps.gyp:libpiex' ],
|
2016-01-25 16:26:16 +00:00
|
|
|
}, {
|
2016-01-25 19:40:02 +00:00
|
|
|
'dependencies': [ 'piex.gyp:piex' ],
|
|
|
|
'export_dependent_settings': [ 'piex.gyp:piex' ],
|
2016-01-25 16:26:16 +00:00
|
|
|
}]
|
|
|
|
]
|
|
|
|
},{
|
|
|
|
'target_name': 'piex',
|
|
|
|
'type': 'static_library',
|
|
|
|
'sources': [
|
2016-02-08 14:33:07 +00:00
|
|
|
'../third_party/externals/piex/src/binary_parse/cached_paged_byte_array.cc',
|
|
|
|
'../third_party/externals/piex/src/binary_parse/range_checked_byte_ptr.cc',
|
|
|
|
'../third_party/externals/piex/src/image_type_recognition/image_type_recognition_lite.cc',
|
2016-01-25 16:26:16 +00:00
|
|
|
'../third_party/externals/piex/src/piex.cc',
|
2016-02-08 14:33:07 +00:00
|
|
|
'../third_party/externals/piex/src/tiff_directory/tiff_directory.cc',
|
2016-01-25 16:26:16 +00:00
|
|
|
'../third_party/externals/piex/src/tiff_parser.cc',
|
|
|
|
],
|
2016-02-08 17:35:05 +00:00
|
|
|
'defines': [ 'BREAK_IF_DEBUGGING_AND_OUT_OF_RANGE' ],
|
2016-02-08 14:33:07 +00:00
|
|
|
'include_dirs': [ '../third_party/externals/piex' ],
|
2016-01-25 16:26:16 +00:00
|
|
|
'direct_dependent_settings': {
|
2016-02-08 14:33:07 +00:00
|
|
|
'include_dirs': [ '../third_party/externals/piex' ],
|
2016-01-25 16:26:16 +00:00
|
|
|
},
|
2016-02-08 14:33:07 +00:00
|
|
|
'cflags': [ '-w' ],
|
|
|
|
'msvs_settings': { 'VCCLCompilerTool': { 'WarningLevel': '0' } },
|
|
|
|
'xcode_settings': { 'WARNING_CFLAGS': ['-w'] },
|
2016-01-25 16:26:16 +00:00
|
|
|
}],
|
|
|
|
}
|