# Make the Nageru version available as a #define.
add_project_arguments('-DNAGERU_VERSION="' + meson.project_version() + '"', language: 'cpp')
+# Make the prefix (e.g. /usr/local) available as a #define.
+add_project_arguments('-DPREFIX="' + get_option('prefix') + '"', language: 'cpp')
+
# This needs to be done before declaring any build targets.
if get_option('cef_dir') != ''
add_project_arguments('-DHAVE_CEF=1', language: 'cpp')
bool uncompressed_video_to_http = false;
bool x264_video_to_http = false;
bool x264_video_to_disk = false; // Disables Quick Sync entirely. Implies x264_video_to_http == true.
- std::vector<std::string> theme_dirs { ".", "/usr/local/share/nageru" };
+ std::vector<std::string> theme_dirs { ".", PREFIX "/share/nageru" };
std::string recording_dir = ".";
std::string theme_filename = "theme.lua";
bool locut_enabled = true;