diff options
author | GhostNaN <59353890+GhostNaN@users.noreply.github.com> | 2020-08-02 16:59:05 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-02 16:59:05 +0000 |
commit | a9e79a93bb2204fa2e281397796368d2c92ad28b (patch) | |
tree | cf018af4e5ceadefbb17c2ef71e098692ba3dec2 | |
parent | d5e97e05b6b0b46ac70bf749331149ef2da12271 (diff) |
Cleanup build
-rw-r--r-- | meson.build | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/meson.build b/meson.build index 5ae2fb7..f6449e4 100644 --- a/meson.build +++ b/meson.build @@ -1,16 +1,13 @@ project('mpvpaper', ['c']) cc = meson.get_compiler('c') -inc = include_directories('inc') dl_dep = cc.find_library('dl', required : false) - -mpv=dependency('mpv') -wayland=dependency('wayland-client') +wl_protocols=dependency('wayland-protocols') +wl_client=dependency('wayland-client') wl_egl=dependency('wayland-egl') egl=dependency('egl') +mpv=dependency('mpv') -wl_client=dependency('wayland-client') -wl_protocols=dependency('wayland-protocols') scanner=find_program('wayland-scanner') scanner_private_code=generator(scanner,output: '@BASENAME@-protocol.c',arguments: ['private-code','@INPUT@','@OUTPUT@']) scanner_client_header=generator(scanner,output: '@BASENAME@-client-protocol.h',arguments: ['client-header','@INPUT@','@OUTPUT@']) @@ -30,5 +27,5 @@ lib_protocols=static_library('protocols',protocols_src+protocols_headers,depende protocols_dep=declare_dependency(link_with: lib_protocols,sources: protocols_headers) executable(meson.project_name(), ['src/main.c', 'src/paper.c', 'src/glad.c'], -include_directories : inc, -dependencies: [mpv, wayland, wl_egl, egl, protocols_dep, dl_dep], install: true) +include_directories : ['inc'], +dependencies: [dl_dep, wl_client, wl_egl, egl, mpv, protocols_dep], install: true) |