Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: gyp/images.gyp

Issue 15855006: prepare skia for shared library build on android (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # GYP file for images project. 1 # GYP file for images project.
2 { 2 {
3 'targets': [ 3 'targets': [
4 { 4 {
5 'target_name': 'images', 5 'target_name': 'images',
6 'product_name': 'skia_images', 6 'product_name': 'skia_images',
7 'type': 'static_library', 7 'type': 'static_library',
8 'standalone_static_library': 1, 8 'standalone_static_library': 1,
9 'dependencies': [ 9 'dependencies': [
10 'libjpeg.gyp:*', 10 'libjpeg.gyp:*',
11 'libwebp.gyp:libwebp', 11 'libwebp.gyp:libwebp',
12 'utils.gyp:utils',
13 ], 12 ],
14 'export_dependent_settings': [ 13 'export_dependent_settings': [
15 'libjpeg.gyp:*', 14 'libjpeg.gyp:*',
16 ], 15 ],
17 'include_dirs': [ 16 'include_dirs': [
18 '../include/config', 17 '../include/config',
19 '../include/core', 18 '../include/core',
20 '../include/images', 19 '../include/images',
21 '../include/lazy', 20 '../include/lazy',
22 # for access to SkErrorInternals.h 21 # for access to SkErrorInternals.h
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 '../src/ports/SkImageDecoder_WIC.cpp', 88 '../src/ports/SkImageDecoder_WIC.cpp',
90 ], 89 ],
91 }], 90 }],
92 [ 'skia_os in ["mac", "ios"]', { 91 [ 'skia_os in ["mac", "ios"]', {
93 'sources!': [ 92 'sources!': [
94 '../src/images/SkImageDecoder_FactoryDefault.cpp', 93 '../src/images/SkImageDecoder_FactoryDefault.cpp',
95 '../src/images/SkImageDecoder_libpng.cpp', 94 '../src/images/SkImageDecoder_libpng.cpp',
96 '../src/images/SkImageDecoder_libgif.cpp', 95 '../src/images/SkImageDecoder_libgif.cpp',
97 '../src/images/SkMovie_gif.cpp', 96 '../src/images/SkMovie_gif.cpp',
98 ], 97 ],
98 'include_dirs': [
99 '../include/utils/mac',
100 ],
99 },{ #else if skia_os != mac 101 },{ #else if skia_os != mac
100 'sources!': [ 102 'sources!': [
101 '../src/ports/SkImageDecoder_CG.cpp', 103 '../src/ports/SkImageDecoder_CG.cpp',
102 ], 104 ],
103 }], 105 }],
104 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { 106 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
105 # Any targets that depend on this target should link in libpng, libgif , and 107 # Any targets that depend on this target should link in libpng, libgif , and
106 # our code that calls it. 108 # our code that calls it.
107 # See http://code.google.com/p/gyp/wiki/InputFormatReference#Dependent _Settings 109 # See http://code.google.com/p/gyp/wiki/InputFormatReference#Dependent _Settings
108 'link_settings': { 110 'link_settings': {
109 'sources': [
djsollen 2013/05/30 20:35:29 let's not include these modifications as they look
110 '../src/images/SkImageDecoder_libpng.cpp',
111 ],
112 'libraries': [ 111 'libraries': [
113 '-lgif', 112 '-lgif',
114 '-lpng', 113 '-lpng',
115 '-lz', 114 '-lz',
116 ], 115 ],
117 }, 116 },
118 # end libpng/libgif stuff 117 # end libpng/libgif stuff
119 }], 118 }],
120 # FIXME: NaCl should be just like linux, etc, above, but it currently is separated out 119 # FIXME: NaCl should be just like linux, etc, above, but it currently is separated out
121 # to remove gif. Once gif is supported by naclports, this can be merged into the above 120 # to remove gif. Once gif is supported by naclports, this can be merged into the above
122 # condition. 121 # condition.
123 [ 'skia_os == "nacl"', { 122 [ 'skia_os == "nacl"', {
124 'sources!': [ 123 'sources!': [
125 '../src/images/SkImageDecoder_libgif.cpp', 124 '../src/images/SkImageDecoder_libgif.cpp',
126 '../src/images/SkMovie_gif.cpp', 125 '../src/images/SkMovie_gif.cpp',
127 ], 126 ],
128 'link_settings': { 127 'link_settings': {
129 'sources': [
130 '../src/images/SkImageDecoder_libpng.cpp',
131 ],
132 'libraries': [ 128 'libraries': [
133 '-lpng', 129 '-lpng',
134 '-lz', 130 '-lz',
135 ], 131 ],
136 }, 132 },
137 }], 133 }],
138 [ 'skia_os == "android"', { 134 [ 'skia_os == "android"', {
139 'include_dirs': [ 135 'include_dirs': [
140 '../src/utils', 136 '../src/utils',
141 ], 137 ],
142 'dependencies': [ 138 'dependencies': [
143 'android_deps.gyp:gif', 139 'android_deps.gyp:gif',
144 'android_deps.gyp:png', 140 'android_deps.gyp:png',
145 ], 141 ],
146 },{ #else if skia_os != android 142 },{ #else if skia_os != android
147 'sources!': [ 143 'sources!': [
148 '../src/images/SkImageRef_ashmem.h', 144 '../src/images/SkImageRef_ashmem.h',
149 '../src/images/SkImageRef_ashmem.cpp', 145 '../src/images/SkImageRef_ashmem.cpp',
150 ], 146 ],
151 }], 147 }],
152 [ 'skia_os == "ios"', {
153 'include_dirs': [
154 '../include/utils/mac',
155 ],
156 }],
157 ], 148 ],
158 'direct_dependent_settings': { 149 'direct_dependent_settings': {
159 'include_dirs': [ 150 'include_dirs': [
160 '../include/images', 151 '../include/images',
161 '../include/lazy', 152 '../include/lazy',
162 ], 153 ],
163 }, 154 },
164 }, 155 },
165 ], 156 ],
166 } 157 }
167 158
168 # Local Variables: 159 # Local Variables:
169 # tab-width:2 160 # tab-width:2
170 # indent-tabs-mode:nil 161 # indent-tabs-mode:nil
171 # End: 162 # End:
172 # vim: set expandtab tabstop=2 shiftwidth=2: 163 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698