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

Side by Side Diff: gyp/images.gyp

Issue 152513007: Build Skia for a bare-bones embedded Linux system. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: changes Created 6 years, 10 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
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 'core.gyp:*', 10 'core.gyp:*',
11 'libjpeg.gyp:*', 11 'libjpeg.gyp:*',
12 'libwebp.gyp:libwebp', 12 'libwebp.gyp:libwebp',
13 'utils.gyp:utils', 13 'utils.gyp:utils',
14 'libpng.gyp:libpng',
14 ], 15 ],
15 'conditions': [ 16 'conditions': [
16 [ 'skia_android_framework == 0', { 17 [ 'skia_android_framework == 0', {
17 'export_dependent_settings': [ 18 'export_dependent_settings': [
18 'libjpeg.gyp:*', 19 'libjpeg.gyp:*',
20 'libpng.gyp:libpng',
19 ], 21 ],
20 }], 22 }],
21 ], 23 ],
22 'include_dirs': [ 24 'include_dirs': [
23 '../include/images', 25 '../include/images',
24 '../src/lazy', 26 '../src/lazy',
25 # for access to SkErrorInternals.h 27 # for access to SkErrorInternals.h
26 '../src/core/', 28 '../src/core/',
27 # for access to SkImagePriv.h 29 # for access to SkImagePriv.h
28 '../src/image/', 30 '../src/image/',
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 '../src/images/SkImageDecoder_libpng.cpp', 114 '../src/images/SkImageDecoder_libpng.cpp',
113 '../src/images/SkImageDecoder_libgif.cpp', 115 '../src/images/SkImageDecoder_libgif.cpp',
114 '../src/images/SkMovie_gif.cpp', 116 '../src/images/SkMovie_gif.cpp',
115 ], 117 ],
116 },{ #else if skia_os != mac 118 },{ #else if skia_os != mac
117 'sources!': [ 119 'sources!': [
118 '../src/ports/SkImageDecoder_CG.cpp', 120 '../src/ports/SkImageDecoder_CG.cpp',
119 ], 121 ],
120 }], 122 }],
121 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { 123 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
122 # Any targets that depend on this target should link in libpng, libgif , and 124 'dependencies': [
123 # our code that calls it. 125 'giflib.gyp:giflib'
124 # See http://code.google.com/p/gyp/wiki/InputFormatReference#Dependent _Settings 126 ]
125 'link_settings': {
126 'libraries': [
127 '-lgif',
128 '-lpng',
129 '-lz',
130 ],
131 },
132 # end libpng/libgif stuff 127 # end libpng/libgif stuff
133 }], 128 }],
134 # FIXME: NaCl should be just like linux, etc, above, but it currently is separated out 129 # FIXME: NaCl should be just like linux, etc, above, but it currently is separated out
135 # to remove gif. Once gif is supported by naclports, this can be merged into the above 130 # to remove gif. Once gif is supported by naclports, this can be merged into the above
136 # condition. 131 # condition.
137 [ 'skia_os == "nacl"', { 132 [ 'skia_os == "nacl"', {
138 'sources!': [ 133 'sources!': [
139 '../src/images/SkImageDecoder_libgif.cpp', 134 '../src/images/SkImageDecoder_libgif.cpp',
140 '../src/images/SkMovie_gif.cpp', 135 '../src/images/SkMovie_gif.cpp',
141 ], 136 ],
142 'link_settings': {
143 'libraries': [
144 '-lpng',
145 '-lz',
146 ],
147 },
148 }], 137 }],
149 [ 'skia_os == "android"', { 138 [ 'skia_os == "android"', {
150 'include_dirs': [ 139 'include_dirs': [
151 '../src/utils', 140 '../src/utils',
152 ], 141 ],
153 'dependencies': [ 142 'dependencies': [
154 'android_deps.gyp:gif', 143 'android_deps.gyp:gif',
155 'android_deps.gyp:png', 144 'android_deps.gyp:png',
156 ], 145 ],
157 'conditions': [ 146 'conditions': [
158 [ 'skia_android_framework == 0', { 147 [ 'skia_android_framework == 0', {
159 'export_dependent_settings': [ 148 'export_dependent_settings': [
160 'android_deps.gyp:png' 149 'android_deps.gyp:png'
161 ], 150 ],
162 }], 151 }],
163 ], 152 ],
164 },{ #else if skia_os != android 153 },{ #else if skia_os != android
165 'sources!': [ 154 'sources!': [
166 '../src/images/SkImageRef_ashmem.h', 155 '../src/images/SkImageRef_ashmem.h',
167 '../src/images/SkImageRef_ashmem.cpp', 156 '../src/images/SkImageRef_ashmem.cpp',
168 ], 157 ],
169 }], 158 }],
170 [ 'skia_os == "chromeos"', { 159 [ 'skia_os == "chromeos"', {
171 'dependencies': [ 160 'dependencies': [
172 'chromeos_deps.gyp:gif', 161 'chromeos_deps.gyp:gif',
173 ], 162 ],
174 'link_settings': {
175 'libraries': [
176 '-lpng',
177 ],
178 },
179 }], 163 }],
180 [ 'skia_os == "ios"', { 164 [ 'skia_os == "ios"', {
181 'include_dirs': [ 165 'include_dirs': [
182 '../include/utils/mac', 166 '../include/utils/mac',
183 ], 167 ],
184 }], 168 }],
185 ], 169 ],
186 'direct_dependent_settings': { 170 'direct_dependent_settings': {
187 'include_dirs': [ 171 'include_dirs': [
188 '../include/images', 172 '../include/images',
189 ], 173 ],
190 }, 174 },
191 }, 175 },
192 ], 176 ],
193 } 177 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698