Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wanted: KhronosGroup/OpenXR-SDK #2368

Open
1 task
Vertexwahn opened this issue Jul 4, 2024 · 0 comments
Open
1 task

wanted: KhronosGroup/OpenXR-SDK #2368

Vertexwahn opened this issue Jul 4, 2024 · 0 comments
Labels
module wanted Users want a certain module to be available in the BCR, contributions are welcome!

Comments

@Vertexwahn
Copy link
Contributor

Module location

https://github.com/KhronosGroup/OpenXR-SDK

Link to bzlmod issue in the module's repository

No response

Any other context to provide?

Would be nice to have support for OpenXR (Windows only would be also fine for me)

This is only a first experiment

cc_library(
    name = "openxr-loader",
    srcs = [
        "src/loader/android_utilities.cpp",
        "src/loader/android_utilities.h",
        "src/loader/api_layer_interface.cpp",
        "src/common/xr_dependencies.h",
        #"src/loader/filesystem_utils.cpp",
        #"src/loader/json_reader.cpp",
        "src/loader/api_layer_interface.hpp",
        "src/loader/loader_platform.hpp",
        "src/loader/loader_init_data.hpp",
        "src/loader/loader_logger.hpp",
        "src/loader/manifest_file.hpp",
    ],
    hdrs = [
        "include/openxr/openxr.h",
        "include/openxr/openxr_loader_negotiation.h",
        "include/openxr/openxr_platform.h",
        "include/openxr/openxr_platform_defines.h",
        "include/openxr/openxr_reflection.h",
        "include/openxr/openxr_reflection_parent_structs.h",
        "include/openxr/openxr_reflection_structs.h",
    ],
    defines = [
        "XR_CURRENT_API_MAJOR_VERSION=1",
        "XR_CURRENT_API_MINOR_VERSION=1",
        "XR_CURRENT_API_PATCH_VERSION=38",
        "XR_USE_GRAPHICS_API_OPENGL",
        "XR_OS_WINDOWS",
        "XR_USE_PLATFORM_WIN32",
        #"XR_USE_GRAPHICS_API_D3D11",
        #XR_USE_GRAPHICS_API_D3D12
        #"OPENXR_HAVE_COMMON_CONFIG",
        "XR_USE_TIMESPEC",
    ],
    includes = ["src/common"],
    linkopts = select({
        "@platforms//os:windows": [
            "-DEFAULTLIB:opengl32.lib",
            "-DEFAULTLIB:User32.lib",
            "-DEFAULTLIB:Gdi32.lib",
        ],
        "@platforms//os:macos": [
            "-Wl,-framework,OpenGL",
        ],
        "//conditions:default": [
            "-lGL",
            "-lX11",
        ],
    }),
    strip_include_prefix = "include",
    visibility = ["//visibility:public"],
)

Fund our work

  • Sponsor our community's open source work by donating a feature bounty
@Vertexwahn Vertexwahn added the module wanted Users want a certain module to be available in the BCR, contributions are welcome! label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module wanted Users want a certain module to be available in the BCR, contributions are welcome!
Projects
None yet
Development

No branches or pull requests

1 participant