]> git.sesse.net Git - nageru/blobdiff - meson.build
Unbreak compilation with CEF.
[nageru] / meson.build
index 7146fb82ee03e95ea52d234d67831d13e762352b..296615e1ec7632879505ddebdfe45a2080088a81 100644 (file)
@@ -28,6 +28,11 @@ if cxx.has_argument('-Wno-deprecated-declarations')
        add_project_arguments('-Wno-deprecated-declarations', language: 'cpp')
 endif
 
+# This needs to be done before declaring any build targets.
+if get_option('cef_dir') != ''
+       add_project_arguments('-DHAVE_CEF=1', language: 'cpp')
+endif
+
 top_include = include_directories('.')
 
 subdir('shared')