summaryrefslogtreecommitdiff
path: root/tools/meson.build
blob: 3df33385be3bb990f4b96d418792aa4bcdb1b3c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
if with_tools
  executable('intel-virtual-output',
	     sources : 'virtual.c',
	     dependencies : [
	       dependency('x11', required : true),
	       dependency('xext', required : true),
	       dependency('xfixes', required : true),
	       dependency('xrender', required : true),
	       dependency('xdamage', required : true),
	       dependency('xrandr', required : true),
	       dependency('xrender', required : true),
	       dependency('xcursor', required : true),
	       dependency('xscrnsaver', required : true),
	       dependency('xinerama', required : true),
	       dependency('xtst', required : true),
	       dependency('pixman-1', required : true),
	     ],
	     c_args : [
	       '-Wno-unused-parameter',
	     ],
	     install : true)

  configure_file(input : 'intel-virtual-output.man',
		 output : 'intel-virtual-output.4',
		 command : [
		 'sed',
		 '-e',
		 's/__appmansuffix__/@0@/g'.format(man_config.get('appmansuffix')),
		 '-e',
		 's/__filemansuffix__/@0@/g'.format(man_config.get('filemansuffix')),
		 '-e',
		 's/__drivermansuffix__/@0@/g'.format(man_config.get('drivermansuffix')),
		 '-e',
		 's/__miscmansuffix__/@0@/g'.format(man_config.get('miscmansuffix')),
		 '-e',
		 's/__xservername__/@0@/g'.format(man_config.get('xservername')),
		 '-e',
		 's/__xconfigfile__/@0@/g'.format(man_config.get('xconfigfile')),
		 '-e',
		 's/__vendorversion__/@0@/g'.format(man_config.get('vendorversion')),
		 '@INPUT@'
	       ],
	       capture : true,
	       install_dir: join_paths(get_option('mandir'), 'man4'),
	       install : true)

  executable('cursor',
	     sources : 'cursor.c',
	     dependencies : [
	       dependency('x11', required : true),
	       dependency('xfixes', required : true),
	       dependency('libpng', required : true),
	     ],
	     c_args : [
	       '-Wno-unused-parameter',
	     ],
	     install : false)
endif

if with_tools and with_dri3
  executable('dri3info',
	     sources : 'dri3info.c',
	     dependencies : [
	       dependency('x11-xcb', required : true),
	       dependency('xcb-dri3', required : true),
	       dependency('x11', required : true),
	       dependency('xrandr', required : true),
	       dependency('xxf86vm', required : true),
	       dependency('dri3proto', required : true),
	       dependency('dri', required : true),
	       dependency('libdrm', required : true),
	     ],
	     install : false)
endif

if with_backlight_helper
  executable('xf86-video-intel-backlight-helper',
	     sources : 'backlight_helper.c',
	     install_dir : get_option('libexecdir'),
	     install_mode : [ 'rws--x--x', 'root', 'root' ],
	     c_args : [
	       '-DMAJOR_IN_SYSMACROS',
	     ],
	     install : true)

  polkit_config = configuration_data()
  polkit_config.set('LIBEXEC_PATH',
		    join_paths(get_option('prefix'),
			       get_option('libexecdir')))

  configure_file(input : 'org.x.xf86-video-intel.backlight-helper.policy.in',
		 output : 'org.x.xf86-video-intel.backlight-helper.policy',
		 configuration : polkit_config,
		 install_dir : join_paths(get_option('datadir'), 'polkit-1/actions'),
		 install : true)
endif