diff options
author | Reiko Asakura | 2020-11-01 17:23:11 -0500 |
---|---|---|
committer | Reiko Asakura | 2020-11-01 17:23:11 -0500 |
commit | 836489244c5271435c02213f33817f98f3181a96 (patch) | |
tree | 221c9c8a5acabd3fa82277bc3f68e79a022646e7 /cmake/InstallStubs.cmake | |
parent | Add SceLibMonoBridge functions (diff) | |
download | vds-libraries-836489244c5271435c02213f33817f98f3181a96.tar.gz |
Update build script
Diffstat (limited to 'cmake/InstallStubs.cmake')
-rw-r--r-- | cmake/InstallStubs.cmake | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/cmake/InstallStubs.cmake b/cmake/InstallStubs.cmake new file mode 100644 index 0000000..48ce248 --- /dev/null +++ b/cmake/InstallStubs.cmake @@ -0,0 +1,31 @@ +# +# Copyright (C) 2021 Reiko Asakura. All Rights Reserved. +# +# Vita Development Suite Libraries +# + +file(GLOB NIDS_360 "${NIDS_DIR}/360/*.yml") +file(GLOB NIDS_365 "${NIDS_DIR}/365/*.yml") +file(GLOB NIDS_OTHER "${NIDS_DIR}/*.yml") + +foreach(NID ${NIDS_360}) + message(STATUS "Generating stubs from ${NID}") + execute_process( + COMMAND ${VDSUITE_LIBGEN} ${NID} ${CMAKE_INSTALL_PREFIX}/lib/vdsuite + ) +endforeach() + +foreach(NID ${NIDS_365}) + message(STATUS "Generating stubs from ${NID}") + execute_process( + COMMAND ${VDSUITE_LIBGEN} --merge --export-suffix _365 ${NID} ${CMAKE_INSTALL_PREFIX}/lib/vdsuite + COMMAND ${VDSUITE_LIBGEN} ${NID} ${CMAKE_INSTALL_PREFIX}/lib/vdsuite/365 + ) +endforeach() + +foreach(NID ${NIDS_OTHER}) + message(STATUS "Generating stubs from ${NID}") + execute_process( + COMMAND ${VDSUITE_LIBGEN} ${NID} ${CMAKE_INSTALL_PREFIX}/lib/vdsuite + ) +endforeach() |