Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat, build] Compatibility with other CMake generators #861

Merged
merged 3 commits into from
Mar 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions .ci/before_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

# don't do this for clang
if [ "$CXX" = "g++" ]; then
export CXX="g++-4.8" CC="gcc-4.8"
export CXX="g++-5" CC="gcc-5"
fi
# in case anything ignores the environment variables, override through PATH
mkdir bin
ln -s "$(command -v gcc-4.8)" bin/cc
ln -s "$(command -v gcc-4.8)" bin/gcc
ln -s "$(command -v c++-4.8)" bin/c++
ln -s "$(command -v g++-4.8)" bin/g++
ln -s "$(command -v gcc-5)" bin/cc
ln -s "$(command -v gcc-5)" bin/gcc
ln -s "$(command -v c++-5)" bin/c++
ln -s "$(command -v g++-5)" bin/g++

export PATH=$PWD/bin:$PATH
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ env:
matrix:
- SHELLCHECKS=1
- EMULATE_READER=1 CC=gcc
- EMULATE_READER=1 CC=gcc USE_NINJA=1
- EMULATE_READER=1 CC=gcc KODEBUG=1
- EMULATE_READER=1 CC=clang
- TARGET=kindle DOCKER_IMG=frenzie/kokindle:0.1.0
Expand All @@ -30,7 +31,8 @@ addons:
apt:
packages:
- cmake
- g++-4.8
- ninja-build
- g++
- libsdl1.2-dev
- luarocks
# for luasec
Expand Down
5 changes: 5 additions & 0 deletions Makefile.defs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ export CMAKE_BUILD_TYPE

# CMAKE=cmake --no-warn-unused-cli
CMAKE=cmake
CMAKE_MAKE_PROGRAM=$(MAKE)
ifdef USE_NINJA
CMAKE:=cmake -G Ninja
CMAKE_MAKE_PROGRAM:=ninja
endif

# set this to your ARM cross compiler:
# set CC CXX AR LD RANLIB
Expand Down