-
-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixed build scripts to correctly determine the path of PSMoveAPI's root dir (works for both local and TravisCI build) - Fixed AppVeyor config for new path - Added mingw cross compile build to travis - Added osx build to travis
- Loading branch information
Showing
7 changed files
with
51 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,30 @@ | ||
sudo: required | ||
|
||
dist: trusty | ||
|
||
language: | ||
- cpp | ||
|
||
matrix: | ||
include: | ||
- os: linux | ||
dist: trusty | ||
sudo: required | ||
env: TYPE=debian | ||
- os: linux | ||
dist: trusty | ||
sudo: required | ||
env: TYPE=cross | ||
- os: osx | ||
env: TYPE=osx | ||
|
||
before_install: | ||
- sudo add-apt-repository --yes ppa:zoogie/sdl2-snapshots | ||
- sudo add-apt-repository --yes ppa:kubuntu-ppa/backports | ||
- sudo add-apt-repository --yes ppa:hlprasu/swig-trusty-backports | ||
- if [[ "$TYPE" == "debian" ]]; then sudo add-apt-repository --yes ppa:zoogie/sdl2-snapshots; fi | ||
- if [[ "$TYPE" == "debian" ]]; then sudo add-apt-repository --yes ppa:kubuntu-ppa/backports; fi | ||
- if [[ "$TYPE" == "debian" ]]; then sudo add-apt-repository --yes ppa:hlprasu/swig-trusty-backports; fi | ||
- if [[ "$TYPE" == "debian" ]]; then sudo apt-get update -qq; fi | ||
- if [[ "$TYPE" == "cross" ]]; then sudo apt-get install -q -y mingw-w64 g++-mingw-w64; fi | ||
|
||
install: | ||
- git submodule update --init --recursive | ||
|
||
script: | ||
- ./build_scripts/ubuntu/build.sh | ||
- if [[ "$TYPE" == "debian" ]]; then ./contrib/build_scripts/debian/build.sh; fi | ||
- if [[ "$TYPE" == "cross" ]]; then ./contrib/build_scripts/debian/cross-compile-mingw64; fi | ||
- if [[ "$TYPE" == "osx" ]]; then ./contrib/build_scripts/osx/build-osx-snapshot; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
This directory contains some patches that are needed to build PSMoveAPI for Windows using Visual Studio: | ||
|
||
#### libusb_dynamic_crt.patch | ||
The libusb project links against the static CRT by default. PSMoveAPI links against the dynamic CRT. | ||
Mixing these two together in the same program usually leads to problems, so this patch patches libusb to also link against the dynamic CRT. | ||
|
||
#### sdl_vs2015_libs | ||
The version of SDL2 that we're using does not currently work with VS2015. | ||
There is a newer version of SDL2 available that does, but the way they've chosen to fix the VS2015 issues (/NODEFAULTLIB and other shenanigans) | ||
usually leads to more problems down the line. | ||
|
||
This patch fixes SDL2 in the correct way for VS2015 (ie. just adding some extra libs to link against). Once SDL2 mainline has been properly fixed, we can remove this patch. |