mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-04 11:25:58 -04:00
Compare commits
23 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
b00d3b9eb9 | ||
![]() |
ac53cd10e6 | ||
![]() |
a05e661aac | ||
![]() |
c3ac6407fa | ||
![]() |
4815bd386b | ||
![]() |
4d941b3b31 | ||
![]() |
2c07d9fc64 | ||
![]() |
1447f88546 | ||
![]() |
b44f34a3f6 | ||
![]() |
6da8c8d4b7 | ||
![]() |
01ba3ddfba | ||
![]() |
cc198c9a56 | ||
![]() |
120635b1a8 | ||
![]() |
7ea8feceee | ||
![]() |
a695265d4d | ||
![]() |
7cd6255d13 | ||
![]() |
82429858a6 | ||
![]() |
77dac76e8c | ||
![]() |
77a97972b3 | ||
![]() |
4eae7e69e1 | ||
![]() |
3254e07577 | ||
![]() |
f2cd04bde8 | ||
![]() |
19a8d3b9f2 |
29
.github/workflows/ci.yml
vendored
29
.github/workflows/ci.yml
vendored
@ -8,44 +8,33 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- { cxx: g++, features: "coverage" }
|
- { cxx: g++ }
|
||||||
- { cxx: clang++, features: "nooptlibs" }
|
- { cxx: clang++, features: "nooptlibs" }
|
||||||
- { cxx: clang++, features: "static" }
|
- { cxx: clang++, features: "static" }
|
||||||
name: ${{ matrix.cxx }} ${{ matrix.features }}
|
name: ${{ matrix.cxx }} ${{ matrix.features }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
env:
|
env:
|
||||||
DEBIAN_FRONTEND: noninteractive
|
DEBIAN_FRONTEND: noninteractive
|
||||||
run: |
|
run: |
|
||||||
apt-get update -qq
|
apt-get update -qq
|
||||||
apt-get install -yqq --no-install-recommends build-essential clang cmake libsdl2-dev cppcheck doxygen graphviz xvfb curl
|
apt-get install -yqq --no-install-recommends build-essential clang cmake libsdl2-dev cppcheck doxygen graphviz curl ca-certificates
|
||||||
if [ ${{ !contains(matrix.features, 'nooptlibs') }} = true ]; then
|
if [ ${{ !contains(matrix.features, 'nooptlibs') }} = true ]; then
|
||||||
apt-get install -qq --no-install-recommends libsdl2-image-dev libsdl2-ttf-dev libsdl2-mixer-dev
|
apt-get install -qq --no-install-recommends libsdl2-image-dev libsdl2-ttf-dev libsdl2-mixer-dev
|
||||||
fi
|
fi
|
||||||
if [ ${{ contains(matrix.features, 'coverage') }} = true ]; then
|
|
||||||
apt-get install -qq --no-install-recommends python3-pip git
|
|
||||||
pip install --user pyyaml cpp-coveralls
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Set up environment
|
- name: Set up environment
|
||||||
run: |
|
run: |
|
||||||
curl --insecure https://raw.githubusercontent.com/AMDmi3/github_env/c8cc83d/github_env.py > e; chmod 755 e
|
curl https://raw.githubusercontent.com/AMDmi3/github_env/c8cc83d/github_env.py > e; chmod 755 e
|
||||||
./e 'CXX=${{ matrix.cxx }}'
|
./e 'CXX=${{ matrix.cxx }}'
|
||||||
./e 'CXXFLAGS=-Wall -Wextra -pedantic' # XXX: Add -Werror
|
./e 'CXXFLAGS=-Wall -Wextra -pedantic' # XXX: Add -Werror
|
||||||
./e 'SDL_AUDIODRIVER=disk'
|
./e 'CMAKE_ARGS=-DSDL2PP_ENABLE_LIVE_TESTS=NO' # no ability to run live tests in CI (SDL_InitSubsystem failed: x11 not available with xvfb)
|
||||||
./e 'SDL_VIDEODRIVER=x11'
|
./e --if ${{ matrix.cxx == 'clang++' }} 'CXXFLAGS+=-Wno-self-assign-overloaded' # explicit self-assignment tests
|
||||||
./e 'DISPLAY=:99.0'
|
|
||||||
./e --if ${{ matrix.xxx == 'clang++' }} 'CXXFLAGS+=-Wno-self-assign-overloaded' # explicit self-assignment tests
|
|
||||||
./e --if ${{ contains(matrix.features, 'coverage') }} 'CXXFLAGS+=--coverage' 'LDFLAGS+=--coverage'
|
|
||||||
./e --if ${{ contains(matrix.features, 'nooptlibs') }} 'CMAKE_ARGS+=-DSDL2PP_WITH_IMAGE=NO -DSDL2PP_WITH_MIXER=NO -DSDL2PP_WITH_TTF=NO'
|
./e --if ${{ contains(matrix.features, 'nooptlibs') }} 'CMAKE_ARGS+=-DSDL2PP_WITH_IMAGE=NO -DSDL2PP_WITH_MIXER=NO -DSDL2PP_WITH_TTF=NO'
|
||||||
./e --if ${{ contains(matrix.features, 'static') }} 'CMAKE_ARGS+=-DSDL2PP_STATIC=YES'
|
./e --if ${{ contains(matrix.features, 'static') }} 'CMAKE_ARGS+=-DSDL2PP_STATIC=YES'
|
||||||
|
|
||||||
- name: Set up environment for live tests
|
|
||||||
run: |
|
|
||||||
/sbin/start-stop-daemon --start --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 800x600x24 -ac +extension GLX
|
|
||||||
|
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: cmake . -DCMAKE_VERBOSE_MAKEFILE=yes -DCMAKE_INSTALL_PREFIX=/usr ${CMAKE_ARGS}
|
run: cmake . -DCMAKE_VERBOSE_MAKEFILE=yes -DCMAKE_INSTALL_PREFIX=/usr ${CMAKE_ARGS}
|
||||||
- name: Build
|
- name: Build
|
||||||
@ -73,9 +62,3 @@ jobs:
|
|||||||
cd $GITHUB_WORKSPACE/exttests/cmake
|
cd $GITHUB_WORKSPACE/exttests/cmake
|
||||||
cmake .
|
cmake .
|
||||||
cmake --build .
|
cmake --build .
|
||||||
|
|
||||||
- name: Upload coverage
|
|
||||||
if: ${{ contains(matrix.features, 'coverage') }}
|
|
||||||
uses: codecov/codecov-action@v1
|
|
||||||
with:
|
|
||||||
fail_ci_if_error: true
|
|
||||||
|
44
.github/workflows/doxygen.yml
vendored
Normal file
44
.github/workflows/doxygen.yml
vendored
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
name: Doxygen
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ubuntu:rolling
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Install dependencies
|
||||||
|
env:
|
||||||
|
DEBIAN_FRONTEND: noninteractive
|
||||||
|
run: |
|
||||||
|
apt-get update -qq
|
||||||
|
apt-get install -yqq --no-install-recommends build-essential cmake libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libsdl2-mixer-dev doxygen graphviz curl ca-certificates git openssh-client
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: libSDL2pp/libSDL2pp.github.io
|
||||||
|
ssh-key: ${{ secrets.PAGES_SSH_KEY }}
|
||||||
|
path: doxygen/html
|
||||||
|
- name: Clean up old docs
|
||||||
|
run: |
|
||||||
|
cd doxygen/html
|
||||||
|
git rm -r .
|
||||||
|
- name: Configure
|
||||||
|
run: cmake .
|
||||||
|
- name: Run doxygen
|
||||||
|
run: make doxygen
|
||||||
|
- name: Deploy
|
||||||
|
run: |
|
||||||
|
cd doxygen/html
|
||||||
|
touch .nojekyll
|
||||||
|
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
|
git config --global user.name "github-actions[bot]"
|
||||||
|
git add .
|
||||||
|
if git diff --cached --quiet; then
|
||||||
|
echo "No changes, skipping commit"
|
||||||
|
else
|
||||||
|
git commit -m "Update for ${{ github.repository }} commit ${{ github.sha }} run_id ${{ github.run_id }}"
|
||||||
|
git push --force
|
||||||
|
fi
|
@ -2,6 +2,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||||
|
|
||||||
|
## 0.18.1 - 2023-04-17
|
||||||
|
### Fixed
|
||||||
|
* Fix SDL2main library link order
|
||||||
|
|
||||||
|
## 0.18.0 - 2023-03-27
|
||||||
|
### Changed
|
||||||
|
* Switch SDL2_{mixer,mixer,ttf} detection to upstream CMake scripts
|
||||||
|
|
||||||
## 0.17.0 - 2022-04-28
|
## 0.17.0 - 2022-04-28
|
||||||
### Changed
|
### Changed
|
||||||
* Switch to modern CMake
|
* Switch to modern CMake
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
|
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
|
||||||
|
|
||||||
# meta
|
# meta
|
||||||
project(libSDL2pp LANGUAGES CXX VERSION 0.17.0)
|
project(libSDL2pp LANGUAGES CXX VERSION 0.18.1)
|
||||||
|
|
||||||
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
|
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED YES)
|
set(CMAKE_CXX_STANDARD_REQUIRED YES)
|
||||||
@ -28,7 +26,7 @@ set(SDL2_ALL_LIBRARIES SDL2::SDL2)
|
|||||||
set(SDL2_ALL_PKGCONFIG_MODULES sdl2)
|
set(SDL2_ALL_PKGCONFIG_MODULES sdl2)
|
||||||
|
|
||||||
if(TARGET SDL2::SDL2main)
|
if(TARGET SDL2::SDL2main)
|
||||||
set(SDL2_ALL_LIBRARIES ${SDL2_ALL_LIBRARIES} SDL2::SDL2main)
|
set(SDL2_ALL_LIBRARIES SDL2::SDL2main ${SDL2_ALL_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(MINGW)
|
if(MINGW)
|
||||||
@ -39,7 +37,7 @@ endif()
|
|||||||
|
|
||||||
if(SDL2PP_WITH_IMAGE)
|
if(SDL2PP_WITH_IMAGE)
|
||||||
find_package(SDL2_image REQUIRED)
|
find_package(SDL2_image REQUIRED)
|
||||||
set(SDL2_ALL_LIBRARIES ${SDL2_ALL_LIBRARIES} SDL2::SDL2_image)
|
set(SDL2_ALL_LIBRARIES ${SDL2_ALL_LIBRARIES} SDL2_image::SDL2_image)
|
||||||
set(SDL2_ALL_PKGCONFIG_MODULES "${SDL2_ALL_PKGCONFIG_MODULES} SDL2_image")
|
set(SDL2_ALL_PKGCONFIG_MODULES "${SDL2_ALL_PKGCONFIG_MODULES} SDL2_image")
|
||||||
else()
|
else()
|
||||||
message(STATUS "SDL2_image support disabled")
|
message(STATUS "SDL2_image support disabled")
|
||||||
@ -47,7 +45,7 @@ endif()
|
|||||||
|
|
||||||
if(SDL2PP_WITH_TTF)
|
if(SDL2PP_WITH_TTF)
|
||||||
find_package(SDL2_ttf REQUIRED)
|
find_package(SDL2_ttf REQUIRED)
|
||||||
set(SDL2_ALL_LIBRARIES ${SDL2_ALL_LIBRARIES} SDL2::SDL2_ttf)
|
set(SDL2_ALL_LIBRARIES ${SDL2_ALL_LIBRARIES} SDL2_ttf::SDL2_ttf)
|
||||||
set(SDL2_ALL_PKGCONFIG_MODULES "${SDL2_ALL_PKGCONFIG_MODULES} SDL2_ttf")
|
set(SDL2_ALL_PKGCONFIG_MODULES "${SDL2_ALL_PKGCONFIG_MODULES} SDL2_ttf")
|
||||||
else()
|
else()
|
||||||
message(STATUS "SDL2_ttf support disabled")
|
message(STATUS "SDL2_ttf support disabled")
|
||||||
@ -55,7 +53,7 @@ endif()
|
|||||||
|
|
||||||
if(SDL2PP_WITH_MIXER)
|
if(SDL2PP_WITH_MIXER)
|
||||||
find_package(SDL2_mixer REQUIRED)
|
find_package(SDL2_mixer REQUIRED)
|
||||||
set(SDL2_ALL_LIBRARIES ${SDL2_ALL_LIBRARIES} SDL2::SDL2_mixer)
|
set(SDL2_ALL_LIBRARIES ${SDL2_ALL_LIBRARIES} SDL2_mixer::SDL2_mixer)
|
||||||
set(SDL2_ALL_PKGCONFIG_MODULES "${SDL2_ALL_PKGCONFIG_MODULES} SDL2_mixer")
|
set(SDL2_ALL_PKGCONFIG_MODULES "${SDL2_ALL_PKGCONFIG_MODULES} SDL2_mixer")
|
||||||
else()
|
else()
|
||||||
message(STATUS "SDL2_mixer support disabled")
|
message(STATUS "SDL2_mixer support disabled")
|
||||||
@ -243,12 +241,5 @@ if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
|
|||||||
NAMESPACE SDL2pp::
|
NAMESPACE SDL2pp::
|
||||||
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/SDL2pp
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/SDL2pp
|
||||||
)
|
)
|
||||||
install(
|
install(FILES ${PROJECT_BINARY_DIR}/cmake/SDL2ppConfig.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/SDL2pp)
|
||||||
FILES
|
|
||||||
${PROJECT_BINARY_DIR}/cmake/SDL2ppConfig.cmake
|
|
||||||
cmake/FindSDL2_image.cmake
|
|
||||||
cmake/FindSDL2_ttf.cmake
|
|
||||||
cmake/FindSDL2_mixer.cmake
|
|
||||||
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/SDL2pp
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -5,7 +5,7 @@ PROJECT_NAME = "libSDL2pp"
|
|||||||
PROJECT_NUMBER = @SDL2PP_VERSION@
|
PROJECT_NUMBER = @SDL2PP_VERSION@
|
||||||
|
|
||||||
# Project description
|
# Project description
|
||||||
PROJECT_BRIEF = "C++11 bindings/wrapper for SDL2"
|
PROJECT_BRIEF = "C++ bindings/wrapper for SDL2"
|
||||||
|
|
||||||
# Where to place generated files
|
# Where to place generated files
|
||||||
OUTPUT_DIRECTORY = doxygen
|
OUTPUT_DIRECTORY = doxygen
|
||||||
@ -26,16 +26,9 @@ EXCLUDE = "@CMAKE_CURRENT_SOURCE_DIR@/SDL2pp/external"
|
|||||||
# Examples (doesn't work atm)
|
# Examples (doesn't work atm)
|
||||||
EXAMPLE_PATH = "@CMAKE_CURRENT_SOURCE_DIR@/examples"
|
EXAMPLE_PATH = "@CMAKE_CURRENT_SOURCE_DIR@/examples"
|
||||||
|
|
||||||
# Filter through sed to remove badges which Doxygen fails to process properly
|
|
||||||
INPUT_FILTER = "sed -e '/^\[!\[/d'"
|
|
||||||
FILTER_PATTERNS = *.md
|
|
||||||
|
|
||||||
# README file is the main page
|
# README file is the main page
|
||||||
USE_MDFILE_AS_MAINPAGE = "@CMAKE_CURRENT_SOURCE_DIR@/README.md"
|
USE_MDFILE_AS_MAINPAGE = "@CMAKE_CURRENT_SOURCE_DIR@/README.md"
|
||||||
|
|
||||||
# Include timestamp
|
|
||||||
HTML_TIMESTAMP = YES
|
|
||||||
|
|
||||||
# We target web, no latex needed
|
# We target web, no latex needed
|
||||||
GENERATE_LATEX = NO
|
GENERATE_LATEX = NO
|
||||||
|
|
||||||
|
77
README.md
77
README.md
@ -1,4 +1,4 @@
|
|||||||
<a href="https://repology.org/metapackage/libsdl2pp/versions">
|
<a href="https://repology.org/project/libsdl2pp/versions">
|
||||||
<img src="https://repology.org/badge/vertical-allrepos/libsdl2pp.svg" alt="libsdl2pp packaging status" align="right">
|
<img src="https://repology.org/badge/vertical-allrepos/libsdl2pp.svg" alt="libsdl2pp packaging status" align="right">
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
# libSDL2pp
|
# libSDL2pp
|
||||||
|
|
||||||
This library provides C++17 bindings/wrapper for SDL2 and satellite libraries.
|
This library provides C++ bindings/wrapper for SDL2 and satellite libraries.
|
||||||
|
|
||||||
## Synopsis
|
## Synopsis
|
||||||
|
|
||||||
@ -72,11 +72,11 @@ try {
|
|||||||
SDL_Delay(2000);
|
SDL_Delay(2000);
|
||||||
|
|
||||||
// All SDL objects are released at this point or if an error occurs
|
// All SDL objects are released at this point or if an error occurs
|
||||||
} catch (SDL2pp::Exception& e) {
|
} catch (const SDL2pp::Exception& e) {
|
||||||
// Exception stores SDL_GetError() result and name of function which failed
|
// Exception stores SDL_GetError() result and name of function which failed
|
||||||
std::cerr << "Error in: " << e.GetSDLFunction() << std::endl;
|
std::cerr << "Error in: " << e.GetSDLFunction() << std::endl;
|
||||||
std::cerr << " Reason: " << e.GetSDLError() << std::endl;
|
std::cerr << " Reason: " << e.GetSDLError() << std::endl;
|
||||||
} catch (std::exception& e) {
|
} catch (const std::exception& e) {
|
||||||
// This also works (e.g. "SDL_Init failed: No available video device")
|
// This also works (e.g. "SDL_Init failed: No available video device")
|
||||||
std::cerr << e.what() << std::endl;
|
std::cerr << e.what() << std::endl;
|
||||||
}
|
}
|
||||||
@ -147,40 +147,49 @@ Dependencies:
|
|||||||
|
|
||||||
To build standalone version:
|
To build standalone version:
|
||||||
|
|
||||||
cmake . && make
|
```shell
|
||||||
|
cmake .
|
||||||
|
cmake --build .
|
||||||
|
```
|
||||||
|
|
||||||
Following variables may be supplied to CMake to affect build:
|
Following variables may be supplied to CMake to affect build:
|
||||||
|
|
||||||
* ```SDL2PP_WITH_IMAGE``` - enable SDL_image support (default ON)
|
* `SDL2PP_WITH_IMAGE` - enable SDL_image support (default ON)
|
||||||
* ```SDL2PP_WITH_MIXER``` - enable SDL_mixer support (default ON)
|
* `SDL2PP_WITH_MIXER` - enable SDL_mixer support (default ON)
|
||||||
* ```SDL2PP_WITH_TTF``` - enable SDL_ttf support (default ON)
|
* `SDL2PP_WITH_TTF` - enable SDL_ttf support (default ON)
|
||||||
* ```SDL2PP_WITH_EXAMPLES``` - enable building example programs (only for standalone build, default ON)
|
* `SDL2PP_WITH_EXAMPLES` - enable building example programs (only for standalone build, default ON)
|
||||||
* ```SDL2PP_WITH_TESTS``` - enable building tests (only for standalone build, default ON)
|
* `SDL2PP_WITH_TESTS` - enable building tests (only for standalone build, default ON)
|
||||||
* ```SDL2PP_STATIC``` - build static library instead of shared (only for standalone build, default OFF)
|
* `SDL2PP_STATIC` - build static library instead of shared (only for standalone build, default OFF)
|
||||||
* ```SDL2PP_ENABLE_LIVE_TESTS``` - enable tests which require X11 and/or audio device to run (only for standalone build, default ON)
|
* `SDL2PP_ENABLE_LIVE_TESTS` - enable tests which require X11 and/or audio device to run (only for standalone build, default ON)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
To install the library system-wide, run:
|
To install the library system-wide, run:
|
||||||
|
|
||||||
cmake . && make && make install
|
```shell
|
||||||
|
cmake .
|
||||||
|
cmake --build .
|
||||||
|
cmake --install .
|
||||||
|
```
|
||||||
|
|
||||||
You can change installation prefix with CMAKE_INSTALL_PREFIX cmake
|
You can change installation prefix with CMAKE_INSTALL_PREFIX cmake
|
||||||
variable:
|
variable:
|
||||||
|
|
||||||
cmake -DCMAKE_INSTALL_PREFIX=/usr/local . && make && make install
|
```shell
|
||||||
|
cmake -DCMAKE_INSTALL_PREFIX=/usr/local .
|
||||||
|
cmake --build .
|
||||||
|
cmake --install .
|
||||||
|
```
|
||||||
|
|
||||||
SDL2pp installs pkg-config file, so it can be used with any build
|
SDL2pp installs `pkg-config` file, so it can be used with any build
|
||||||
system that interacts with pkg-config, including CMake and GNU
|
system that interacts with `pkg-config`, including CMake, meson and
|
||||||
Autotools. It also installs CMake module file, which can be used
|
GNU Autotools. It also installs CMake module file, which can be used
|
||||||
from CMake directly:
|
from CMake directly:
|
||||||
|
|
||||||
```cmake
|
```cmake
|
||||||
FIND_PACKAGE(SDL2PP REQUIRED)
|
find_package(SDL2pp REQUIRED)
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES(${SDL2PP_INCLUDE_DIRS})
|
target_link_libraries(mytarget SDL2pp::SDL2pp)
|
||||||
...
|
|
||||||
TARGET_LINK_LIBRARIES(... ${SDL2PP_LIBRARIES})
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Bundling ##
|
## Bundling ##
|
||||||
@ -193,27 +202,23 @@ Just place the library into dedicated directory in your project
|
|||||||
(for example, extlib/libSDL2pp) and add
|
(for example, extlib/libSDL2pp) and add
|
||||||
|
|
||||||
```cmake
|
```cmake
|
||||||
SET(SDL2PP_WITH_IMAGE ON) # if you need SDL_image support
|
set(SDL2PP_WITH_IMAGE ON) # if you need SDL_image support
|
||||||
SET(SDL2PP_WITH_MIXER ON) # if you need SDL_mixer support
|
set(SDL2PP_WITH_MIXER ON) # if you need SDL_mixer support
|
||||||
SET(SDL2PP_WITH_TTF ON) # if you need SDL_ttf support
|
set(SDL2PP_WITH_TTF ON) # if you need SDL_ttf support
|
||||||
ADD_SUBDIRECTORY(extlib/libSDL2pp)
|
add_subdirectory(extlib/libSDL2pp)
|
||||||
```
|
```
|
||||||
|
|
||||||
into your core CMakeLists.txt. This will act similar to how
|
into your core CMakeLists.txt. This will act similar to how
|
||||||
FIND_PACKAGE usually does, and will provide ${SDL2PP_INCLUDE_DIRS}
|
`find_package` usually does, and will provide `SDL2pp::SDL2pp`
|
||||||
and ${SDL2PP_LIBRARIES} variables for your project. You will then
|
target for your project. You will then be able it as usual:
|
||||||
be able to use them as usual:
|
|
||||||
|
|
||||||
```cmake
|
```cmake
|
||||||
INCLUDE_DIRECTORIES(${SDL2PP_INCLUDE_DIRS})
|
target_link_libraries(mytarget SDL2pp::SDL2pp)
|
||||||
|
|
||||||
ADD_EXECUTABLE(mytarget ...)
|
|
||||||
TARGET_LINK_LIBRARIES(mytarget ${SDL2PP_LIBRARIES})
|
|
||||||
```
|
```
|
||||||
|
|
||||||
If bundled, libSDL2pp does not build examples and becomes a static
|
If bundled, libSDL2pp does not build examples and becomes a static
|
||||||
library, providing required SDL2 includes/libs in the mentioned
|
library. See [hoverboard](https://github.com/AMDmi3/hoverboard-sdl/blob/5729f9fb6929f6e8147481f5b21772fc1e35562a/CMakeLists.txt#L34-L40)
|
||||||
variables.
|
project as an example of using both bundled and systemwide SDL2pp.
|
||||||
|
|
||||||
## Completeness
|
## Completeness
|
||||||
|
|
||||||
@ -245,8 +250,8 @@ Projects using libSDL2pp:
|
|||||||
|
|
||||||
## WWW
|
## WWW
|
||||||
|
|
||||||
* [GitHub page](https://github.com/libSDL2pp/libSDL2pp)
|
* [GitHub repository](https://github.com/libSDL2pp/libSDL2pp)
|
||||||
* [Online documentation](https://sdl2pp.amdmi3.ru/)
|
* [Doxygen documentation](https://libsdl2pp.github.io/)
|
||||||
|
|
||||||
## Author
|
## Author
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2014-2016 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2014-2016 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2014-2016 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2014-2016 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2014 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2014 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2014 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2014 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2017 Vraiment <jemc44@gmail.com>
|
Copyright (C) 2017 Vraiment <jemc44@gmail.com>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2017 Vraiment <jemc44@gmail.com>
|
Copyright (C) 2017 Vraiment <jemc44@gmail.com>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2014-2016,2022 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2014-2016,2022 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2016 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2016 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2016 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2016 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2015-2016 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2015-2016 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2015-2016 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2015-2016 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2015-2017 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2015-2017 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2015-2017 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2015-2017 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
@ -133,7 +133,7 @@ public:
|
|||||||
/// works with it), Mem and ConstMem (take memory chunk and work with
|
/// works with it), Mem and ConstMem (take memory chunk and work with
|
||||||
/// it like a file) and allow one to write custom RWops.
|
/// it like a file) and allow one to write custom RWops.
|
||||||
///
|
///
|
||||||
/// SDL2pp::RWops support all this in extended C++11 way.
|
/// SDL2pp::RWops support all this in extended C++ way.
|
||||||
///
|
///
|
||||||
/// Usage example:
|
/// Usage example:
|
||||||
/// \code
|
/// \code
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2016 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2016 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2016 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2016 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2014-2016 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2014-2016 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2016 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2016 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2017 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2017 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2017 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2017 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
# SDL2::SDL2_image
|
|
||||||
|
|
||||||
find_path(SDL2_IMAGE_INCLUDE_DIR NAMES SDL_image.h PATH_SUFFIXES SDL2)
|
|
||||||
find_library(SDL2_IMAGE_LIBRARY NAMES SDL2_image)
|
|
||||||
|
|
||||||
if(SDL2_IMAGE_INCLUDE_DIR AND SDL2_IMAGE_LIBRARY)
|
|
||||||
add_library(SDL2::SDL2_image UNKNOWN IMPORTED)
|
|
||||||
set_property(TARGET SDL2::SDL2_image PROPERTY IMPORTED_LOCATION ${SDL2_IMAGE_LIBRARY})
|
|
||||||
set_target_properties(SDL2::SDL2_image PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${SDL2_IMAGE_INCLUDE_DIR})
|
|
||||||
|
|
||||||
message(STATUS "Found SDL2_image: ${SDL2_IMAGE_LIBRARY}")
|
|
||||||
else()
|
|
||||||
message(FATAL_ERROR "Could not find SDL2_image")
|
|
||||||
endif()
|
|
@ -1,14 +0,0 @@
|
|||||||
# SDL2::SDL2_mixer
|
|
||||||
|
|
||||||
find_path(SDL2_MIXER_INCLUDE_DIR NAMES SDL_mixer.h PATH_SUFFIXES SDL2)
|
|
||||||
find_library(SDL2_MIXER_LIBRARY NAMES SDL2_mixer)
|
|
||||||
|
|
||||||
if(SDL2_MIXER_INCLUDE_DIR AND SDL2_MIXER_LIBRARY)
|
|
||||||
add_library(SDL2::SDL2_mixer UNKNOWN IMPORTED)
|
|
||||||
set_property(TARGET SDL2::SDL2_mixer PROPERTY IMPORTED_LOCATION ${SDL2_MIXER_LIBRARY})
|
|
||||||
set_target_properties(SDL2::SDL2_mixer PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${SDL2_MIXER_INCLUDE_DIR})
|
|
||||||
|
|
||||||
message(STATUS "Found SDL2_mixer: ${SDL2_MIXER_LIBRARY}")
|
|
||||||
else()
|
|
||||||
message(FATAL_ERROR "Could not find SDL2_mixer")
|
|
||||||
endif()
|
|
@ -1,14 +0,0 @@
|
|||||||
# SDL2::SDL2_ttf
|
|
||||||
|
|
||||||
find_path(SDL2_TTF_INCLUDE_DIR NAMES SDL_ttf.h PATH_SUFFIXES SDL2)
|
|
||||||
find_library(SDL2_TTF_LIBRARY NAMES SDL2_ttf)
|
|
||||||
|
|
||||||
if(SDL2_TTF_INCLUDE_DIR AND SDL2_TTF_LIBRARY)
|
|
||||||
add_library(SDL2::SDL2_ttf UNKNOWN IMPORTED)
|
|
||||||
set_property(TARGET SDL2::SDL2_ttf PROPERTY IMPORTED_LOCATION ${SDL2_TTF_LIBRARY})
|
|
||||||
set_target_properties(SDL2::SDL2_ttf PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${SDL2_TTF_INCLUDE_DIR})
|
|
||||||
|
|
||||||
message(STATUS "Found SDL2_ttf: ${SDL2_TTF_LIBRARY}")
|
|
||||||
else()
|
|
||||||
message(FATAL_ERROR "Could not find SDL2_ttf")
|
|
||||||
endif()
|
|
@ -1,15 +1,15 @@
|
|||||||
find_package(SDL2 REQUIRED)
|
find_package(SDL2 REQUIRED)
|
||||||
|
|
||||||
if(@SDL2PP_WITH_IMAGE@)
|
if(@SDL2PP_WITH_IMAGE@)
|
||||||
include("${CMAKE_CURRENT_LIST_DIR}/FindSDL2_image.cmake")
|
find_package(SDL2_image REQUIRED)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(@SDL2PP_WITH_TTF@)
|
if(@SDL2PP_WITH_TTF@)
|
||||||
include("${CMAKE_CURRENT_LIST_DIR}/FindSDL2_ttf.cmake")
|
find_package(SDL2_ttf REQUIRED)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(@SDL2PP_WITH_MIXER@)
|
if(@SDL2PP_WITH_MIXER@)
|
||||||
include("${CMAKE_CURRENT_LIST_DIR}/FindSDL2_mixer.cmake")
|
find_package(SDL2_mixer REQUIRED)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include("${CMAKE_CURRENT_LIST_DIR}/SDL2ppTargets.cmake")
|
include("${CMAKE_CURRENT_LIST_DIR}/SDL2ppTargets.cmake")
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2016 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2016 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2016 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2016 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++ bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
|
@ -4,7 +4,7 @@ libdir=${exec_prefix}/lib
|
|||||||
includedir=${prefix}/include
|
includedir=${prefix}/include
|
||||||
|
|
||||||
Name: sdl2pp
|
Name: sdl2pp
|
||||||
Description: C++11 bindings/wrappers for SDL2
|
Description: C++ bindings/wrappers for SDL2
|
||||||
Version: @SDL2PP_VERSION@
|
Version: @SDL2PP_VERSION@
|
||||||
Requires: @SDL2_ALL_PKGCONFIG_MODULES@
|
Requires: @SDL2_ALL_PKGCONFIG_MODULES@
|
||||||
Conflicts:
|
Conflicts:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user