1srcs_xorg_common = [ 2 'xf86fbBus.c', 3 'xf86noBus.c', 4 'xf86Configure.c', 5 'xf86Bus.c', 6 'xf86Config.c', 7 'xf86Cursor.c', 8 'xf86DPMS.c', 9 'xf86Events.c', 10 'xf86Globals.c', 11 'xf86AutoConfig.c', 12 'xf86Option.c', 13 'xf86Init.c', 14 'xf86VidMode.c', 15 'xf86fbman.c', 16 'xf86cmap.c', 17 'xf86Helper.c', 18 'xf86PM.c', 19 'xf86RandR.c', 20 'xf86Xinput.c', 21 'xisb.c', 22 'xf86Mode.c', 23 'xorgHelper.c', 24 'xf86Extensions.c', 25] 26 27xorg_sdk_headers = [ 28 'compiler.h', 29 'fourcc.h', 30 'xf86.h', 31 'xf86Module.h', 32 'xf86Opt.h', 33 'xf86PciInfo.h', 34 'xf86Priv.h', 35 'xf86Privstr.h', 36 'xf86cmap.h', 37 'xf86fbman.h', 38 'xf86str.h', 39 'xf86Xinput.h', 40 'xisb.h', 41 'xorgVersion.h', 42 'xf86sbusBus.h', 43 'xf86VGAarbiter.h', 44 'xf86Optionstr.h', 45 'xf86platformBus.h', 46 'xf86MatchDrivers.h', 47 'xaarop.h', 48] 49 50if build_dga 51 srcs_xorg_common += 'xf86DGA.c' 52 xorg_sdk_headers += 'dgaproc.h' 53endif 54 55if build_xv 56 srcs_xorg_common += ['xf86xv.c', 'xf86xvmc.c'] 57 xorg_sdk_headers += ['xf86xv.h', 'xf86xvmc.h', 'xf86xvpriv.h'] 58endif 59 60if build_udev 61 srcs_xorg_common += 'xf86platformBus.c' 62endif 63 64if get_option('pciaccess') 65 srcs_xorg_common += ['xf86pciBus.c', 'xf86VGAarbiter.c'] 66endif 67 68srcs_xorg_common += configure_file( 69 output: 'xf86Build.h', 70 command: ['sh', join_paths(meson.current_source_dir(), 'xf86Build.sh'), '@OUTPUT@'], 71) 72 73srcs_xorg_common += custom_target( 74 'xf86DefModeSet.c', 75 output: 'xf86DefModeSet.c', 76 input: ['modeline2c.awk', 'vesamodes', 'extramodes'], 77 command: [find_program('awk'), '-f', '@INPUT0@', '@INPUT1@', '@INPUT2@'], 78 capture: true, 79) 80 81xorg_common = static_library('xorg_common', 82 srcs_xorg_common, 83 include_directories: [inc, xorg_inc], 84 dependencies: [ 85 common_dep, 86 dbus_dep, 87 pciaccess_dep, 88 libdrm_dep, 89 ], 90 c_args: xorg_c_args, 91) 92 93install_data(xorg_sdk_headers, install_dir: xorgsdkdir) 94