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

Finalize CMake setup for OSLib project #59

Merged
merged 1 commit into from
Sep 2, 2024
Merged

Finalize CMake setup for OSLib project #59

merged 1 commit into from
Sep 2, 2024

Conversation

dogo
Copy link
Owner

@dogo dogo commented Sep 2, 2024

Summary

This PR finalizes and refines the CMake-based build system for the OSLib project, ensuring a reliable and maintainable setup tailored for PSP development. Key configurations and enhancements have been implemented to streamline the build process and improve cross-compilation support.

Key Changes

  • CMake Configuration:

    • Introduced a modular CMake setup, defining the libosl.a static library as the main output.
    • All relevant source files and directories are correctly included, with specific handling for assembly files.
    • Ensured that the .a file is outputted directly in the project root directory.
  • PSP Toolchain Integration:

    • Created and utilized a Platform/PSP.cmake file to manage PSP-specific toolchain settings.
    • Configured the C and C++ compilers, assembler, and common PSP compilation flags within the platform file.
  • Build Process:

    • Established a straightforward build process involving psp-cmake .. and make commands.
    • Verified successful builds with the correct output directory and file naming conventions.

Improvements:

  • Cross-Compilation Support: Enhanced the PSP toolchain integration for better cross-compilation, centralizing PSP-specific configurations.
  • Maintainability: The project is now easier to maintain, with a clear separation of platform-specific configurations and project-specific build logic.

Testing and Validation:

  • Successfully tested the build process, confirming that the libosl.a static library is correctly generated in the root directory.
  • Verified that all source files are compiled with the appropriate flags, and the output is as expected.

@dogo dogo merged commit d7833ec into master Sep 2, 2024
6 checks passed
@dogo dogo deleted the feature/cmake branch September 2, 2024 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant