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:
parent
e6aa5e6aa0
commit
d8ea961985
12
setup.py
12
setup.py
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue