OLD | NEW |
---|---|
1 # Copyright 2015 Google Inc. | 1 # Copyright 2015 Google Inc. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 # Copyright 2015 Google Inc. | 5 # Copyright 2015 Google Inc. |
6 # | 6 # |
7 # Use of this source code is governed by a BSD-style license that can be | 7 # Use of this source code is governed by a BSD-style license that can be |
8 # found in the LICENSE file. | 8 # found in the LICENSE file. |
9 | 9 |
10 # GYP file for codec project. | 10 # GYP file for codec project. |
11 { | 11 { |
12 'includes': [ | |
13 'common.gypi', | |
scroggo
2016/01/11 17:44:02
This is unnecessary. We actually include common.gy
yujieqin
2016/01/12 10:47:40
Done.
| |
14 ], | |
12 'targets': [ | 15 'targets': [ |
13 { | 16 { |
14 'target_name': 'codec', | 17 'target_name': 'codec', |
15 'product_name': 'skia_codec', | 18 'product_name': 'skia_codec', |
16 'type': 'static_library', | 19 'type': 'static_library', |
17 'standalone_static_library': 1, | 20 'standalone_static_library': 1, |
18 'dependencies': [ | 21 'dependencies': [ |
19 'core.gyp:*', | 22 'core.gyp:*', |
20 'giflib.gyp:giflib', | 23 'giflib.gyp:giflib', |
21 'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector', | 24 'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector', |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
56 '../src/codec/SkWebpCodec.cpp', | 59 '../src/codec/SkWebpCodec.cpp', |
57 ], | 60 ], |
58 'direct_dependent_settings': { | 61 'direct_dependent_settings': { |
59 'include_dirs': [ | 62 'include_dirs': [ |
60 '../include/codec', | 63 '../include/codec', |
61 ], | 64 ], |
62 }, | 65 }, |
63 'defines': [ | 66 'defines': [ |
64 'TURBO_HAS_SKIP', | 67 'TURBO_HAS_SKIP', |
65 ], | 68 ], |
69 'conditions': [ | |
70 ['skia_codec_decodes_raw', { | |
71 'dependencies': [ | |
72 'raw_codec', | |
73 ], | |
74 },], | |
75 ], | |
76 }, { | |
77 'target_name': 'raw_codec', | |
78 'product_name': 'raw_codec', | |
79 'type': 'static_library', | |
80 'dependencies': [ | |
81 'core.gyp:*', | |
82 'dng_sdk.gyp:dng_sdk-selector', | |
83 'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector', | |
84 'piex.gyp:piex-selector', | |
85 ], | |
86 'cflags':[ | |
87 '-fexceptions', | |
88 ], | |
89 'include_dirs': [ | |
90 '../include/codec', | |
91 '../include/private', | |
92 '../src/codec', | |
93 '../src/core', | |
94 ], | |
95 'sources': [ | |
96 '../src/codec/SkRawAdapterCodec.cpp', | |
97 '../src/codec/SkRawCodec.cpp', | |
98 ], | |
99 'direct_dependent_settings': { | |
100 'include_dirs': [ | |
101 '../include/codec', | |
102 ], | |
103 }, | |
104 'defines': [ | |
105 'TURBO_HAS_SKIP', | |
106 ], | |
107 'conditions': [ | |
108 ['OS == "ios" or OS == "mac"', { | |
109 'xcode_settings': { | |
110 'OTHER_CFLAGS': ['-fexceptions'], | |
111 'OTHER_CPLUSPLUSFLAGS': ['-fexceptions'], | |
112 }, | |
113 }], | |
114 ], | |
66 }, | 115 }, |
67 ], | 116 ], |
68 } | 117 } |
OLD | NEW |