Chris Wilson | f9a50de | 2013-08-17 11:12:07 +0100 | [diff] [blame] | 1 | if BUILD_OVERLAY |
| 2 | bin_PROGRAMS = intel-gpu-overlay |
Lionel Landwerlin | 865a47c | 2017-12-18 23:00:54 +0000 | [diff] [blame] | 3 | |
| 4 | BUILT_SOURCES = tracepoint_format.h |
Chris Wilson | f9a50de | 2013-08-17 11:12:07 +0100 | [diff] [blame] | 5 | endif |
| 6 | |
Lionel Landwerlin | 865a47c | 2017-12-18 23:00:54 +0000 | [diff] [blame] | 7 | tracepoint_format.h: tracepoint_format.leg |
| 8 | $(LEG) -o $@ $< |
| 9 | |
Lucas De Marchi | 31ea7dd | 2018-07-24 15:20:23 -0700 | [diff] [blame] | 10 | AM_CPPFLAGS = -I. -I$(top_srcdir)/include/drm-uapi \ |
| 11 | -I$(top_srcdir)/lib/stubs/syscalls |
marius vlad | 701d8fd | 2016-05-10 17:32:15 +0300 | [diff] [blame] | 12 | AM_CFLAGS = $(DRM_CFLAGS) $(PCIACCESS_CFLAGS) $(CWARNFLAGS) \ |
Tvrtko Ursulin | a688dec | 2017-09-13 17:38:16 +0100 | [diff] [blame] | 13 | $(CAIRO_CFLAGS) $(OVERLAY_CFLAGS) $(WERROR_CFLAGS) -I$(srcdir)/../lib |
| 14 | LDADD = $(DRM_LIBS) $(PCIACCESS_LIBS) $(CAIRO_LIBS) $(OVERLAY_LIBS) $(top_builddir)/lib/libigt_perf.la |
Chris Wilson | f9a50de | 2013-08-17 11:12:07 +0100 | [diff] [blame] | 15 | |
| 16 | intel_gpu_overlay_SOURCES = \ |
Chris Wilson | f9a50de | 2013-08-17 11:12:07 +0100 | [diff] [blame] | 17 | chart.h \ |
| 18 | chart.c \ |
Chris Wilson | 7c52a3c | 2013-08-22 15:07:48 +0100 | [diff] [blame] | 19 | config.c \ |
Chris Wilson | 6a64ee9 | 2013-08-18 15:56:22 +0100 | [diff] [blame] | 20 | cpu-top.h \ |
| 21 | cpu-top.c \ |
Chris Wilson | 55b8c33 | 2013-08-19 18:15:04 +0100 | [diff] [blame] | 22 | debugfs.h \ |
| 23 | debugfs.c \ |
Chris Wilson | c9f0173 | 2013-08-25 20:13:31 +0100 | [diff] [blame] | 24 | gem-interrupts.h \ |
| 25 | gem-interrupts.c \ |
Chris Wilson | f9a50de | 2013-08-17 11:12:07 +0100 | [diff] [blame] | 26 | gem-objects.h \ |
| 27 | gem-objects.c \ |
| 28 | gpu-top.h \ |
| 29 | gpu-top.c \ |
Damien Lespiau | 993815a | 2013-08-20 18:52:53 +0100 | [diff] [blame] | 30 | gpu-perf.h \ |
Chris Wilson | cc45a9a | 2013-08-17 17:38:37 +0100 | [diff] [blame] | 31 | gpu-perf.c \ |
Chris Wilson | de2c97b | 2013-08-18 16:42:25 +0100 | [diff] [blame] | 32 | gpu-freq.h \ |
| 33 | gpu-freq.c \ |
Chris Wilson | f9a50de | 2013-08-17 11:12:07 +0100 | [diff] [blame] | 34 | igfx.h \ |
| 35 | igfx.c \ |
Chris Wilson | 7c52a3c | 2013-08-22 15:07:48 +0100 | [diff] [blame] | 36 | overlay.h \ |
| 37 | overlay.c \ |
Chris Wilson | 5c81cda | 2013-08-20 10:04:23 +0100 | [diff] [blame] | 38 | power.h \ |
| 39 | power.c \ |
Chris Wilson | baa5be0 | 2013-08-20 09:27:34 +0100 | [diff] [blame] | 40 | rc6.h \ |
| 41 | rc6.c \ |
Chris Wilson | 34e4780 | 2013-08-18 21:10:26 +0100 | [diff] [blame] | 42 | $(NULL) |
| 43 | |
| 44 | if BUILD_OVERLAY_XLIB |
Chris Wilson | 7c52a3c | 2013-08-22 15:07:48 +0100 | [diff] [blame] | 45 | both_x11_sources = x11/position.c x11/position.h |
Chris Wilson | ddcd1b2 | 2013-08-27 14:25:38 +0100 | [diff] [blame] | 46 | AM_CFLAGS += $(OVERLAY_XLIB_CFLAGS) $(XRANDR_CFLAGS) |
| 47 | LDADD += $(OVERLAY_XLIB_LIBS) $(XRANDR_LIBS) |
Chris Wilson | 34e4780 | 2013-08-18 21:10:26 +0100 | [diff] [blame] | 48 | intel_gpu_overlay_SOURCES += \ |
| 49 | x11/x11-window.c \ |
| 50 | $(NULL) |
| 51 | endif |
| 52 | |
| 53 | if BUILD_OVERLAY_XVLIB |
Damien Lespiau | 25dfea2 | 2013-09-13 16:00:05 +0100 | [diff] [blame] | 54 | both_x11_sources = x11/position.c |
Chris Wilson | ddcd1b2 | 2013-08-27 14:25:38 +0100 | [diff] [blame] | 55 | AM_CFLAGS += $(OVERLAY_XVLIB_CFLAGS) $(XRANDR_CFLAGS) |
| 56 | LDADD += $(OVERLAY_XVLIB_LIBS) $(XRANDR_LIBS) |
Chris Wilson | 34e4780 | 2013-08-18 21:10:26 +0100 | [diff] [blame] | 57 | intel_gpu_overlay_SOURCES += \ |
Chris Wilson | f9a50de | 2013-08-17 11:12:07 +0100 | [diff] [blame] | 58 | x11/dri2.c \ |
| 59 | x11/dri2.h \ |
| 60 | x11/rgb2yuv.c \ |
| 61 | x11/rgb2yuv.h \ |
| 62 | x11/x11-overlay.c \ |
| 63 | $(NULL) |
Chris Wilson | 34e4780 | 2013-08-18 21:10:26 +0100 | [diff] [blame] | 64 | endif |
Chris Wilson | f9a50de | 2013-08-17 11:12:07 +0100 | [diff] [blame] | 65 | |
Chris Wilson | d929102 | 2013-08-25 13:15:55 +0100 | [diff] [blame] | 66 | intel_gpu_overlay_SOURCES += \ |
| 67 | kms/kms-overlay.c \ |
| 68 | $(NULL) |
| 69 | |
Chris Wilson | 7c52a3c | 2013-08-22 15:07:48 +0100 | [diff] [blame] | 70 | intel_gpu_overlay_SOURCES += $(both_x11_sources) |
| 71 | |
Tvrtko Ursulin | 273e66b | 2017-10-10 08:22:30 +0100 | [diff] [blame] | 72 | intel_gpu_overlay_LDADD = $(LDADD) -lrt -lm |
Rodrigo Vivi | 564a1dd | 2013-09-16 15:34:27 -0300 | [diff] [blame] | 73 | |
Petri Latvala | 1e99f8b | 2017-09-29 15:59:52 +0300 | [diff] [blame] | 74 | EXTRA_DIST= \ |
| 75 | README \ |
| 76 | meson.build \ |
| 77 | $(NULL) |