- Updated `.clangd` configuration to include additional include paths and feature flags tailored for ROM hacking workflows, optimizing IntelliSense support. - Introduced `.pre-commit-config.yaml` for managing code quality checks and formatting, ensuring consistent code style across the project. - Added `cmake-format.yaml` for CMake formatting configuration, promoting adherence to style guidelines. - Enhanced CI workflows to include new actions for testing and building, improving overall reliability and efficiency in the development process. Benefits: - Streamlines development setup and improves code quality through automated checks. - Facilitates better collaboration by ensuring consistent coding standards and configurations.
35 lines
1.1 KiB
CMake
35 lines
1.1 KiB
CMake
# CPack Configuration
|
|
# Cross-platform packaging using CPack
|
|
|
|
include(CPack)
|
|
|
|
# Set package information
|
|
set(CPACK_PACKAGE_NAME "yaze")
|
|
set(CPACK_PACKAGE_VENDOR "scawful")
|
|
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Yet Another Zelda3 Editor")
|
|
set(CPACK_PACKAGE_VERSION_MAJOR ${YAZE_VERSION_MAJOR})
|
|
set(CPACK_PACKAGE_VERSION_MINOR ${YAZE_VERSION_MINOR})
|
|
set(CPACK_PACKAGE_VERSION_PATCH ${YAZE_VERSION_PATCH})
|
|
set(CPACK_PACKAGE_VERSION "${YAZE_VERSION_MAJOR}.${YAZE_VERSION_MINOR}.${YAZE_VERSION_PATCH}")
|
|
|
|
# Set package directory
|
|
set(CPACK_PACKAGE_DIRECTORY "${CMAKE_BINARY_DIR}/packages")
|
|
|
|
# Platform-specific packaging
|
|
if(APPLE)
|
|
include(cmake/packaging/macos.cmake)
|
|
elseif(WIN32)
|
|
include(cmake/packaging/windows.cmake)
|
|
elseif(UNIX)
|
|
include(cmake/packaging/linux.cmake)
|
|
endif()
|
|
|
|
# Common files to include
|
|
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE")
|
|
set(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/README.md")
|
|
|
|
# Set default component
|
|
set(CPACK_COMPONENTS_ALL yaze)
|
|
set(CPACK_COMPONENT_YAZE_DISPLAY_NAME "YAZE Editor")
|
|
set(CPACK_COMPONENT_YAZE_DESCRIPTION "Main YAZE application and libraries")
|