From 2c414aaea7053ecc9fc68d88488651f24537ee06 Mon Sep 17 00:00:00 2001 From: Wouter Wijsman Date: Wed, 15 Jan 2025 15:09:28 +0100 Subject: [PATCH 1/2] Add instructions on how to deal with licenses --- tips_tricks.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/tips_tricks.md b/tips_tricks.md index 2472d09..ff1266d 100644 --- a/tips_tricks.md +++ b/tips_tricks.md @@ -65,6 +65,29 @@ Installing a library can be done with the following command: psp-pacman -S library ``` +## Managing Licenses +{: .fs-6 .fw-700 } + +Every project made with the PSPDEV toolchain will import at least some libraries, each with their own license. Everything bundled is free to use, but some libraries will ask you to share their license with your project or in rare cases give users access to your code to respect their licenses. The `psp-create-license-directory` tool can be used to easily collect the licenses that apply to your project, so you can comply with them. + +To create a directory with a copy of the licenses that are always used in project made with the PSPDEV toolchain use the following command: + +``` +psp-create-license-directory +``` + +For any library you added, for example `sdl2` or `jsoncpp`, you can add the licenses by adding the library names to the command: + +``` +psp-create-license-directory sdl2 jsoncpp +``` + +If you're not sure what the library you used is called exactly, you can use the `-l` option to list the installed libraries: + +``` +psp-create-license-directory -l +``` + ## Updating the Toolchain {: .fs-6 .fw-700 } From f2f87a8bd1741c42334e7b786232e580f5c0d518 Mon Sep 17 00:00:00 2001 From: Wouter Wijsman Date: Wed, 15 Jan 2025 15:12:17 +0100 Subject: [PATCH 2/2] Small wording fix --- tips_tricks.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tips_tricks.md b/tips_tricks.md index ff1266d..59e711b 100644 --- a/tips_tricks.md +++ b/tips_tricks.md @@ -68,12 +68,12 @@ psp-pacman -S library ## Managing Licenses {: .fs-6 .fw-700 } -Every project made with the PSPDEV toolchain will import at least some libraries, each with their own license. Everything bundled is free to use, but some libraries will ask you to share their license with your project or in rare cases give users access to your code to respect their licenses. The `psp-create-license-directory` tool can be used to easily collect the licenses that apply to your project, so you can comply with them. +Every project made with the PSPDEV toolchain will import at least some libraries, each with their own license. Everything bundled is free to use, but some libraries will ask you to share their license with your project or in rare cases give users access to your code to respect their licenses. The `psp-create-license-directory` tool can be used to easily collect the licenses that apply to your project, so you can comply with them and ship them with your project. To create a directory with a copy of the licenses that are always used in project made with the PSPDEV toolchain use the following command: ``` -psp-create-license-directory +psp-create-license-directory ``` For any library you added, for example `sdl2` or `jsoncpp`, you can add the licenses by adding the library names to the command: