Generate and install pkg-config pc file
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"
This commit is contained in:
parent
589cec0dd5
commit
44376c04fa
1 changed files with 117 additions and 70 deletions
|
|
@ -37,7 +37,7 @@ before_build:
|
|||
- cd build
|
||||
|
||||
build_script:
|
||||
- cmake -G %GENERATOR% -DBUILD_EXAMPLES=OFF -DBUILD_GAMES=OFF ..
|
||||
- cmake -G %GENERATOR% -DSTATIC_RAYLIB=ON -DSHARED_RAYLIB=OFF -DBUILD_EXAMPLES=OFF -DBUILD_GAMES=OFF ..
|
||||
- cmake --build . --target install
|
||||
|
||||
after_build:
|
||||
|
|
|
|||
Loading…
Reference in a new issue