build: autodetect if cxx bindings or mono is build

if it is - build the examples, if not - don't add the examples to the
subprojects that are build.
This commit is contained in:
Marcel Hollerbach 2018-11-19 15:59:45 +01:00
parent e6aa5e6aa0
commit d8ea961985
1 changed files with 11 additions and 1 deletions

View File

@ -1,12 +1,22 @@
#!/usr/bin/python3
import os
import subprocess
from string import Template
supported_languages = ["c", "csharp", "cxx"]
supported_languages = ["c"]
directories = ["apps", "reference", "tutorial"] # "examples", "legacy-examples"
goals = []
subprojects = []
if subprocess.call("pkg-config --exists efl-mono", shell=True) == 0:
supported_languages += ["csharp"]
else:
print("Disable c# bindings")
if subprocess.call("pkg-config --exists eina-cxx", shell=True) == 0:
supported_languages += ["cxx"]
else:
print("Disable c++ bindings")
class SubProjectGoal:
def __init__(self, language, path):
self.language = language