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

Side by Side Diff: gyp/gpu.gyp

Issue 543363004: 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', '_unix.(h|cpp)$'],
15 ['exclude', 'GrGLCreateNativeInterface_egl.cpp'],
15 ], 16 ],
16 }], 17 }],
17 ['skia_os != "ios"', { 18 ['skia_os != "ios"', {
18 'sources/': [ ['exclude', '_iOS.(h|cpp|m|mm)$'], 19 'sources/': [ ['exclude', '_iOS.(h|cpp|m|mm)$'],
19 ], 20 ],
20 }], 21 }],
21 ['skia_os != "android"', { 22 ['skia_os != "android"', {
22 'sources/': [ ['exclude', '_android.(h|cpp)$'], 23 'sources/': [ ['exclude', '_android.(h|cpp)$'],
23 ], 24 ],
24 }], 25 }],
25 ['skia_os != "nacl"', { 26 ['skia_os != "nacl"', {
26 'sources/': [ ['exclude', '_nacl.(h|cpp)$'], 27 'sources/': [ ['exclude', '_nacl.(h|cpp)$'],
27 ], 28 ],
28 }], 29 }],
30 ['skia_os == "nacl" or skia_egl == 0', {
31 'sources/': [ ['exclude', '_egl.(h|cpp)$'],
32 ],
33 }],
34 ['skia_egl == 1', {
35 'sources/': [ ['exclude', '_unix.(h|cpp)$'],
36 ],
37 }],
29 # nullify the targets in this gyp file if skia_gpu is 0 38 # nullify the targets in this gyp file if skia_gpu is 0
30 [ 'skia_gpu == 0', { 39 [ 'skia_gpu == 0', {
31 'sources/': [ 40 'sources/': [
32 ['exclude', '.*'], 41 ['exclude', '.*'],
33 ], 42 ],
34 'defines/': [ 43 'defines/': [
35 ['exclude', '.*'], 44 ['exclude', '.*'],
36 ], 45 ],
37 'include_dirs/': [ 46 'include_dirs/': [
38 ['exclude', '.*'], 47 ['exclude', '.*'],
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 ], 142 ],
134 'defines': [ 143 'defines': [
135 'GR_CHROME_UTILS=1', 144 'GR_CHROME_UTILS=1',
136 ], 145 ],
137 }], 146 }],
138 [ 'skia_os == "linux" or skia_os == "chromeos"', { 147 [ 'skia_os == "linux" or skia_os == "chromeos"', {
139 'sources!': [ 148 'sources!': [
140 '../src/gpu/gl/GrGLDefaultInterface_none.cpp', 149 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
141 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp', 150 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
142 ], 151 ],
152 }],
153 [ '(skia_os == "linux" or skia_os == "chromeos") and skia_egl == 1', {
154 'link_settings': {
155 'libraries': [
156 '-lEGL',
157 '-lGLESv2',
158 ],
159 },
160 }],
161 [ '(skia_os == "linux" or skia_os == "chromeos") and skia_egl == 0', {
143 'link_settings': { 162 'link_settings': {
144 'libraries': [ 163 'libraries': [
145 '-lGL', 164 '-lGL',
146 '-lGLU', 165 '-lGLU',
147 '-lX11', 166 '-lX11',
148 ], 167 ],
149 }, 168 },
150 }], 169 }],
151 [ 'skia_os == "nacl"', { 170 [ 'skia_os == "nacl"', {
152 'link_settings': { 171 'link_settings': {
153 'libraries': [ 172 'libraries': [
154 '-lppapi_gles2', 173 '-lppapi_gles2',
155 ], 174 ],
156 }, 175 },
157 }], 176 }],
177 [ 'skia_egl==1', {
178 'defines': [
179 'SK_EGL',
180 ],
181 }],
158 [ 'skia_mesa and skia_os == "linux"', { 182 [ 'skia_mesa and skia_os == "linux"', {
159 'link_settings': { 183 'link_settings': {
160 'libraries': [ 184 'libraries': [
161 '-lOSMesa', 185 '-lOSMesa',
162 ], 186 ],
163 }, 187 },
164 }], 188 }],
165 [ 'skia_os == "mac"', { 189 [ 'skia_os == "mac"', {
166 'link_settings': { 190 'link_settings': {
167 'libraries': [ 191 'libraries': [
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 'libraries': [ 243 'libraries': [
220 '-lGLESv2', 244 '-lGLESv2',
221 '-lEGL', 245 '-lEGL',
222 ], 246 ],
223 }, 247 },
224 }], 248 }],
225 ], 249 ],
226 }, 250 },
227 ], 251 ],
228 } 252 }
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