xref: /aosp_15_r20/external/piex/piex.gyp (revision 4d671364a067eb4f124488347677d916765212d1)
1# Copyright 2015 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'includes': ['internal_include_do_not_delete.gypi'],
16'targets': [{
17  'target_name': 'piex',
18  'type': 'static_library',
19  'sources': [
20    'src/piex.cc',
21    'src/piex_cr3.cc',
22    'src/tiff_parser.cc',
23  ],
24  'variables': {
25    'headers': [
26      'src/piex.h',
27      'src/piex_cr3.h',
28      'src/piex_types.h',
29      'src/tiff_parser.h',
30    ],
31  },
32  'include_dirs': ['.'],
33  'cflags': [
34    '-Wsign-compare',
35    '-Wsign-conversion',
36    '-Wunused-parameter',
37  ],
38  'dependencies': [
39    'binary_parse',
40    'image_type_recognition',
41    'tiff_directory',
42  ],
43}, {
44  'target_name': 'binary_parse',
45  'type': 'static_library',
46  'sources': [
47      'src/binary_parse/cached_paged_byte_array.cc',
48      'src/binary_parse/range_checked_byte_ptr.cc',
49  ],
50  'variables': {
51    'headers': [
52      'src/binary_parse/cached_paged_byte_array.h',
53      'src/binary_parse/range_checked_byte_ptr.h',
54    ],
55  },
56  'include_dirs': ['.'],
57  'cflags': [
58    '-Wsign-compare',
59    '-Wsign-conversion',
60    '-Wunused-parameter',
61  ],
62}, {
63  'target_name': 'image_type_recognition',
64  'type': 'static_library',
65  'sources': [
66    'src/image_type_recognition/image_type_recognition_lite.cc',
67  ],
68  'variables': {
69    'headers': ['src/image_type_recognition/image_type_recognition_lite.h'],
70  },
71  'include_dirs': ['.'],
72  'cflags': [
73    '-Wsign-compare',
74    '-Wsign-conversion',
75    '-Wunused-parameter',
76  ],
77  'dependencies': ['binary_parse'],
78}, {
79  'target_name': 'tiff_directory',
80  'type': 'static_library',
81  'cflags': [
82    '-Wsign-compare',
83    '-Wsign-conversion',
84    '-Wunused-parameter',
85  ],
86  'sources': [
87    'src/tiff_directory/tiff_directory.cc',
88  ],
89  'variables': {
90    'headers': ['src/tiff_directory/tiff_directory.h'],
91  },
92  'include_dirs': ['.'],
93  'dependencies': ['binary_parse'],
94}],
95}
96