aboutsummaryrefslogtreecommitdiff
path: root/render/meson.build
diff options
context:
space:
mode:
authorScott Anderson <ascent12@hotmail.com>2017-10-08 13:19:25 +1300
committerScott Anderson <ascent12@hotmail.com>2017-10-08 13:23:41 +1300
commitc0e5feea37dbc95675face03bc4707ad09db20b8 (patch)
treea2309c2885ad4c88d5e46bd8f8e2ba6935c326b9 /render/meson.build
parent543601e86c24ad6ed630aba0cf615bfb585c19e7 (diff)
Add GL/EGL extension loader generator
Diffstat (limited to 'render/meson.build')
-rw-r--r--render/meson.build20
1 files changed, 20 insertions, 0 deletions
diff --git a/render/meson.build b/render/meson.build
index dc0ceeb9..749d1393 100644
--- a/render/meson.build
+++ b/render/meson.build
@@ -1,3 +1,16 @@
+glgen = find_program('../glgen.sh')
+
+glapi_c = custom_target('glapi.c',
+ input: 'glapi.txt',
+ output: '@BASENAME@.c',
+ command: [glgen, '@INPUT@', '@OUTPUT@'],
+)
+glapi_h = custom_target('glapi.h',
+ input: 'glapi.txt',
+ output: '@BASENAME@.h',
+ command: [glgen, '@INPUT@', '@OUTPUT@'],
+)
+
lib_wlr_render = static_library(
'wlr_render',
files(
@@ -11,6 +24,13 @@ lib_wlr_render = static_library(
'wlr_renderer.c',
'wlr_texture.c',
),
+ glapi_c,
+ glapi_h,
include_directories: wlr_inc,
dependencies: [glesv2, egl],
)
+
+wlr_render = declare_dependency(
+ link_with: lib_wlr_render,
+ sources: glapi_h,
+)