OLD | NEW |
| (Empty) |
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:piex' ], | |
21 'export_dependent_settings': [ 'android_deps.gyp:piex' ], | |
22 }, { | |
23 'dependencies': [ 'piex' ], | |
24 'export_dependent_settings': [ 'piex' ], | |
25 }] | |
26 ] | |
27 },{ | |
28 'target_name': 'piex', | |
29 'type': 'static_library', | |
30 'sources': [ | |
31 '../third_party/externals/piex/src/piex.cc', | |
32 '../third_party/externals/piex/src/tiff_parser.cc', | |
33 ], | |
34 'variables': { | |
35 'headers': [ | |
36 '../third_party/externals/piex/src/piex.h', | |
37 '../third_party/externals/piex/src/piex_types.h', | |
38 '../third_party/externals/piex/src/tiff_parser.h', | |
39 ], | |
40 }, | |
41 'include_dirs': ['../third_party/externals/piex'], | |
42 'cflags': [ | |
43 '-Wsign-compare', | |
44 '-w', | |
45 ], | |
46 'msvs_settings': { | |
47 'VCCLCompilerTool': { | |
48 'WarningLevel': '0', | |
49 }, | |
50 }, | |
51 'xcode_settings': { | |
52 'WARNING_CFLAGS': ['-w'], | |
53 }, | |
54 'dependencies': [ | |
55 'binary_parse', | |
56 'image_type_recognition', | |
57 'tiff_directory', | |
58 ], | |
59 'direct_dependent_settings': { | |
60 'include_dirs': [ | |
61 '../third_party/externals/piex', | |
62 ], | |
63 }, | |
64 }, { | |
65 'target_name': 'binary_parse', | |
66 'type': 'static_library', | |
67 'sources': [ | |
68 '../third_party/externals/piex/src/binary_parse/cached_paged_byte_array.cc
', | |
69 '../third_party/externals/piex/src/binary_parse/range_checked_byte_ptr.cc'
, | |
70 ], | |
71 'variables': { | |
72 'headers': [ | |
73 '../third_party/externals/piex/src/binary_parse/cached_paged_byte_array.h'
, | |
74 '../third_party/externals/piex/src/binary_parse/range_checked_byte_ptr.h', | |
75 ], | |
76 }, | |
77 'include_dirs': ['../third_party/externals/piex'], | |
78 'cflags': ['-Wsign-compare'], | |
79 }, { | |
80 'target_name': 'image_type_recognition', | |
81 'type': 'static_library', | |
82 'sources': [ | |
83 '../third_party/externals/piex/src/image_type_recognition/image_type_recogni
tion_lite.cc', | |
84 ], | |
85 'variables': { | |
86 'headers': ['../third_party/externals/piex/src/image_type_recognition/image_
type_recognition_lite.h'], | |
87 }, | |
88 'include_dirs': ['../third_party/externals/piex'], | |
89 'cflags': ['-Wsign-compare'], | |
90 'dependencies': ['binary_parse'], | |
91 }, { | |
92 'target_name': 'tiff_directory', | |
93 'type': 'static_library', | |
94 'sources': [ | |
95 '../third_party/externals/piex/src/tiff_directory/tiff_directory.cc', | |
96 ], | |
97 'variables': { | |
98 'headers': ['../third_party/externals/piex/src/tiff_directory/tiff_directory
.h'], | |
99 }, | |
100 'include_dirs': ['../third_party/externals/piex'], | |
101 'dependencies': ['binary_parse'], | |
102 }], | |
103 } | |
OLD | NEW |