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

Side by Side Diff: gyp/gpu.gyp

Issue 604853003: Add support for EGL on linux (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « gyp/common_variables.gypi ('k') | gyp/gpu.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # GYP for building gpu 1 # GYP for building gpu
2 { 2 {
3 'target_defaults': { 3 'target_defaults': {
4 'conditions': [ 4 'conditions': [
5 ['skia_os != "win"', { 5 ['skia_os != "win"', {
6 'sources/': [ ['exclude', '_win.(h|cpp)$'], 6 'sources/': [ ['exclude', '_win.(h|cpp)$'],
7 ], 7 ],
8 }], 8 }],
9 ['skia_os != "mac"', { 9 ['skia_os != "mac"', {
10 'sources/': [ ['exclude', '_mac.(h|cpp|m|mm)$'], 10 'sources/': [ ['exclude', '_mac.(h|cpp|m|mm)$'],
11 ], 11 ],
12 }], 12 }],
13 ['skia_os != "linux" and skia_os != "chromeos"', { 13 ['skia_os != "linux" and skia_os != "chromeos"', {
14 'sources/': [ ['exclude', '_unix.(h|cpp)$'], 14 'sources/': [ ['exclude', '_glx.(h|cpp)$'],
15 ], 15 ],
16 }], 16 }],
17 ['skia_os != "ios"', { 17 ['skia_os != "ios"', {
18 'sources/': [ ['exclude', '_iOS.(h|cpp|m|mm)$'], 18 'sources/': [ ['exclude', '_iOS.(h|cpp|m|mm)$'],
19 ], 19 ],
20 }], 20 }],
21 ['skia_os != "android"', { 21 ['skia_os != "android"', {
22 'sources/': [ ['exclude', '_android.(h|cpp)$'], 22 'sources/': [ ['exclude', '_android.(h|cpp)$'],
23 ], 23 ],
24 }], 24 }],
25 ['skia_os != "nacl"', { 25 ['skia_os != "nacl"', {
26 'sources/': [ ['exclude', '_nacl.(h|cpp)$'], 26 'sources/': [ ['exclude', '_nacl.(h|cpp)$'],
27 ], 27 ],
28 }], 28 }],
29 ['skia_os == "nacl" or skia_egl == 0', {
30 'sources/': [ ['exclude', '_egl.(h|cpp)$'],
31 ],
32 }],
33 ['skia_os == "android"', {
34 'sources/': [ ['exclude', 'GrGLCreateNativeInterface_egl.cpp'],
35 ],
36 }],
37 ['skia_egl == 1', {
38 'sources/': [ ['exclude', '_glx.(h|cpp)$'],
39 ],
40 }],
29 # nullify the targets in this gyp file if skia_gpu is 0 41 # nullify the targets in this gyp file if skia_gpu is 0
30 [ 'skia_gpu == 0', { 42 [ 'skia_gpu == 0', {
31 'sources/': [ 43 'sources/': [
32 ['exclude', '.*'], 44 ['exclude', '.*'],
33 ], 45 ],
34 'defines/': [ 46 'defines/': [
35 ['exclude', '.*'], 47 ['exclude', '.*'],
36 ], 48 ],
37 'include_dirs/': [ 49 'include_dirs/': [
38 ['exclude', '.*'], 50 ['exclude', '.*'],
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 ], 145 ],
134 'defines': [ 146 'defines': [
135 'GR_CHROME_UTILS=1', 147 'GR_CHROME_UTILS=1',
136 ], 148 ],
137 }], 149 }],
138 [ 'skia_os == "linux" or skia_os == "chromeos"', { 150 [ 'skia_os == "linux" or skia_os == "chromeos"', {
139 'sources!': [ 151 'sources!': [
140 '../src/gpu/gl/GrGLDefaultInterface_none.cpp', 152 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
141 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp', 153 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
142 ], 154 ],
155 }],
156 [ '(skia_os == "linux" or skia_os == "chromeos") and skia_egl == 1', {
157 'link_settings': {
158 'libraries': [
159 '-lEGL',
160 '-lGLESv2',
161 ],
162 },
163 }],
164 [ '(skia_os == "linux" or skia_os == "chromeos") and skia_egl == 0', {
143 'link_settings': { 165 'link_settings': {
144 'libraries': [ 166 'libraries': [
145 '-lGL', 167 '-lGL',
146 '-lGLU', 168 '-lGLU',
147 '-lX11', 169 '-lX11',
148 ], 170 ],
149 }, 171 },
150 }], 172 }],
151 [ 'skia_os == "nacl"', { 173 [ 'skia_os == "nacl"', {
152 'link_settings': { 174 'link_settings': {
153 'libraries': [ 175 'libraries': [
154 '-lppapi_gles2', 176 '-lppapi_gles2',
155 ], 177 ],
156 }, 178 },
157 }], 179 }],
180 [ 'skia_egl == 1', {
181 'defines': [
182 'SK_EGL=1',
183 ],
184 }],
185 [ 'skia_egl == 0', {
186 'defines': [
187 'SK_EGL=0',
188 ],
189 }],
158 [ 'skia_mesa and skia_os == "linux"', { 190 [ 'skia_mesa and skia_os == "linux"', {
159 'link_settings': { 191 'link_settings': {
160 'libraries': [ 192 'libraries': [
161 '-lOSMesa', 193 '-lOSMesa',
162 ], 194 ],
163 }, 195 },
164 }], 196 }],
165 [ 'skia_os == "mac"', { 197 [ 'skia_os == "mac"', {
166 'link_settings': { 198 'link_settings': {
167 'libraries': [ 199 'libraries': [
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 'libraries': [ 251 'libraries': [
220 '-lGLESv2', 252 '-lGLESv2',
221 '-lEGL', 253 '-lEGL',
222 ], 254 ],
223 }, 255 },
224 }], 256 }],
225 ], 257 ],
226 }, 258 },
227 ], 259 ],
228 } 260 }
OLDNEW
« no previous file with comments | « gyp/common_variables.gypi ('k') | gyp/gpu.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698