genode/repos/libports/lib/mk/mesa-common.inc

91 lines
2.9 KiB
PHP
Raw Normal View History

MESA_PORT_DIR := $(call select_from_ports,mesa)
MESA_SRC_DIR := $(MESA_PORT_DIR)/src/lib/mesa
MESA_GEN_DIR := $(MESA_PORT_DIR)/generated
LIB_DIR := $(REP_DIR)/src/lib/mesa
INC_DIR += $(LIB_DIR)/include \
$(MESA_PORT_DIR)/include \
$(MESA_SRC_DIR)/src/gallium/include \
$(MESA_SRC_DIR)/src \
$(MESA_GEN_DIR)/src \
$(MESA_GEN_DIR)/src/compiler
CC_OPT += -D__GENODE__ -DGALLIUM_SOFTPIPE
#
# Otherwise TLS init function calls will be created, for example, for
# 'glapi_tls_Context' in >C++11 code. This requires support in the dynamic
# linker which we don't have.
#
CC_CXX_OPT += -fno-extern-tls-init
#
# C++20 warnings disable on update
#
CC_CXX_OPT += -Wno-deprecated-enum-enum-conversion
CC_OPT += -Wno-nonnull-compare
#CC_OPT += -DENABLE_SHADER_CACHE
CC_OPT += -DENABLE_ST_OMX_BELLAGIO=0 \
-DENABLE_ST_OMX_TIZONIA=0 \
-DHAVE___BUILTIN_BSWAP32 \
-DHAVE___BUILTIN_BSWAP64 \
-DHAVE___BUILTIN_CLZ \
-DHAVE___BUILTIN_CLZLL \
-DHAVE___BUILTIN_CTZ \
-DHAVE___BUILTIN_EXPECT \
-DHAVE___BUILTIN_FFS \
-DHAVE___BUILTIN_FFSLL \
-DHAVE___BUILTIN_POPCOUNT \
-DHAVE___BUILTIN_POPCOUNTLL \
-DHAVE___BUILTIN_TYPES_COMPATIBLE_P \
-DHAVE___BUILTIN_UNREACHABLE \
-DHAVE_CET_H \
-DHAVE_DIRENT_D_TYPE \
-DHAVE_DLADDR \
-DHAVE_DLFCN_H \
-DHAVE_DL_ITERATE_PHDR \
-DHAVE_DRI \
-DHAVE_DRI2 \
-DHAVE_EXECINFO_H \
-DHAVE_FLOCK \
-DHAVE_FUNC_ATTRIBUTE_ALIAS \
-DHAVE_FUNC_ATTRIBUTE_CONST \
-DHAVE_FUNC_ATTRIBUTE_FLATTEN \
-DHAVE_FUNC_ATTRIBUTE_FORMAT \
-DHAVE_FUNC_ATTRIBUTE_MALLOC \
-DHAVE_FUNC_ATTRIBUTE_NORETURN \
-DHAVE_FUNC_ATTRIBUTE_PACKED \
-DHAVE_FUNC_ATTRIBUTE_PURE \
-DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL \
-DHAVE_FUNC_ATTRIBUTE_UNUSED \
-DHAVE_FUNC_ATTRIBUTE_VISIBILITY \
-DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT \
-DHAVE_FUNC_ATTRIBUTE_WEAK \
-DHAVE_GETRANDOM \
-DHAVE_MKOSTEMP \
-DHAVE_OPENGL=1 \
-DHAVE_OPENGL_ES_1=1 \
-DHAVE_OPENGL_ES_2=1 \
-DHAVE_PIPE_LOADER_DRI \
-DHAVE_POSIX_MEMALIGN \
-DHAVE_PTHREAD \
-DHAVE_PTHREAD_NP_H \
-DHAVE_RANDOM_R \
-DHAVE_STRTOF \
-DHAVE_STRTOK_R \
-DHAVE_STRUCT_TIMESPEC \
-DHAVE_TIMESPEC_GET \
-DHAVE_ZLIB \
-DPACKAGE_BUGREPORT='"https://gitlab.freedesktop.org/mesa/mesa/-/issues"' \
-DPACKAGE_VERSION='"24.0.1"' \
-D__STDC_CONSTANT_MACROS \
-D__STDC_FORMAT_MACROS \
-D__STDC_LIMIT_MACROS \
-DUSE_GCC_ATOMIC_BUILTINS \
#-DUSE_X86_64_ASM
# vi: set ft=make :