44376c04fa
After installation, compiling new programs is possible with $ cc game.c `pkg-config --static --libs --cflags raylib` or $ cc game.c `pkg-config --libs --cflags raylib` depending on configuration Also adds following configuration options: - WITH_PIC "Compile static library as position-independent code" - STATIC_RAYLIB "Build raylib as a static library" - MACOS_FATLIB "Build fat library for both i386 and x86_64 on macOS"
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
language: c
|
|
sudo: required
|
|
dist: trusty
|
|
|
|
git:
|
|
depth: 3
|
|
|
|
os:
|
|
- osx
|
|
- linux
|
|
|
|
env:
|
|
global:
|
|
- VERBOSE=1
|
|
matrix:
|
|
- CFLAGS=-m64 SHARED=ON
|
|
- CFLAGS=-m32 SHARED=OFF
|
|
# We don't install x11 32-bit libraries, so skip shared libraries on -m32
|
|
before_script:
|
|
- export CFLAGS="-std=gnu99 $CFLAGS"
|
|
|
|
before_install:
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
|
|
sudo apt-get install -y gcc-multilib
|
|
libopenal-dev
|
|
libxcursor-dev libxinerama-dev
|
|
mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev libglew-dev;
|
|
fi
|
|
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; brew install glfw; fi
|
|
- "$CC --version"
|
|
|
|
script:
|
|
- mkdir build
|
|
- cd build
|
|
- cmake -DSTATIC_RAYLIB=ON -DSHARED_RAYLIB=$SHARED -DBUILD_EXAMPLES=OFF -DBUILD_GAMES=OFF ..
|
|
- make
|
|
# - make package
|
|
# - sudo make install
|
|
#
|
|
#deploy:
|
|
# provider: releases
|
|
# api_key:
|
|
# secure: XXX
|
|
# file_glob: true
|
|
# file: raylib-*.tar.gz
|
|
# skip_cleanup: true
|
|
# on:
|
|
# branch: master
|
|
# tags: true
|