summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2015-01-04 13:15:29 +0100
committerDave Andreoli <dave@gurumeditation.it>2015-01-04 13:15:29 +0100
commit0873394260e68f515f0c8f11e644dd67ae3949f0 (patch)
tree67875991e4fda916d36d18a4dfba171dc20b48cc /setup.py
parent027505f45a0927e93d20a96191d2e6b96ae33aed (diff)
disable ecore_x by default
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/setup.py b/setup.py
index 40123ac..07ac4c8 100755
--- a/setup.py
+++ b/setup.py
@@ -22,6 +22,9 @@ CYTHON_MIN_VERSION = "0.19"
22EFL_MIN_VER = RELEASE 22EFL_MIN_VER = RELEASE
23ELM_MIN_VER = RELEASE 23ELM_MIN_VER = RELEASE
24 24
25# disable ecore_x by default (change here to enable)
26ENABLE_ECORE_X = False
27
25 28
26# Add git commit count for dev builds 29# Add git commit count for dev builds
27if vers[2] == 99: 30if vers[2] == 99:
@@ -112,8 +115,8 @@ class CleanGenerated(Command):
112 pass 115 pass
113 116
114 def run(self): 117 def run(self):
115 for lib in ("eo", "evas", "ecore", "edje", "edje/edit", "emotion", 118 for lib in ("eo", "evas", "ecore", "ecore_x", "edje", "edje/edit",
116 "elementary", "ethumb", "utils"): 119 "emotion", "elementary", "ethumb", "utils"):
117 lib_path = os.path.join(script_path, "efl", lib) 120 lib_path = os.path.join(script_path, "efl", lib)
118 for root, dirs, files in os.walk(lib_path): 121 for root, dirs, files in os.walk(lib_path):
119 for f in files: 122 for f in files:
@@ -238,15 +241,12 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
238 ext_modules.append(ecore_ext) 241 ext_modules.append(ecore_ext)
239 242
240 # === Ecore X === 243 # === Ecore X ===
241 try: 244 if ENABLE_ECORE_X:
242 ecore_input_cflags, ecore_input_libs = pkg_config('EcoreInput', 245 ecore_input_cflags, ecore_input_libs = pkg_config('EcoreInput',
243 'ecore-input', 246 'ecore-input',
244 EFL_MIN_VER) 247 EFL_MIN_VER)
245 ecore_x_cflags, ecore_x_libs = pkg_config('EcoreX', 'ecore-x', 248 ecore_x_cflags, ecore_x_libs = pkg_config('EcoreX', 'ecore-x',
246 EFL_MIN_VER) 249 EFL_MIN_VER)
247 except SystemExit: # FIXME: Change pkg-config to return a value
248 pass
249 else:
250 ecore_x_ext = Extension("ecore_x", 250 ecore_x_ext = Extension("ecore_x",
251 ["efl/ecore_x/efl.ecore_x" + module_suffix], 251 ["efl/ecore_x/efl.ecore_x" + module_suffix],
252 include_dirs=['include/'], 252 include_dirs=['include/'],