sdl2.pc.in
author Sam Lantinga <slouken@libsdl.org>
Sun, 09 Feb 2014 02:04:40 -0800
changeset 8194 aada7c5bd410
parent 7876 d6373384b5ce
permissions -rw-r--r--
Possibly fixed bug 2250 - Cmake: SDL2 Doesn't install DLLs on Windows

ernest.lee

[Exec] CMake Error at cmake_install.cmake:151 (FILE):
[13:37:43][Exec] file INSTALL cannot find
[13:37:43][Exec] "C:/TeamCity/buildAgent/work/2e3d17a492e75daf/Build/libSDL2.so".

The cmake INSTALL project doesn't work because it uses Linux so shared library paths. Windows uses dlls and I think cygwin also uses dlls. I've included this patch. Can you check if it works?
slouken@1866
     1
# sdl pkg-config source file
slouken@1866
     2
slouken@1866
     3
prefix=@prefix@
slouken@1866
     4
exec_prefix=@exec_prefix@
slouken@1866
     5
libdir=@libdir@
slouken@1866
     6
includedir=@includedir@
slouken@1866
     7
slouken@6250
     8
Name: sdl2
slouken@1866
     9
Description: Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer.
slouken@1866
    10
Version: @SDL_VERSION@
slouken@1866
    11
Requires:
slouken@1866
    12
Conflicts:
slouken@7876
    13
Libs: -L${libdir} @SDL_RLD_FLAGS@ @SDL_LIBS@
slouken@2293
    14
Libs.private: @SDL_STATIC_LIBS@
slouken@6250
    15
Cflags: -I${includedir}/SDL2 @SDL_CFLAGS@