Skip to content

Commit

Permalink
Move epoxy_headers definition into include/epoxy
Browse files Browse the repository at this point in the history
In order to properly depend on headers, both generated and provided, in
a separate directory, we need to refer to them using their path.

Generated headers already have their full path; for provided ones, we
can simply use the `files()` directive.

This change should allow using libepoxy as a Meson subproject.

Fixes: #115
  • Loading branch information
ebassi committed Mar 28, 2017
1 parent 0dfe840 commit 2dafa2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions include/epoxy/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@ foreach g: generated_headers
headers += [ header ]
endforeach

epoxy_headers = files(headers) + gen_headers

install_headers(headers, subdir: 'epoxy')
4 changes: 0 additions & 4 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ foreach g: generated_sources
endforeach

epoxy_sources = sources + gen_sources
epoxy_headers = gen_headers
foreach h: headers
epoxy_headers += join_paths(meson.source_root(), 'include/epoxy/@0@'.format(h))
endforeach

common_ldflags = []

Expand Down

0 comments on commit 2dafa2f

Please sign in to comment.