summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2015-01-06 23:13:14 +0100
committerDave Andreoli <dave@gurumeditation.it>2015-01-06 23:13:14 +0100
commit85b27c161e1c2f759fd78530e63ce85a61ebe267 (patch)
treec0e5ba5a8c114487de830e9e6af89ec514c582a8 /setup.py
parent29d1b41f4433e7c8cd17eb54be03a9c2c127bd15 (diff)
Autodetect ecore x
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/setup.py b/setup.py
index dc87ab5..23fb586 100755
--- a/setup.py
+++ b/setup.py
@@ -22,10 +22,6 @@ CYTHON_MIN_VERSION = "0.21"
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
28
29# Add git commit count for dev builds 25# Add git commit count for dev builds
30if vers[2] == 99: 26if vers[2] == 99:
31 try: 27 try:
@@ -277,12 +273,15 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
277 ext_modules.append(ecore_ext) 273 ext_modules.append(ecore_ext)
278 274
279 # === Ecore X === 275 # === Ecore X ===
280 if ENABLE_ECORE_X: 276 try:
281 ecore_input_cflags, ecore_input_libs = pkg_config('EcoreInput', 277 ecore_input_cflags, ecore_input_libs = pkg_config('EcoreInput',
282 'ecore-input', 278 'ecore-input',
283 EFL_MIN_VER) 279 EFL_MIN_VER)
284 ecore_x_cflags, ecore_x_libs = pkg_config('EcoreX', 'ecore-x', 280 ecore_x_cflags, ecore_x_libs = pkg_config('EcoreX', 'ecore-x',
285 EFL_MIN_VER) 281 EFL_MIN_VER)
282 except SystemExit:
283 pass
284 else:
286 ecore_x_ext = Extension("ecore_x", 285 ecore_x_ext = Extension("ecore_x",
287 ["efl/ecore_x/efl.ecore_x" + module_suffix], 286 ["efl/ecore_x/efl.ecore_x" + module_suffix],
288 include_dirs=['include/'], 287 include_dirs=['include/'],
@@ -320,7 +319,7 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
320 extra_link_args=edje_libs + eina_libs + evas_libs) 319 extra_link_args=edje_libs + eina_libs + evas_libs)
321 ext_modules.append(edje_ext) 320 ext_modules.append(edje_ext)
322 321
323 # --- Edje_Edit --- 322 # === Edje_Edit ===
324 edje_edit_ext = Extension("edje_edit", 323 edje_edit_ext = Extension("edje_edit",
325 ["efl/edje/efl.edje_edit" + module_suffix], 324 ["efl/edje/efl.edje_edit" + module_suffix],
326 define_macros=[('EDJE_EDIT_IS_UNSTABLE_AND_I_KNOW_ABOUT_IT', None)], 325 define_macros=[('EDJE_EDIT_IS_UNSTABLE_AND_I_KNOW_ABOUT_IT', None)],