OLD | NEW |
| (Empty) |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 { | |
6 'variables': { | |
7 'use_system_minigbm%': 0, | |
8 }, | |
9 'conditions': [ | |
10 ['use_system_minigbm==0', { | |
11 'targets': [ | |
12 { | |
13 'target_name': 'minigbm', | |
14 'type': 'shared_library', | |
15 'dependencies' : [ | |
16 '../../build/linux/system.gyp:libdrm', | |
17 ], | |
18 'sources': [ | |
19 'src/cirrus.c', | |
20 'src/evdi.c', | |
21 'src/exynos.c', | |
22 'src/gbm.c', | |
23 'src/gma500.c', | |
24 'src/helpers.c', | |
25 'src/i915.c', | |
26 'src/marvell.c', | |
27 'src/mediatek.c', | |
28 'src/rockchip.c', | |
29 'src/tegra.c', | |
30 'src/udl.c', | |
31 'src/virtio_gpu.c', | |
32 ], | |
33 'include_dirs': [ | |
34 'src', | |
35 ], | |
36 'direct_dependent_settings': { | |
37 'include_dirs': [ | |
38 'src', | |
39 ], | |
40 }, | |
41 }, | |
42 ], | |
43 }, { # 'use_system_minigbm!=0 | |
44 'targets': [ | |
45 { | |
46 'target_name': 'minigbm', | |
47 'type': 'none', | |
48 'direct_dependent_settings': { | |
49 'cflags': [ | |
50 '<!@(<(pkg-config) --cflags gbm)', | |
51 ], | |
52 }, | |
53 'link_settings': { | |
54 'ldflags': [ | |
55 '<!@(<(pkg-config) --libs-only-L --libs-only-other gbm)', | |
56 ], | |
57 'libraries': [ | |
58 '<!@(<(pkg-config) --libs-only-l gbm)', | |
59 ], | |
60 }, | |
61 }, | |
62 ], | |
63 }], | |
64 ], | |
65 } | |
OLD | NEW |