EGL api library

Library for EGL headers only. Useful for components that dynamically
load an EGL shared library.

Fix #2718
This commit is contained in:
Ehmry - 2018-03-16 10:46:39 +01:00 committed by Christian Helmuth
parent c3b483d12a
commit 219c2fa2e1
7 changed files with 43 additions and 1 deletions

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (C) 2010-2017 Genode Labs GmbH
* Copyright (C) 2010-2018 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU Affero General Public License version 3.
@ -44,6 +44,18 @@ struct Genode_egl_window
typedef struct Genode_egl_window *EGLNativeWindowType;
/* EGL 1.2 types, renamed for consistency in EGL 1.3 */
typedef EGLNativeDisplayType NativeDisplayType;
typedef EGLNativePixmapType NativePixmapType;
typedef EGLNativeWindowType NativeWindowType;
typedef khronos_int32_t EGLint;
/* C++ / C typecast macros for special EGL handle values */
#if defined(__cplusplus)
#define EGL_CAST(type, value) (static_cast<type>(value))
#else
#define EGL_CAST(type, value) ((type) (value))
#endif
#endif /* __eglplatform_h_ */

View File

@ -0,0 +1 @@
INC_DIR += $(call select_from_ports,egl_api)/include

View File

@ -0,0 +1 @@
# stub mk file

View File

@ -0,0 +1 @@
13c55615a84cd65cb10b2cccb5123c00bb8be229

View File

@ -0,0 +1,15 @@
LICENSE := Khronos
VERSION := 1.5
DOWNLOADS := egl.h.file eglext.h.file khrplatform.h.file
URL(egl.h) := https://www.khronos.org/registry/EGL/api/EGL/egl.h
NAME(egl.h) := include/EGL/egl.h
SHA(egl.h) := 572914c13175b1317dc18ae5ef6b6714c2fcad76
URL(eglext.h) := https://www.khronos.org/registry/EGL/api/EGL/eglext.h
NAME(eglext.h) := include/EGL/eglext.h
SHA(eglext.h) := 1667d58f56fd2676e3d6ea9f62849f1fccb1649c
URL(khrplatform.h) := https://www.khronos.org/registry/EGL/api/KHR/khrplatform.h
NAME(khrplatform.h) := include/KHR/khrplatform.h
SHA(khrplatform.h) := 8e0d9a99eb3053b448f4166beee7e3bf77631332

View File

@ -0,0 +1,11 @@
content: include LICENSE
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/egl_api)
include:
mkdir $@
cp -r $(PORT_DIR)/include/* $@
cp -r $(REP_DIR)/include/EGL $@
LICENSE:
grep '\*\*' $(PORT_DIR)/include/EGL/egl.h >$@

View File

@ -0,0 +1 @@
1.5 2b775bca8dc76c82efd278e3619b8d4caabf0f0c