blob: 2df546c230050638f9ce60f51833d929d8c9ea24 [file] [log] [blame]
Jaesung Chung29345532016-01-14 02:28:47 +09001# 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/tiff_parser.cc',
22 ],
23 'variables': {
24 'headers': [
25 'src/piex.h',
26 'src/piex_types.h',
27 'src/tiff_parser.h',
28 ],
29 },
30 'include_dirs': ['.'],
Eik Brauera9540112016-01-27 13:25:41 +010031 'cflags': [
32 '-Wsign-compare',
33 '-Wsign-conversion',
34 ],
Jaesung Chung29345532016-01-14 02:28:47 +090035 'dependencies': [
36 'binary_parse',
37 'image_type_recognition',
38 'tiff_directory',
39 ],
40}, {
41 'target_name': 'binary_parse',
42 'type': 'static_library',
43 'sources': [
44 'src/binary_parse/cached_paged_byte_array.cc',
45 'src/binary_parse/range_checked_byte_ptr.cc',
46 ],
47 'variables': {
48 'headers': [
49 'src/binary_parse/cached_paged_byte_array.h',
50 'src/binary_parse/range_checked_byte_ptr.h',
51 ],
52 },
53 'include_dirs': ['.'],
Eik Brauera9540112016-01-27 13:25:41 +010054 'cflags': [
55 '-Wsign-compare',
56 '-Wsign-conversion',
57 ],
Jaesung Chung29345532016-01-14 02:28:47 +090058}, {
59 'target_name': 'image_type_recognition',
60 'type': 'static_library',
61 'sources': [
62 'src/image_type_recognition/image_type_recognition_lite.cc',
63 ],
64 'variables': {
65 'headers': ['src/image_type_recognition/image_type_recognition_lite.h'],
66 },
67 'include_dirs': ['.'],
Eik Brauera9540112016-01-27 13:25:41 +010068 'cflags': [
69 '-Wsign-compare',
70 '-Wsign-conversion',
71 ],
Jaesung Chung29345532016-01-14 02:28:47 +090072 'dependencies': ['binary_parse'],
73}, {
74 'target_name': 'tiff_directory',
75 'type': 'static_library',
Eik Brauera9540112016-01-27 13:25:41 +010076 'cflags': [
77 '-Wsign-compare',
78 '-Wsign-conversion',
79 ],
Jaesung Chung29345532016-01-14 02:28:47 +090080 'sources': [
81 'src/tiff_directory/tiff_directory.cc',
82 ],
83 'variables': {
84 'headers': ['src/tiff_directory/tiff_directory.h'],
85 },
86 'include_dirs': ['.'],
87 'dependencies': ['binary_parse'],
88}],
89}