blob: 4cf82dc670d3f1d328d17018a802f9bf34bfb54c [file] [log] [blame]
Chris Wilsonf9a50de2013-08-17 11:12:07 +01001if BUILD_OVERLAY
2bin_PROGRAMS = intel-gpu-overlay
Lionel Landwerlin865a47c2017-12-18 23:00:54 +00003
4BUILT_SOURCES = tracepoint_format.h
Chris Wilsonf9a50de2013-08-17 11:12:07 +01005endif
6
Lionel Landwerlin865a47c2017-12-18 23:00:54 +00007tracepoint_format.h: tracepoint_format.leg
8 $(LEG) -o $@ $<
9
Lucas De Marchi31ea7dd2018-07-24 15:20:23 -070010AM_CPPFLAGS = -I. -I$(top_srcdir)/include/drm-uapi \
11 -I$(top_srcdir)/lib/stubs/syscalls
marius vlad701d8fd2016-05-10 17:32:15 +030012AM_CFLAGS = $(DRM_CFLAGS) $(PCIACCESS_CFLAGS) $(CWARNFLAGS) \
Tvrtko Ursulina688dec2017-09-13 17:38:16 +010013 $(CAIRO_CFLAGS) $(OVERLAY_CFLAGS) $(WERROR_CFLAGS) -I$(srcdir)/../lib
14LDADD = $(DRM_LIBS) $(PCIACCESS_LIBS) $(CAIRO_LIBS) $(OVERLAY_LIBS) $(top_builddir)/lib/libigt_perf.la
Chris Wilsonf9a50de2013-08-17 11:12:07 +010015
16intel_gpu_overlay_SOURCES = \
Chris Wilsonf9a50de2013-08-17 11:12:07 +010017 chart.h \
18 chart.c \
Chris Wilson7c52a3c2013-08-22 15:07:48 +010019 config.c \
Chris Wilson6a64ee92013-08-18 15:56:22 +010020 cpu-top.h \
21 cpu-top.c \
Chris Wilson55b8c332013-08-19 18:15:04 +010022 debugfs.h \
23 debugfs.c \
Chris Wilsonc9f01732013-08-25 20:13:31 +010024 gem-interrupts.h \
25 gem-interrupts.c \
Chris Wilsonf9a50de2013-08-17 11:12:07 +010026 gem-objects.h \
27 gem-objects.c \
28 gpu-top.h \
29 gpu-top.c \
Damien Lespiau993815a2013-08-20 18:52:53 +010030 gpu-perf.h \
Chris Wilsoncc45a9a2013-08-17 17:38:37 +010031 gpu-perf.c \
Chris Wilsonde2c97b2013-08-18 16:42:25 +010032 gpu-freq.h \
33 gpu-freq.c \
Chris Wilsonf9a50de2013-08-17 11:12:07 +010034 igfx.h \
35 igfx.c \
Chris Wilson7c52a3c2013-08-22 15:07:48 +010036 overlay.h \
37 overlay.c \
Chris Wilson5c81cda2013-08-20 10:04:23 +010038 power.h \
39 power.c \
Chris Wilsonbaa5be02013-08-20 09:27:34 +010040 rc6.h \
41 rc6.c \
Chris Wilson34e47802013-08-18 21:10:26 +010042 $(NULL)
43
44if BUILD_OVERLAY_XLIB
Chris Wilson7c52a3c2013-08-22 15:07:48 +010045both_x11_sources = x11/position.c x11/position.h
Chris Wilsonddcd1b22013-08-27 14:25:38 +010046AM_CFLAGS += $(OVERLAY_XLIB_CFLAGS) $(XRANDR_CFLAGS)
47LDADD += $(OVERLAY_XLIB_LIBS) $(XRANDR_LIBS)
Chris Wilson34e47802013-08-18 21:10:26 +010048intel_gpu_overlay_SOURCES += \
49 x11/x11-window.c \
50 $(NULL)
51endif
52
53if BUILD_OVERLAY_XVLIB
Damien Lespiau25dfea22013-09-13 16:00:05 +010054both_x11_sources = x11/position.c
Chris Wilsonddcd1b22013-08-27 14:25:38 +010055AM_CFLAGS += $(OVERLAY_XVLIB_CFLAGS) $(XRANDR_CFLAGS)
56LDADD += $(OVERLAY_XVLIB_LIBS) $(XRANDR_LIBS)
Chris Wilson34e47802013-08-18 21:10:26 +010057intel_gpu_overlay_SOURCES += \
Chris Wilsonf9a50de2013-08-17 11:12:07 +010058 x11/dri2.c \
59 x11/dri2.h \
60 x11/rgb2yuv.c \
61 x11/rgb2yuv.h \
62 x11/x11-overlay.c \
63 $(NULL)
Chris Wilson34e47802013-08-18 21:10:26 +010064endif
Chris Wilsonf9a50de2013-08-17 11:12:07 +010065
Chris Wilsond9291022013-08-25 13:15:55 +010066intel_gpu_overlay_SOURCES += \
67 kms/kms-overlay.c \
68 $(NULL)
69
Chris Wilson7c52a3c2013-08-22 15:07:48 +010070intel_gpu_overlay_SOURCES += $(both_x11_sources)
71
Tvrtko Ursulin273e66b2017-10-10 08:22:30 +010072intel_gpu_overlay_LDADD = $(LDADD) -lrt -lm
Rodrigo Vivi564a1dd2013-09-16 15:34:27 -030073
Petri Latvala1e99f8b2017-09-29 15:59:52 +030074EXTRA_DIST= \
75 README \
76 meson.build \
77 $(NULL)