Skip to content

Add nxdk specific wrapper for pkg-config #85

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

Open
wants to merge 1 commit into
base: bin-wrappers
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions usr/bin/nxdk-pkg-config
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env sh

. ${NXDK_DIR}/usr/share/nxdk/prelude.inl

export PKG_CONFIG_LIBDIR=""
export PKG_CONFIG_LIBDIR="${PKG_CONFIG_LIBDIR}:${NXDK_DIR}/usr/lib/pkgconfig"
export PKG_CONFIG_LIBDIR="${PKG_CONFIG_LIBDIR}:${NXDK_DIR}/usr/local/lib/pkgconfig"

PKG_CONFIG="pkg-config"

${PKG_CONFIG} \
--define-variable=NXDK_DIR=${NXDK_DIR} \
"$@"
9 changes: 9 additions & 0 deletions usr/lib/pkgconfig/sdl2.pc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# sdl pkg-config source file

Name: sdl2
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.
Version: 2.0.9
Requires:
Conflicts:
Libs: ${NXDK_DIR}/lib/libSDL2.lib
Cflags: -I${NXDK_DIR}/lib/sdl/SDL2/include