meson.build revision ed6184df
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 'xf86.h', 30 'xf86Module.h', 31 'xf86Opt.h', 32 'xf86PciInfo.h', 33 'xf86Priv.h', 34 'xf86Privstr.h', 35 'xf86cmap.h', 36 'xf86fbman.h', 37 'xf86str.h', 38 'xf86Xinput.h', 39 'xisb.h', 40 'xorgVersion.h', 41 'xf86sbusBus.h', 42 'xf86VGAarbiter.h', 43 'xf86Optionstr.h', 44 'xf86platformBus.h', 45 'xf86MatchDrivers.h', 46 'xaarop.h', 47] 48 49fallback_driver = get_option('fallback_input_driver') 50if fallback_driver == 'auto' 51 if host_machine.system() == 'linux' 52 fallback_driver = 'libinput' 53 else 54 fallback_driver = '' 55 endif 56endif 57 58if build_dga 59 srcs_xorg_common += 'xf86DGA.c' 60 xorg_sdk_headers += 'dgaproc.h' 61endif 62 63if build_xv 64 srcs_xorg_common += ['xf86xv.c', 'xf86xvmc.c'] 65 xorg_sdk_headers += ['xf86xv.h', 'xf86xvmc.h', 'xf86xvpriv.h'] 66endif 67 68if build_udev 69 srcs_xorg_common += 'xf86platformBus.c' 70endif 71 72if get_option('pciaccess') 73 srcs_xorg_common += ['xf86pciBus.c', 'xf86VGAarbiter.c'] 74 75 if host_machine.cpu() == 'sparc' or host_machine.cpu() == 'sparc64' 76 srcs_xorg_common += 'xf86sbusBus.c' 77 endif 78endif 79 80srcs_xorg_common += custom_target( 81 'xf86DefModeSet.c', 82 output: 'xf86DefModeSet.c', 83 input: ['modeline2c.awk', 'vesamodes', 'extramodes'], 84 command: [find_program('awk'), '-f', '@INPUT0@', '@INPUT1@', '@INPUT2@'], 85 capture: true, 86) 87 88xorg_common = static_library('xorg_common', 89 srcs_xorg_common, 90 include_directories: [inc, xorg_inc, top_dir_inc], 91 dependencies: [ 92 common_dep, 93 dbus_dep, 94 pciaccess_dep, 95 libdrm_dep, 96 ], 97 c_args: [ 98 xorg_c_args, 99 '-DFALLBACK_INPUT_DRIVER="@0@"'.format(fallback_driver) 100 ], 101) 102 103install_data(xorg_sdk_headers, install_dir: xorgsdkdir) 104