diff --git a/steam-runtime-tools/meson.build b/steam-runtime-tools/meson.build index c8f47438ab28168505d5ff71133560dfd0ece80c..df72a1258b4e984e855449486cf7311b6a2c3cb2 100644 --- a/steam-runtime-tools/meson.build +++ b/steam-runtime-tools/meson.build @@ -39,7 +39,7 @@ libsteamrt_public_headers = [ enums = gnome.mkenums_simple( 'enums', - install_dir : join_paths('steam-runtime-tools-' + api_major, 'steam-runtime-tools'), + install_dir : join_paths(get_option('includedir'), 'steam-runtime-tools-' + api_major, 'steam-runtime-tools'), install_header : true, sources : libsteamrt_public_headers, ) @@ -77,6 +77,7 @@ pkg.generate( libsteamrt_dep = declare_dependency( include_directories : project_include_dirs, link_with : libsteamrt, + sources : libsteamrt_public_headers + [enums[1]], ) if get_option('introspection') diff --git a/steam-runtime-tools/steam-runtime-tools.h b/steam-runtime-tools/steam-runtime-tools.h index 8749e27460b7713e7bccfdfb97d452cfa689cbf4..844d550df34944668e29e68018d91f6e5d098b01 100644 --- a/steam-runtime-tools/steam-runtime-tools.h +++ b/steam-runtime-tools/steam-runtime-tools.h @@ -28,6 +28,7 @@ #define _SRT_IN_SINGLE_HEADER #include <steam-runtime-tools/architecture.h> +#include <steam-runtime-tools/enums.h> #include <steam-runtime-tools/library.h> #undef _SRT_IN_SINGLE_HEADER