Skip to content

Commit

Permalink
Format the manifest scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
rpavlik committed Sep 13, 2023
1 parent 8d2705a commit d0f84e7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
12 changes: 9 additions & 3 deletions GenerateOpenXRRuntimeManifest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ The following functions are provided by this module:

# This module is mostly just argument parsing, the guts are in GenerateKhrManifest

get_filename_component(_OXR_MANIFEST_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_OXR_MANIFEST_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}"
PATH)
include("${_OXR_MANIFEST_CMAKE_DIR}/GenerateKhrManifest.cmake")

set(_OXR_MANIFEST_TEMPLATE
Expand Down Expand Up @@ -86,8 +87,13 @@ endfunction()
function(generate_openxr_runtime_manifest_at_install)
set(options ABSOLUTE_RUNTIME_PATH)
set(oneValueArgs
MANIFEST_TEMPLATE DESTINATION OUT_FILENAME COMPONENT RUNTIME_TARGET
RUNTIME_DIR_RELATIVE_TO_MANIFEST RELATIVE_RUNTIME_DIR )
MANIFEST_TEMPLATE
DESTINATION
OUT_FILENAME
COMPONENT
RUNTIME_TARGET
RUNTIME_DIR_RELATIVE_TO_MANIFEST
RELATIVE_RUNTIME_DIR)
set(multiValueArgs)
cmake_parse_arguments(_genmanifest "${options}" "${oneValueArgs}"
"${multiValueArgs}" ${ARGN})
Expand Down
13 changes: 11 additions & 2 deletions GenerateVulkanApiLayerManifest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ The following functions are provided by this module:
[OUT_FILENAME <outfilename> # Optional: Alternate name of the manifest file to generate
)
#]]

# This module is mostly just argument parsing, the guts are in GenerateKhrManifest

get_filename_component(_VK_MANIFEST_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
include("${_VK_MANIFEST_CMAKE_DIR}/GenerateKhrManifest.cmake")

Expand Down Expand Up @@ -78,8 +81,14 @@ endfunction()

function(generate_vulkan_api_layer_manifest_at_install)
set(options ABSOLUTE_LAYER_PATH)
set(oneValueArgs MANIFEST_TEMPLATE DESTINATION OUT_FILENAME COMPONENT LAYER_TARGET
LAYER_DIR_RELATIVE_TO_MANIFEST RELATIVE_LAYER_DIR)
set(oneValueArgs
MANIFEST_TEMPLATE
DESTINATION
OUT_FILENAME
COMPONENT
LAYER_TARGET
LAYER_DIR_RELATIVE_TO_MANIFEST
RELATIVE_LAYER_DIR)
set(multiValueArgs)
cmake_parse_arguments(_genmanifest "${options}" "${oneValueArgs}"
"${multiValueArgs}" ${ARGN})
Expand Down

0 comments on commit d0f84e7

Please sign in to comment.