Add build options of backends
[platform/core/uifw/libds-tizen.git] / src / libds / backend / meson.build
index c24f074..b1fff87 100644 (file)
@@ -1,2 +1,15 @@
+all_backends = ['tdm']
+backends = get_option('backends')
+if 'auto' in backends and get_option('auto_features').enabled()
+  backends = all_backends
+elif 'auto' in backends and get_option('auto_features').disabled()
+  backends = []
+endif
+
+foreach backend : all_backends
+  if backend in backends or 'auto' in backends
+    subdir(backend)
+  endif
+endforeach
+
 subdir('wayland')
-subdir('tdm')