diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..9874aca --- /dev/null +++ b/LICENSE @@ -0,0 +1,29 @@ +The 3-Clause BSD License: + +Copyright (C) 1999-2024 PinMAME development team and contributors + (unless specifically noted differently in a respective source file) + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation and/or + other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may + be used to endorse or promote products derived from this software without specific + prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, +OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY +OF SUCH DAMAGE. diff --git a/README.md b/README.md index 6d23b3d..9535835 100644 --- a/README.md +++ b/README.md @@ -28,3 +28,70 @@ AltsoundPause(true); . AltsoundShutdown(); ``` + +## Building: + +#### Windows (x64) + +```shell +platforms/win/x64/external.sh +cmake -G "Visual Studio 17 2022" -DPLATFORM=win -DARCH=x64 -B build +cmake --build build --config Release +``` + +#### Windows (x86) + +```shell +platforms/win/x86/external.sh +cmake -G "Visual Studio 17 2022" -A Win32 -DPLATFORM=win -DARCH=x86 -B build +cmake --build build --config Release +``` + +#### Linux (x64) +```shell +platforms/linux/x64/external.sh +cmake -DPLATFORM=linux -DARCH=x64 -DCMAKE_BUILD_TYPE=Release -B build +cmake --build build +``` + +#### Linux (aarch64) +```shell +platforms/linux/aarch64/external.sh +cmake -DPLATFORM=linux -DARCH=aarch64 -DCMAKE_BUILD_TYPE=Release -B build +cmake --build build +``` + +#### MacOS (arm64) +```shell +platforms/macos/arm64/external.sh +cmake -DPLATFORM=macos -DARCH=arm64 -DCMAKE_BUILD_TYPE=Release -B build +cmake --build build +``` + +#### MacOS (x64) +```shell +platforms/macos/x64/external.sh +cmake -DPLATFORM=macos -DARCH=x64 -DCMAKE_BUILD_TYPE=Release -B build +cmake --build build +``` + +#### iOS (arm64) +```shell +platforms/ios/arm64/external.sh +cmake -DPLATFORM=ios -DARCH=arm64 -DCMAKE_BUILD_TYPE=Release -B build +cmake --build build +``` + +#### tvOS (arm64) +```shell +platforms/tvos/arm64/external.sh +cmake -DPLATFORM=tvos -DARCH=arm64 -DCMAKE_BUILD_TYPE=Release -B build +cmake --build build +``` + +#### Android (arm64-v8a) +```shell +platforms/android/arm64-v8a/external.sh +cmake -DPLATFORM=android -DARCH=arm64-v8a -DCMAKE_BUILD_TYPE=Release -B build +cmake --build build +```