Lines Matching +full:- +full:- +full:disable +full:- +full:wayland
36 '-D__STDC_CONSTANT_MACROS',
37 '-D__STDC_FORMAT_MACROS',
38 '-D__STDC_LIMIT_MACROS',
39 '-DVERSION="@0@"'.format(meson.project_version()),
40 '-DPACKAGE_VERSION=VERSION',
41 '-DPACKAGE_BUGREPORT="https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa"',
44 with_vulkan_icd_dir = get_option('vulkan-icd-dir')
45 with_tests = get_option('build-tests')
50 with_swr_arches = get_option('swr-arches').split(',')
51 if get_option('texture-float')
52 pre_args += '-DTEXTURE_FLOAT_ENABLED'
53 …message('WARNING: Floating-point texture enabled. Please consult docs/patents.txt and your lawyer …
56 dri_drivers_path = get_option('dri-drivers-path')
60 dri_search_path = get_option('dri-search-path')
70 with_shared_glapi = get_option('shared-glapi') and with_any_opengl
73 # shared-glapi is required if at least two OpenGL APIs are being built
77 error('shared-glapi required for building two or more of OpenGL, OpenGL ES 1.x, OpenGL ES 2.x')
93 _drivers = get_option('dri-drivers')
100 …error('Unknown architecture. Please pass -Ddri-drivers to set driver options. Patches gladly accep…
103 …error('Unknown OS. Please pass -Ddri-drivers to set driver options. Patches gladly accepted to fix…
133 _drivers = get_option('gallium-drivers')
142 …error('Unknown architecture. Please pass -Dgallium-drivers to set driver options. Patches gladly a…
145 …error('Unknown OS. Please pass -Dgallium-drivers to set driver options. Patches gladly accepted to…
171 _vulkan_drivers = get_option('vulkan-drivers')
177 …error('Unknown architecture. Please pass -Dvulkan-drivers to set driver options. Patches gladly ac…
235 _platforms = 'x11,wayland,drm,surfaceless'
244 with_platform_wayland = _split.contains('wayland')
271 if not (with_dri or with_gallium or with_glx == 'xlib' or with_glx == 'gallium-xlib')
298 error('EGL requires shared-glapi')
300 error('No platforms specified, consider -Dplatforms=drm,x11 at least')
316 pre_args += '-DGLX_USE_TLS'
324 elif with_glx == 'gallium-xlib'
326 error('Gallium-xlib based GLX requires at least one gallium driver')
328 error('Gallium-xlib based GLX requires softpipe or llvmpipe.')
330 error('gallium-xlib conflicts with any dri driver')
343 if with_glx == 'xlib' or with_glx == 'gallium-xlib'
380 prog_pkgconfig = find_program('pkg-config')
382 _vdpau = get_option('gallium-vdpau')
385 error('VDPAU state tracker can only be build on unix-like OSes.')
410 compile_args : run_command(prog_pkgconfig, ['vdpau', '--cflags']).stdout().split()
415 pre_args += '-DHAVE_ST_VDPAU'
417 vdpau_drivers_path = get_option('vdpau-libs-path')
422 _xvmc = get_option('gallium-xvmc')
425 error('XVMC state tracker can only be build on unix-like OSes.')
450 xvmc_drivers_path = get_option('xvmc-libs-path')
455 _omx = get_option('gallium-omx')
458 error('OMX state tracker can only be built on unix-like OSes.')
480 dep_omx = dependency('libomxil-bellagio')
483 omx_drivers_path = get_option('omx-libs-path')
508 _va = get_option('gallium-va')
511 error('VA state tracker can only be built on unix-like OSes.')
517 error('VA state tracker requires X11 or drm or wayland platform support.')
535 compile_args : run_command(prog_pkgconfig, ['libva', '--cflags']).stdout().split()
539 va_drivers_path = get_option('va-libs-path')
544 _xa = get_option('gallium-xa')
547 error('XA state tracker can only be built on unix-like OSes.')
561 d3d_drivers_path = get_option('d3d-drivers-path')
566 with_gallium_st_nine = get_option('gallium-nine')
572 error('The nine state tracker requires at least on non-swrast gallium driver.')
579 _opencl = get_option('gallium-opencl')
598 pre_args += '-DHAVE_X11_PLATFORM'
600 if with_glx == 'xlib' or with_glx == 'gallium-xlib'
601 pre_args += '-DUSE_XSHM'
603 pre_args += '-DGLX_INDIRECT_RENDERING'
605 pre_args += '-DGLX_DIRECT_RENDERING'
608 pre_args += '-DGLX_USE_DRM'
610 pre_args += '-DGLX_USE_WINDOWSGL'
614 pre_args += '-DMESA_EGL_NO_X11_HEADERS'
615 gl_pkgconfig_c_flags += '-DMESA_EGL_NO_X11_HEADERS'
621 pre_args += '-DHAVE_DRM_PLATFORM'
624 pre_args += '-DHAVE_SURFACELESS_PLATFORM'
632 pre_args += '-DHAVE_ANDROID_PLATFORM'
636 has_mako = run_command(prog_python2, '-c', 'import mako')
648 pre_args += '-DDEBUG'
651 if get_option('shader-cache')
652 pre_args += '-DENABLE_SHADER_CACHE'
661 pre_args += '-DHAVE___BUILTIN_@0@'.format(b.to_upper())
670 pre_args += '-DHAVE_FUNC_ATTRIBUTE_@0@'.format(a.to_upper())
675 pre_args += '-DHAVE_FUNC_ATTRIBUTE_FORMAT'
679 pre_args += '-DHAVE_FUNC_ATTRIBUTE_PACKED'
683 pre_args += '-DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL'
690 pre_args += '-DHAVE_FUNC_ATTRIBUTE_VISIBILITY'
694 pre_args += '-DHAVE_FUNC_ATTRIBUTE_ALIAS'
698 pre_args += '-DHAVE_FUNC_ATTRIBUTE_NORETURN'
703 pre_args += '-D_GNU_SOURCE'
708 foreach a : ['-Wall', '-Werror=implicit-function-declaration',
709 '-Werror=missing-prototypes', '-fno-math-errno',
710 '-fno-trapping-math', '-Qunused-arguments']
716 if cc.has_argument('-fvisibility=hidden')
717 c_vis_args += '-fvisibility=hidden'
723 foreach a : ['-Wall', '-fno-math-errno', '-fno-trapping-math',
724 '-Qunused-arguments']
730 # For some reason, the test for -Wno-foo always succeeds with gcc, even if the
731 # option is not supported. Hence, check for -Wfoo instead.
732 if cpp.has_argument('-Wnon-virtual-dtor')
733 cpp_args += '-Wno-non-virtual-dtor'
737 foreach a : ['override-init', 'initializer-overrides']
738 if cc.has_argument('-W' + a)
739 no_override_init_args += '-Wno-' + a
744 if cpp.has_argument('-fvisibility=hidden')
745 cpp_vis_args += '-fvisibility=hidden'
753 foreach a : ['-Werror=pointer-arith', '-Werror=vla']
763 pre_args += '-DUSE_SSE41'
765 sse41_args = ['-msse4.1']
767 # GCC on x86 (not x86_64) with -msse* assumes a 16 byte aligned stack, but
770 sse41_args += '-mstackrealign'
780 pre_args += '-DUSE_GCC_ATOMIC_BUILTINS'
788 pre_args += '-DMISSING_64_BIT_ATOMICS'
796 # x86_64 OSes to run x86 binaries, so don't disable asm in those cases
802 message('Cross compiling to x86 from non-x86, disabling asm')
813 pre_args += ['-DUSE_X86_ASM', '-DUSE_MMX_ASM', '-DUSE_3DNOW_ASM',
814 '-DUSE_SSE_ASM']
819 pre_args += ['-DUSE_X86_64_ASM']
824 pre_args += ['-DUSE_ARM_ASM']
829 pre_args += ['-DUSE_AARCH64_ASM']
836 pre_args += '-DMAJOR_IN_SYSMACROS'
838 pre_args += '-DMAJOR_IN_MKDEV'
843 pre_args += '-DHAVE_@0@'.format(h.to_upper().underscorify())
849 pre_args += '-DHAVE_@0@'.format(f.to_upper())
872 pre_args += '-DHAVE_STRTOD_L'
877 if cc.links('int main() { return 0; }', args : '-Wl,-Bsymbolic', name : 'Bsymbolic')
878 ld_args_bsymbolic += '-Wl,-Bsymbolic'
882 args : '-Wl,--gc-sections', name : 'gc-sections')
883 ld_args_gc_sections += '-Wl,--gc-sections'
887 args : '-Wl,--version-script=@0@'.format(
888 join_paths(meson.source_root(), 'build-support/conftest.map')),
889 name : 'version-script')
894 args : '-Wl,--dynamic-list=@0@'.format(
895 join_paths(meson.source_root(), 'build-support/conftest.dyn')),
896 name : 'dynamic-list')
908 pre_args += '-DHAVE_DLADDR'
912 pre_args += '-DHAVE_DL_ITERATE_PHDR'
915 elif with_dri_i965 and get_option('shader-cache')
930 pre_args += '-DHAVE_LIBDRM'
938 pre_args += '-DHAVE_ZLIB'
941 pre_args += '-DHAVE_PTHREAD'
989 'all-targets', 'linker', 'coverage', 'instrumentation', 'ipo', 'irreader',
1030 '-DHAVE_LLVM=0x0@0@0@1@'.format(_llvm_version[0], _llvm_version[1]),
1031 '-DMESA_LLVM_VERSION_PATCH=@0@'.format(_llvm_patch),
1040 pre_args += '-DUSE_LIBGLVND=1'
1046 pre_args += '-DHAVE_VALGRIND'
1060 pre_args += '-DMESA_SELINUX'
1063 # TODO: llvm-prefix and llvm-shared-libs
1068 pre_args += '-DHAVE_LIBUNWIND'
1074 # TODO: gallium-hud
1084 osmesa_bits = get_option('osmesa-bits')
1091 '-DCHAN_BITS=@0@'.format(osmesa_bits), '-DDEFAULT_SOFTWARE_DEPTH_BITS=31'
1099 prog_wl_scanner = find_program('wayland-scanner')
1100 dep_wl_protocols = dependency('wayland-protocols', version : '>= 1.8')
1101 dep_wayland_client = dependency('wayland-client', version : '>=1.11')
1102 dep_wayland_server = dependency('wayland-server', version : '>=1.11')
1105 'linux-dmabuf', 'linux-dmabuf-unstable-v1.xml'
1107 pre_args += ['-DHAVE_WAYLAND_PLATFORM', '-DWL_HIDE_DEPRECATED']
1134 if with_glx == 'xlib' or with_glx == 'gallium-xlib'
1143 dep_xcb_glx = dependency('xcb-glx', version : '>= 1.8.1')
1150 dep_x11_xcb = dependency('x11-xcb')
1153 dep_xcb_dri2 = dependency('xcb-dri2', version : '>= 1.8')
1156 pre_args += '-DHAVE_DRI3'
1157 dep_xcb_dri3 = dependency('xcb-dri3')
1158 dep_xcb_present = dependency('xcb-present')
1159 dep_xcb_sync = dependency('xcb-sync')
1170 dep_xcb_xfixes = dependency('xcb-xfixes')
1174 if get_option('gallium-extra-hud')
1175 pre_args += '-DHAVE_GALLIUM_EXTRA_HUD=1'
1182 pre_args += '-DHAVE_LIBSENSORS=1'
1215 'x11', 'xext', 'xdamage >= 1.1', 'xfixes', 'x11-xcb', 'xcb',
1216 'xcb-glx >= 1.8.1']
1224 gl_priv_reqs += 'xcb-dri2 >= 1.8'
1229 gl_priv_libs += ['-lpthread', '-pthread']
1232 gl_priv_libs += '-lm'
1235 gl_priv_libs += '-ldl'