Skip to content

Commit 4090947

Browse files
committed
Fix inclusion of generated headers when used as Meson subproject
1 parent 6458ea3 commit 4090947

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

include/wpe/wpe.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,17 @@
4040
#include "loader.h"
4141
#include "pasteboard.h"
4242
#include "renderer-host.h"
43-
#include "version.h"
44-
#include "version-deprecated.h"
4543
#include "view-backend.h"
4644

45+
/*
46+
* The wpe/ prefix is needed for autogenerated headers to avoid
47+
* breaking building libwpe as a Meson subproject, because headers
48+
* in that case are uninstalled and will be picked from the directory
49+
* where they are generated (instead of where they are installed.)
50+
*/
51+
#include "wpe/version.h"
52+
#include "wpe/version-deprecated.h"
53+
4754
#undef __WPE_H_INSIDE__
4855

4956
#endif /* __wpe_h__ */

0 commit comments

Comments
 (0)