mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-22 10:21:04 +00:00
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:
parent
c3b483d12a
commit
219c2fa2e1
@ -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
|
* This file is part of the Genode OS framework, which is distributed
|
||||||
* under the terms of the GNU Affero General Public License version 3.
|
* 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;
|
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;
|
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_ */
|
#endif /* __eglplatform_h_ */
|
||||||
|
1
repos/libports/lib/import/import-egl_api.mk
Normal file
1
repos/libports/lib/import/import-egl_api.mk
Normal file
@ -0,0 +1 @@
|
|||||||
|
INC_DIR += $(call select_from_ports,egl_api)/include
|
1
repos/libports/lib/mk/egl_api.mk
Normal file
1
repos/libports/lib/mk/egl_api.mk
Normal file
@ -0,0 +1 @@
|
|||||||
|
# stub mk file
|
1
repos/libports/ports/egl_api.hash
Normal file
1
repos/libports/ports/egl_api.hash
Normal file
@ -0,0 +1 @@
|
|||||||
|
13c55615a84cd65cb10b2cccb5123c00bb8be229
|
15
repos/libports/ports/egl_api.port
Normal file
15
repos/libports/ports/egl_api.port
Normal 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
|
11
repos/libports/recipes/api/egl_api/content.mk
Normal file
11
repos/libports/recipes/api/egl_api/content.mk
Normal 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 >$@
|
1
repos/libports/recipes/api/egl_api/hash
Normal file
1
repos/libports/recipes/api/egl_api/hash
Normal file
@ -0,0 +1 @@
|
|||||||
|
1.5 2b775bca8dc76c82efd278e3619b8d4caabf0f0c
|
Loading…
x
Reference in New Issue
Block a user