summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2016-10-14 22:43:19 +0200
committerDave Andreoli <dave@gurumeditation.it>2016-10-14 22:43:19 +0200
commite0d892ecaa014f1f823fceda52a3fb9d178fefd5 (patch)
treec056da70d31bd960af6a706fd2ae684aa3374888 /setup.py
parentcb062511b27f1aba2e1dcafd92e11c9631e2113e (diff)
Silence some false compiler warnings
This make the output a lot more readable, we can now spot real warnings
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py46
1 files changed, 28 insertions, 18 deletions
diff --git a/setup.py b/setup.py
index f252287..38c3278 100755
--- a/setup.py
+++ b/setup.py
@@ -210,6 +210,10 @@ elif os.path.exists(os.path.join(script_path, "Makefile")):
210ext_modules = [] 210ext_modules = []
211py_modules = [] 211py_modules = []
212packages = ["efl"] 212packages = ["efl"]
213common_cflags = [
214 "-Wno-deprecated-declarations", # we bind deprecated functions
215 "-Wno-unused-variable", # eo_instance_from_object() is unused
216]
213 217
214if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv): 218if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
215 sys.stdout.write("Python-EFL: %s\n" % RELEASE) 219 sys.stdout.write("Python-EFL: %s\n" % RELEASE)
@@ -268,7 +272,7 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
268 ('EFL_EO_API_SUPPORT', 1) 272 ('EFL_EO_API_SUPPORT', 1)
269 ], 273 ],
270 include_dirs=['include/'], 274 include_dirs=['include/'],
271 extra_compile_args=eo_cflags, 275 extra_compile_args=eo_cflags + common_cflags,
272 extra_link_args=eo_libs + eina_libs 276 extra_link_args=eo_libs + eina_libs
273 ) 277 )
274 ext_modules.append(eo_ext) 278 ext_modules.append(eo_ext)
@@ -277,15 +281,15 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
277 utils_ext = [ 281 utils_ext = [
278 Extension("utils.deprecated", ["efl/utils/deprecated" + module_suffix], 282 Extension("utils.deprecated", ["efl/utils/deprecated" + module_suffix],
279 include_dirs=['include/'], 283 include_dirs=['include/'],
280 extra_compile_args=eina_cflags, 284 extra_compile_args=eina_cflags + common_cflags,
281 extra_link_args=eina_libs), 285 extra_link_args=eina_libs),
282 Extension("utils.conversions", ["efl/utils/conversions" + module_suffix], 286 Extension("utils.conversions", ["efl/utils/conversions" + module_suffix],
283 include_dirs=['include/'], 287 include_dirs=['include/'],
284 extra_compile_args=eo_cflags, 288 extra_compile_args=eo_cflags + common_cflags,
285 extra_link_args=eo_libs + eina_libs), 289 extra_link_args=eo_libs + eina_libs),
286 Extension("utils.logger", ["efl/utils/logger" + module_suffix], 290 Extension("utils.logger", ["efl/utils/logger" + module_suffix],
287 include_dirs=['include/'], 291 include_dirs=['include/'],
288 extra_compile_args=eina_cflags, 292 extra_compile_args=eina_cflags + common_cflags,
289 extra_link_args=eina_libs), 293 extra_link_args=eina_libs),
290 ] 294 ]
291 ext_modules.extend(utils_ext) 295 ext_modules.extend(utils_ext)
@@ -300,7 +304,7 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
300 ('EFL_EO_API_SUPPORT', 1) 304 ('EFL_EO_API_SUPPORT', 1)
301 ], 305 ],
302 include_dirs=['include/'], 306 include_dirs=['include/'],
303 extra_compile_args=evas_cflags, 307 extra_compile_args=evas_cflags + common_cflags,
304 extra_link_args=evas_libs + eina_libs + eo_libs) 308 extra_link_args=evas_libs + eina_libs + eo_libs)
305 ext_modules.append(evas_ext) 309 ext_modules.append(evas_ext)
306 310
@@ -311,7 +315,8 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
311 ecore_ext = Extension("ecore", ["efl/ecore/efl.ecore" + module_suffix], 315 ecore_ext = Extension("ecore", ["efl/ecore/efl.ecore" + module_suffix],
312 include_dirs=['include/'], 316 include_dirs=['include/'],
313 extra_compile_args=list(set(ecore_cflags + 317 extra_compile_args=list(set(ecore_cflags +
314 ecore_file_cflags)), 318 ecore_file_cflags +
319 common_cflags)),
315 extra_link_args=ecore_libs + ecore_file_libs + 320 extra_link_args=ecore_libs + ecore_file_libs +
316 eina_libs + evas_libs) 321 eina_libs + evas_libs)
317 ext_modules.append(ecore_ext) 322 ext_modules.append(ecore_ext)
@@ -325,7 +330,8 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
325 include_dirs=['include/'], 330 include_dirs=['include/'],
326 extra_compile_args=list(set(ecore_cflags + 331 extra_compile_args=list(set(ecore_cflags +
327 ecore_file_cflags + 332 ecore_file_cflags +
328 ecore_input_cflags)), 333 ecore_input_cflags +
334 common_cflags)),
329 extra_link_args=ecore_libs + ecore_file_libs + 335 extra_link_args=ecore_libs + ecore_file_libs +
330 ecore_input_libs) 336 ecore_input_libs)
331 ext_modules.append(ecore_input_ext) 337 ext_modules.append(ecore_input_ext)
@@ -338,7 +344,8 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
338 include_dirs=['include/'], 344 include_dirs=['include/'],
339 extra_compile_args=list(set(ecore_cflags + 345 extra_compile_args=list(set(ecore_cflags +
340 ecore_file_cflags + 346 ecore_file_cflags +
341 ecore_con_cflags)), 347 ecore_con_cflags +
348 common_cflags)),
342 extra_link_args=ecore_libs + ecore_file_libs + 349 extra_link_args=ecore_libs + ecore_file_libs +
343 ecore_con_libs + eina_libs) 350 ecore_con_libs + eina_libs)
344 ext_modules.append(ecore_con_ext) 351 ext_modules.append(ecore_con_ext)
@@ -356,7 +363,8 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
356 extra_compile_args=list(set(ecore_cflags + 363 extra_compile_args=list(set(ecore_cflags +
357 ecore_file_cflags + 364 ecore_file_cflags +
358 ecore_x_cflags + 365 ecore_x_cflags +
359 ecore_input_cflags)), 366 ecore_input_cflags +
367 common_cflags)),
360 extra_link_args=ecore_libs + ecore_file_libs + 368 extra_link_args=ecore_libs + ecore_file_libs +
361 ecore_x_libs + ecore_input_libs + 369 ecore_x_libs + ecore_input_libs +
362 eina_libs + evas_libs) 370 eina_libs + evas_libs)
@@ -366,7 +374,7 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
366 ethumb_cflags, ethumb_libs = pkg_config('Ethumb', 'ethumb', EFL_MIN_VER) 374 ethumb_cflags, ethumb_libs = pkg_config('Ethumb', 'ethumb', EFL_MIN_VER)
367 ethumb_ext = Extension("ethumb", ["efl/ethumb/efl.ethumb" + module_suffix], 375 ethumb_ext = Extension("ethumb", ["efl/ethumb/efl.ethumb" + module_suffix],
368 include_dirs=['include/'], 376 include_dirs=['include/'],
369 extra_compile_args=ethumb_cflags, 377 extra_compile_args=ethumb_cflags + common_cflags,
370 extra_link_args=ethumb_libs + eina_libs) 378 extra_link_args=ethumb_libs + eina_libs)
371 ext_modules.append(ethumb_ext) 379 ext_modules.append(ethumb_ext)
372 380
@@ -376,7 +384,8 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
376 ethumb_client_ext = Extension("ethumb_client", 384 ethumb_client_ext = Extension("ethumb_client",
377 ["efl/ethumb/efl.ethumb_client" + module_suffix], 385 ["efl/ethumb/efl.ethumb_client" + module_suffix],
378 include_dirs=['include/'], 386 include_dirs=['include/'],
379 extra_compile_args=ethumb_client_cflags, 387 extra_compile_args=ethumb_client_cflags +
388 common_cflags,
380 extra_link_args=ethumb_client_libs + eina_libs) 389 extra_link_args=ethumb_client_libs + eina_libs)
381 ext_modules.append(ethumb_client_ext) 390 ext_modules.append(ethumb_client_ext)
382 391
@@ -384,7 +393,7 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
384 edje_cflags, edje_libs = pkg_config('Edje', 'edje', EFL_MIN_VER) 393 edje_cflags, edje_libs = pkg_config('Edje', 'edje', EFL_MIN_VER)
385 edje_ext = Extension("edje", ["efl/edje/efl.edje" + module_suffix], 394 edje_ext = Extension("edje", ["efl/edje/efl.edje" + module_suffix],
386 include_dirs=['include/'], 395 include_dirs=['include/'],
387 extra_compile_args=edje_cflags, 396 extra_compile_args=edje_cflags + common_cflags,
388 extra_link_args=edje_libs + eina_libs + evas_libs) 397 extra_link_args=edje_libs + eina_libs + evas_libs)
389 ext_modules.append(edje_ext) 398 ext_modules.append(edje_ext)
390 399
@@ -393,7 +402,7 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
393 ["efl/edje_edit/efl.edje_edit" + module_suffix], 402 ["efl/edje_edit/efl.edje_edit" + module_suffix],
394 define_macros=[('EDJE_EDIT_IS_UNSTABLE_AND_I_KNOW_ABOUT_IT', None)], 403 define_macros=[('EDJE_EDIT_IS_UNSTABLE_AND_I_KNOW_ABOUT_IT', None)],
395 include_dirs=['include/'], 404 include_dirs=['include/'],
396 extra_compile_args=edje_cflags, 405 extra_compile_args=edje_cflags + common_cflags,
397 extra_link_args=edje_libs + eina_libs + evas_libs) 406 extra_link_args=edje_libs + eina_libs + evas_libs)
398 ext_modules.append(edje_edit_ext) 407 ext_modules.append(edje_edit_ext)
399 408
@@ -402,9 +411,8 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
402 emotion_ext = Extension("emotion", 411 emotion_ext = Extension("emotion",
403 ["efl/emotion/efl.emotion" + module_suffix], 412 ["efl/emotion/efl.emotion" + module_suffix],
404 include_dirs=['include/'], 413 include_dirs=['include/'],
405 extra_compile_args=emotion_cflags, 414 extra_compile_args=emotion_cflags + common_cflags,
406 extra_link_args=emotion_libs + 415 extra_link_args=emotion_libs + eina_libs + evas_libs)
407 eina_libs + evas_libs)
408 ext_modules.append(emotion_ext) 416 ext_modules.append(emotion_ext)
409 417
410 # === dbus mainloop integration === 418 # === dbus mainloop integration ===
@@ -412,7 +420,9 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
412 dbus_ml_ext = Extension("dbus_mainloop", 420 dbus_ml_ext = Extension("dbus_mainloop",
413 ["efl/dbus_mainloop/dbus_mainloop" + module_suffix, 421 ["efl/dbus_mainloop/dbus_mainloop" + module_suffix,
414 "efl/dbus_mainloop/e_dbus.c"], 422 "efl/dbus_mainloop/e_dbus.c"],
415 extra_compile_args=list(set(dbus_cflags + ecore_cflags)), 423 extra_compile_args=list(set(dbus_cflags +
424 ecore_cflags +
425 common_cflags)),
416 extra_link_args=dbus_libs + ecore_libs) 426 extra_link_args=dbus_libs + ecore_libs)
417 ext_modules.append(dbus_ml_ext) 427 ext_modules.append(dbus_ml_ext)
418 428
@@ -425,7 +435,7 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
425 ('EFL_EO_API_SUPPORT', 1) 435 ('EFL_EO_API_SUPPORT', 1)
426 ], 436 ],
427 include_dirs=["include/"], 437 include_dirs=["include/"],
428 extra_compile_args=elm_cflags, 438 extra_compile_args=elm_cflags + common_cflags,
429 extra_link_args=elm_libs + eina_libs + eo_libs + evas_libs) 439 extra_link_args=elm_libs + eina_libs + eo_libs + evas_libs)
430 ext_modules.append(e) 440 ext_modules.append(e)
431 441