# Copyright 2018-2021, Collabora, Ltd. and the Monado contributors
# SPDX-License-Identifier: BSL-1.0

QUIET                  = YES
PROJECT_NAME           = "Monado OpenXR Runtime"
OUTPUT_DIRECTORY       = @CURBUILDDIR@/
INPUT                  = \
     @SRCDIR@/src/xrt \
     @SRCDIR@/doc


IMAGE_PATH             = @SRCDIR@/doc

USE_MDFILE_AS_MAINPAGE = @SRCDIR@/doc/mainpage.md

RECURSIVE              = YES
EXCLUDE                = @SRCDIR@/src/external \
                         @SRCDIR@/doc/changes \
                         @BUILDDIR@
EXCLUDE_PATTERNS       = */build/*

STRIP_FROM_PATH        = @SRCDIR@/src/xrt \
                         @SRCDIR@/src/xrt/include \
                         @SRCDIR@/doc


PREDEFINED             = VK_USE_PLATFORM_XCB_KHR \
                         VK_USE_PLATFORM_WAYLAND_KHR \
                         VK_USE_PLATFORM_XLIB_XRANDR_EXT \
                         XR_EXT_debug_utils \
                         XR_KHR_convert_timespec_time \
                         XR_KHR_opengl_enable \
                         XR_KHR_vulkan_enable \
                         XR_MND_headless \
                         XR_USE_GRAPHICS_API_OPENGL \
                         XR_USE_GRAPHICS_API_VULKAN \
                         XR_USE_PLATFORM_XLIB \
                         XR_USE_TIMESPEC \
                         XRT_BUILD_DRIVER_RS \
                         XRT_DOXYGEN \
                         XRT_FEATURE_SERVICE \
                         XRT_HAVE_JPEG \
                         XRT_HAVE_LIBUDEV \
                         XRT_HAVE_LIBUSB \
                         XRT_HAVE_LIBUVC \
                         XRT_HAVE_OPENCV \
                         XRT_HAVE_SYSTEMD \
                         XRT_HAVE_WAYLAND \
                         XRT_HAVE_V4L2 \
                         XRT_OS_LINUX \
                         XRT_OS_UNIX \


ALIASES                += TODO=todo
ALIASES                += ep{1}="<b>\1</b>. \xrefitem entrypoints \"OpenXR Entry Point\" \"OpenXR Entry Points\" \1"
ALIASES                += obj{1}="\xrefitem objects \"OpenXR Object\" \"OpenXR Objects\" \1"

SHOW_GROUPED_MEMB_INC  = YES
STRIP_CODE_COMMENTS    = NO
REFERENCED_BY_RELATION = YES
REFERENCES_RELATION    = YES
ALWAYS_DETAILED_SEC    = YES


WARN_IF_UNDOCUMENTED   = @DOXYGEN_WARN_UNDOCUMENTED@
EXTRACT_ALL            = @DOXYGEN_EXTRACT_ALL@
HIDE_UNDOC_RELATIONS   = NO
EXTRACT_STATIC         = @DOXYGEN_EXTRACT_ALL@

MACRO_EXPANSION        = YES

STRIP_FROM_INC_PATH    = \
                         @SRCDIR@/src/xrt/include \
                         @SRCDIR@/src/xrt/auxiliary \
                         @SRCDIR@/src/xrt/compositor \
                         @SRCDIR@/src/xrt/drivers \
                         @SRCDIR@/src/xrt/state_trackers \
                         @SRCDIR@/src/xrt/targets


JAVADOC_AUTOBRIEF      = YES

QT_AUTOBRIEF           = YES

TAB_SIZE               = 8

OPTIMIZE_OUTPUT_FOR_C  = YES

BUILTIN_STL_SUPPORT    = YES

CASE_SENSE_NAMES       = NO

GENERATE_LATEX         = NO