7 def set_env(env, prereq_dir, version):
8 env.add_comment("Here you can define your license parameters for MeshGems")
9 env.add_comment("DISTENE license")
11 if not env.is_defined("LICENSE_FILE"):
12 script = os.path.join(os.path.dirname(os.path.realpath(__file__)), "distene_license.py")
13 assert os.path.exists(script), "distene_license.py not found!"
14 env.run_simple_env_script(script)
16 env.set('MESHGEMSHOME', prereq_dir)
17 env.set('MESHGEMS_ROOT_DIR', prereq_dir) # update for cmake
18 root = env.get('MESHGEMSHOME')
20 if platform.system() == "Windows" :
21 env.prepend('PATH', os.path.join(root, 'bin'))
22 env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib'))
27 env.prepend('PATH', os.path.join(root, 'bin'))
28 env.prepend('PATH', os.path.join(root, 'bin', libdir))
29 env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib', libdir))
33 def set_nativ_env(env):