diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-10-08 10:04:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-08 10:04:33 -0400 |
commit | 1908d88fab23660e863928d8fc874bad4593b087 (patch) | |
tree | 6c04d433e9a1203554639d21fad3f1197cef5cee /render/meson.build | |
parent | 2f36e78de1da5ca8ef3a975674b02bcc988cd06a (diff) | |
parent | c0e5feea37dbc95675face03bc4707ad09db20b8 (diff) |
Merge pull request #236 from ascent12/gl-loader
Add GL/EGL extension loader generator
Diffstat (limited to 'render/meson.build')
-rw-r--r-- | render/meson.build | 20 |
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, +) |