2017-10-08 00:19:25 +00:00
|
|
|
glgen = find_program('../glgen.sh')
|
|
|
|
|
2017-11-22 01:04:29 +00:00
|
|
|
glapi = custom_target('glapi',
|
2017-10-08 00:19:25 +00:00
|
|
|
input: 'glapi.txt',
|
2017-11-22 01:04:29 +00:00
|
|
|
output: ['@BASENAME@.c', '@BASENAME@.h'],
|
|
|
|
command: [glgen, '@INPUT@', '@OUTPUT0@', '@OUTPUT1@'],
|
2017-10-08 00:19:25 +00:00
|
|
|
)
|
|
|
|
|
2017-08-30 18:30:47 +00:00
|
|
|
lib_wlr_render = static_library(
|
|
|
|
'wlr_render',
|
|
|
|
files(
|
|
|
|
'egl.c',
|
|
|
|
'gles2/pixel_format.c',
|
|
|
|
'gles2/renderer.c',
|
|
|
|
'gles2/shaders.c',
|
|
|
|
'gles2/texture.c',
|
|
|
|
'gles2/util.c',
|
2018-02-12 20:29:23 +00:00
|
|
|
'matrix.c',
|
2017-08-30 18:30:47 +00:00
|
|
|
'wlr_renderer.c',
|
|
|
|
'wlr_texture.c',
|
|
|
|
),
|
2017-11-22 01:04:29 +00:00
|
|
|
glapi[0],
|
|
|
|
glapi[1],
|
2017-08-30 18:30:47 +00:00
|
|
|
include_directories: wlr_inc,
|
2018-01-18 18:47:21 +00:00
|
|
|
dependencies: [glesv2, egl, pixman],
|
2017-08-30 18:30:47 +00:00
|
|
|
)
|
2017-10-08 00:19:25 +00:00
|
|
|
|
|
|
|
wlr_render = declare_dependency(
|
|
|
|
link_with: lib_wlr_render,
|
2017-11-22 01:04:29 +00:00
|
|
|
sources: glapi[1],
|
2017-10-08 00:19:25 +00:00
|
|
|
)
|