mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
Add GL/EGL extension loader generator
This commit is contained in:
parent
543601e86c
commit
c0e5feea37
9 changed files with 143 additions and 77 deletions
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue