Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

Build gainput as a shared library by using BUILD_SHARED option in CMake. #79

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jpvanoosten
Copy link

As mentioned in issue #78, it is not possible to generate the project in CMake if either GAIN_BUILD_SHARED or GAIN_BUILD_STATIC is disabled while generating the project. This pull request fixes this issue by relying on the BUILD_SHARED_LIBS built-in option in CMake.
The gainputstatic project should not be necessary if we rely on the fact that the user can switch between the shared and static variants by specifying the BUILD_SHARED_LIBS option accordingly.

Additionally, the gainput shared library is copied to the sample's output directory on successful build.
@jpvanoosten
Copy link
Author

The 2nd commit also fixes up CMake configurations to provide the public include files and library dependencies required by targets that consume gainput.

Also fixed a lot of compiler errors/warnings.

Also removed failing test cases on Windows when using XInput (PadButtonAxis19 and PadButtonGyroscopeY) are not valid pad buttons when using XInput.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant