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

Create and install .pc files (correct pull request) #8

Open
wants to merge 2 commits into
base: master
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
config.mk
*~
*.pc
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ clean:
install: config.mk
$(MAKE) -C lib install
$(MAKE) -C include install
$(MAKE) -f Makefile.pc

test: config.mk
$(MAKE) -C test test
21 changes: 21 additions & 0 deletions Makefile.pc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
include Makefile.setup
include config.mk

all:
echo "prefix=$(prefix)" > egl.pc
cat egl.pc.in >> egl.pc
sed -i "s/MVERSION/${MALI_VERSION}/g" egl.pc
echo "prefix=$(prefix)" > gles_cm.pc
cat gles_cm.pc.in >> gles_cm.pc
sed -i "s/MVERSION/${MALI_VERSION}/g" gles_cm.pc
echo "prefix=$(prefix)" > glesv2.pc
cat glesv2.pc.in >> glesv2.pc
sed -i "s/MVERSION/${MALI_VERSION}/g" glesv2.pc

install: egl.pc gles_cm.pc glesv2.pc
$(MKDIR) $(libdir)/pkgconfig
$(INSTALL_DATA) $^ $(libdir)/pkgconfig

clean:
$(RM) egl.pc gles_cm.pc glesv2.pc

11 changes: 11 additions & 0 deletions egl.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include

Name: egl
Description: Mali EGL library
Requires.private:
Version: MVERSION
Libs: -L${libdir} -lEGL
Libs.private: -lm -lpthread -ldl
Cflags: -I${includedir}
11 changes: 11 additions & 0 deletions gles_cm.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include

Name: gles_cm
Description: Mali OpenGL ES 1.1 CM library
Requires.private:
Version: MVERSION
Libs: -L${libdir} -lGLES_CM
Libs.private: -lm -lpthread -ldl
Cflags: -I${includedir}
11 changes: 11 additions & 0 deletions glesv2.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include

Name: glesv2
Description: Mali OpenGL ES 2.0 library
Requires.private:
Version: MVERSION
Libs: -L${libdir} -lGLESv2
Libs.private: -lm -lpthread -ldl
Cflags: -I${includedir}
1 change: 1 addition & 0 deletions include/GLES/gl.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ typedef float GLfloat;
typedef float GLclampf;
typedef signed int GLfixed;
typedef signed int GLclampx;
typedef char GLchar;

typedef int * GLintptr;
typedef int * GLsizeiptr;
Expand Down
1 change: 1 addition & 0 deletions include/GLES2/gl2.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ typedef unsigned int GLuint;
typedef khronos_float_t GLfloat;
typedef khronos_float_t GLclampf;
typedef khronos_int32_t GLfixed;
typedef char GLchar;

/* GL types for handling large vertex buffer objects */
typedef khronos_intptr_t GLintptr;
Expand Down