OLD | NEW |
---|---|
(Empty) | |
1 # GYP file for codec project. | |
2 { | |
3 'targets': [ | |
4 { | |
5 'target_name': 'codec', | |
6 'product_name': 'skia_codec', | |
7 'type': 'static_library', | |
8 'standalone_static_library': 1, | |
9 'dependencies': [ | |
10 'core.gyp:*', | |
11 'libjpeg.gyp:*', | |
12 'etc1.gyp:libetc1', | |
13 'ktx.gyp:libSkKTX', | |
14 'libwebp.gyp:libwebp', | |
15 'utils.gyp:utils', | |
16 ], | |
17 'include_dirs': [ | |
18 '../include/codec', | |
19 '../src/codec', | |
20 ], | |
21 'sources': [ | |
22 '../src/codec/SkCodec.cpp', | |
23 '../src/codec/SkCodec_libpng.cpp', | |
24 '../src/codec/SkSwizzler.cpp', | |
25 ], | |
26 'conditions': [ | |
27 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { | |
28 'export_dependent_settings': [ | |
djsollen
2015/02/25 16:02:19
why do we want to expose these settings further up
scroggo
2015/02/25 18:00:54
This copies images.gyp almost exactly. Not sure wh
| |
29 'libpng.gyp:libpng', | |
30 'giflib.gyp:giflib' | |
31 ], | |
32 'dependencies': [ | |
33 'libpng.gyp:libpng', | |
34 'giflib.gyp:giflib' | |
35 ], | |
36 # end libpng/libgif stuff | |
37 }], | |
38 # FIXME: NaCl should be just like linux, etc, above, but it currently is separated out | |
39 # to remove gif. Once gif is supported by naclports, this can be merged into the above | |
40 # condition. | |
41 [ 'skia_os == "nacl"', { | |
42 'sources!': [ | |
43 '../src/images/SkImageDecoder_libgif.cpp', | |
44 '../src/images/SkMovie_gif.cpp', | |
45 ], | |
46 }], | |
47 [ 'skia_os == "android"', { | |
48 'dependencies': [ | |
49 'android_deps.gyp:gif', | |
50 'android_deps.gyp:png', | |
djsollen
2015/02/25 16:02:19
for android we should link in the most recent copy
scroggo
2015/02/25 18:00:54
Done.
scroggo
2015/02/26 17:45:36
I neglected to pay attention to the fact that libp
| |
51 ], | |
52 'conditions': [ | |
53 [ 'skia_android_framework == 0', { | |
54 'export_dependent_settings': [ | |
55 'android_deps.gyp:png', | |
56 'libjpeg.gyp:*' | |
57 ], | |
58 }], | |
59 ], | |
60 }], | |
61 [ 'skia_os == "chromeos"', { | |
62 'dependencies': [ | |
63 'chromeos_deps.gyp:gif', | |
64 'libpng.gyp:libpng', | |
65 ], | |
66 }], | |
67 [ 'skia_os == "ios"', { | |
68 'include_dirs': [ | |
69 '../include/utils/mac', | |
70 ], | |
71 }], | |
72 ], | |
73 'direct_dependent_settings': { | |
74 'include_dirs': [ | |
75 '../include/codec', | |
76 ], | |
77 }, | |
78 }, | |
79 ], | |
80 } | |
OLD | NEW |