Browse Source

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.
devs/bu5hm4n/syntax-update
Marcel Hollerbach 4 years ago
parent
commit
d8ea961985
  1. 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…
Cancel
Save