Skip to content

Commit

Permalink
Update waf
Browse files Browse the repository at this point in the history
  • Loading branch information
costashatz committed Feb 6, 2024
1 parent 4d3ac9d commit d18984c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
14 changes: 7 additions & 7 deletions waf

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -118,23 +118,17 @@ def configure_robot_dart(conf):
conf.check_magnum_plugins(components='AssimpImporter StbTrueTypeFont', required=False)
conf.check_magnum_integration(components='Dart Eigen', required=False)

print("~~~~~PYTHON~~~~~~")

conf.env['py_flags'] = ''
conf.env['BUILD_PYTHON'] = False
if conf.options.pybind:
print("~~~~~PYTHON#2~~~~~~")
conf.check_python_version((2, 7))
print("~~~~~PYTHON#3~~~~~~")
conf.check_python_headers(features='pyext')
conf.check_python_module('numpy')
conf.check_python_module('dartpy')
conf.check_pybind11(required=True)
conf.env['BUILD_PYTHON'] = True
if not conf.options.build_shared:
conf.env['py_flags'] = ' -fPIC' # we need -fPIC for python if building static
print("~~~~~PYTHON#4~~~~~~")
print("~~~~~PYTHON#5~~~~~~")

# We require Magnum DartIntegration, EigenIntegration, AssimpImporter, and StbTrueTypeFont
if len(conf.env.INCLUDES_MagnumIntegration_Dart) > 0 and len(conf.env.INCLUDES_MagnumIntegration_Eigen) > 0 and len(conf.env.INCLUDES_MagnumPlugins_AssimpImporter) > 0 and len(conf.env.INCLUDES_MagnumPlugins_StbTrueTypeFont) > 0:
Expand Down

0 comments on commit d18984c

Please sign in to comment.