blob: 3bfd289b1a9367215596f060b2192c7d323acc0d [file] [log] [blame]
scroggo3e562272015-03-25 10:22:41 -07001# Copyright 2015 Google Inc.
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
commit-bot@chromium.org78a10782013-08-21 19:27:48 +00005{
6 'targets': [
7 {
8 'target_name': 'skgputest',
9 'product_name': 'skia_skgputest',
10 'type': 'static_library',
11 'standalone_static_library': 1,
commit-bot@chromium.org78a10782013-08-21 19:27:48 +000012 'include_dirs': [
bsalomon3724e572016-03-30 18:56:19 -070013 '../include/core',
14 '../include/config',
commit-bot@chromium.org78a10782013-08-21 19:27:48 +000015 '../include/gpu',
mtkleincd1f2da2015-07-28 08:55:14 -070016 '../include/private',
commit-bot@chromium.org78a10782013-08-21 19:27:48 +000017 '../include/utils',
18 '../src/core',
19 '../src/gpu',
bsalomon3724e572016-03-30 18:56:19 -070020 '../src/utils',
21 '../tools/gpu',
commit-bot@chromium.org78a10782013-08-21 19:27:48 +000022 ],
bsalomon3724e572016-03-30 18:56:19 -070023 'all_dependent_settings': {
commit-bot@chromium.org78a10782013-08-21 19:27:48 +000024 'include_dirs': [
bsalomon3724e572016-03-30 18:56:19 -070025 '../tools/gpu',
commit-bot@chromium.org78a10782013-08-21 19:27:48 +000026 ],
27 },
bsalomon3724e572016-03-30 18:56:19 -070028 'dependencies': [
29 'skia_lib.gyp:skia_lib',
30 ],
commit-bot@chromium.org78a10782013-08-21 19:27:48 +000031 'sources': [
mtkleinada5a442016-08-02 14:28:26 -070032 '<!@(python find.py "*" ../tools/gpu)'
bsalomon3724e572016-03-30 18:56:19 -070033 ],
34 'conditions': [
halcanary90602132016-04-20 08:49:53 -070035 [ 'skia_mesa', { 'dependencies': [ 'osmesa' ] } ],
bsalomon3724e572016-03-30 18:56:19 -070036 [ 'skia_angle', {
37 'dependencies': [
38 'angle.gyp:*',
39 ],
40 'export_dependent_settings': [
41 'angle.gyp:*',
42 ],
43 }],
borenet43bf5112016-04-29 14:01:34 -070044 [ 'skia_os == "linux" and skia_egl == 1', {
Brian Salomon142659c2016-03-30 23:20:09 -040045 'link_settings': {
46 'libraries': [
47 '-lEGL',
48 '-lGLESv2',
49 ],
50 },
51 }],
borenet43bf5112016-04-29 14:01:34 -070052 [ 'skia_os == "linux" and skia_egl == 0', {
Brian Salomon142659c2016-03-30 23:20:09 -040053 'link_settings': {
54 'libraries': [
55 '-lGL',
56 '-lGLU',
57 '-lX11',
58 ],
59 },
60 }],
bsalomon3724e572016-03-30 18:56:19 -070061 [ 'skia_os == "android"', {
62 'defines': [
63 'GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE=1',
64 ],
65 'link_settings': {
66 'libraries': [
67 '-lGLESv2',
68 '-lEGL',
69 ],
70 },
71 }],
borenet43bf5112016-04-29 14:01:34 -070072 ['skia_os in ["linux", "win", "mac", "android", "ios"]', {
bsalomone5adad42016-04-01 04:50:45 -070073 'sources/': [ ['exclude', '_none\.(h|cpp)$'],],
74 }],
bsalomon3724e572016-03-30 18:56:19 -070075 ['skia_os != "win"', {
76 'sources/': [ ['exclude', '_win\.(h|cpp)$'],],
77 }],
78 ['skia_os != "mac"', {
79 'sources/': [ ['exclude', '_mac\.(h|cpp|m|mm)$'],],
80 }],
borenet43bf5112016-04-29 14:01:34 -070081 ['skia_os != "linux"', {
bsalomon3724e572016-03-30 18:56:19 -070082 'sources/': [ ['exclude', '_glx\.(h|cpp)$'],],
83 }],
84 ['skia_os != "ios"', {
85 'sources/': [ ['exclude', '_iOS\.(h|cpp|m|mm)$'],],
86 }],
87 ['skia_os != "android"', {
88 'sources/': [ ['exclude', '_android\.(h|cpp)$'],],
89 }],
90 ['skia_egl == 0', {
91 'sources/': [ ['exclude', '_egl\.(h|cpp)$'],],
92 }],
93 [ 'skia_mesa == 0', {
94 'sources/': [
95 ['exclude', '_mesa\.(h|cpp)$'],
96 ],
97 }],
98 [ 'skia_angle == 0', {
99 'sources/': [
100 ['exclude', '_angle\.(h|cpp)$'],
101 ],
102 }],
103 [ 'skia_command_buffer == 0', {
104 'sources/': [ ['exclude', '_command_buffer\.(h|cpp)$'], ],
105 }],
commit-bot@chromium.org78a10782013-08-21 19:27:48 +0000106 ],
commit-bot@chromium.org78a10782013-08-21 19:27:48 +0000107 },
halcanary90602132016-04-20 08:49:53 -0700108 {
109 'target_name': 'osmesa',
110 'type': 'none',
111 'direct_dependent_settings': {
112 'link_settings': { 'libraries': [ '-lOSMesa', ], },
113 'conditions': [
114 [ 'skia_os == "mac"', {
115 'link_settings': { 'library_dirs' : [ '/opt/X11/lib' ], },
116 'include_dirs': [ '/opt/X11/include', ],
117 }],
118 ],
119 },
120 },
commit-bot@chromium.org78a10782013-08-21 19:27:48 +0000121 ],
122}