This commit is contained in:
Enrico Weigelt, metux IT consult 2024-10-14 20:27:33 +02:00
parent 99e0bc2058
commit 07eb5c713d
3 changed files with 39 additions and 25 deletions

View File

@ -14,6 +14,10 @@ if build_xorg
subdir('xfree86') subdir('xfree86')
endif endif
if build_xorg_sdk
subdir('xfree86/sdk')
endif
if build_xquartz if build_xquartz
subdir('xquartz') subdir('xquartz')
endif endif

View File

@ -24,27 +24,7 @@ srcs_xorg_common = [
'xf86Extensions.c', 'xf86Extensions.c',
] ]
xorg_sdk_headers = [ # xorg_sdk_headers is not in ../sdk
'compiler.h',
'xf86.h',
'xf86Module.h',
'xf86Opt.h',
'xf86PciInfo.h',
'xf86Priv.h',
'xf86Privstr.h',
'xf86cmap.h',
'xf86fbman.h',
'xf86str.h',
'xf86Xinput.h',
'xisb.h',
'xorgVersion.h',
'xf86sbusBus.h',
'xf86VGAarbiter.h',
'xf86Optionstr.h',
'xf86platformBus.h',
'xf86MatchDrivers.h',
'xaarop.h',
]
fallback_driver = get_option('fallback_input_driver') fallback_driver = get_option('fallback_input_driver')
if fallback_driver == 'auto' if fallback_driver == 'auto'
@ -57,12 +37,10 @@ endif
if build_dga if build_dga
srcs_xorg_common += 'xf86DGA.c' srcs_xorg_common += 'xf86DGA.c'
xorg_sdk_headers += 'dgaproc.h'
endif endif
if build_xv if build_xv
srcs_xorg_common += ['xf86xv.c', 'xf86xvmc.c'] srcs_xorg_common += ['xf86xv.c', 'xf86xvmc.c']
xorg_sdk_headers += ['xf86xv.h', 'xf86xvmc.h', 'xf86xvpriv.h']
endif endif
if build_udev if build_udev
@ -99,5 +77,3 @@ xorg_common = static_library('xorg_common',
'-DFALLBACK_INPUT_DRIVER="@0@"'.format(fallback_driver) '-DFALLBACK_INPUT_DRIVER="@0@"'.format(fallback_driver)
], ],
) )
install_data(xorg_sdk_headers, install_dir: xorgsdkdir)

View File

@ -0,0 +1,34 @@
xorg_sdk_headers = [
'../common/compiler.h',
'../common/xf86.h',
'../common/xf86Module.h',
'../common/xf86Opt.h',
'../common/xf86PciInfo.h',
'../common/xf86Priv.h',
'../common/xf86Privstr.h',
'../common/xf86cmap.h',
'../common/xf86fbman.h',
'../common/xf86str.h',
'../common/xf86Xinput.h',
'../common/xisb.h',
'../common/xorgVersion.h',
'../common/xf86sbusBus.h',
'../common/xf86VGAarbiter.h',
'../common/xf86Optionstr.h',
'../common/xf86platformBus.h',
'../common/xf86MatchDrivers.h',
'../common/xaarop.h',
]
if build_dga
xorg_sdk_headers += '../common/dgaproc.h'
endif
if build_xv
xorg_sdk_headers += ['../common/xf86xv.h', '../common/xf86xvmc.h', '../common/xf86xvpriv.h']
endif
if build_xorg_sdk
install_data(xorg_sdk_headers, install_dir: xorgsdkdir)
endif