def add_search_path(env, library): """Add the named dependency to the search path of the given environment. *Note* that this function should not be called. Use the corresponding method from the Environment class instead.""" libs = _config_store.get_library_path(library) include = _config_store.get_include_path(library) python = _config_store.get_python_path(library) env.Prepend(LIBPATH=libs, CPPPATH=include) env.PrependENVPath(oshelper.get_library_search_path_env(), libs) env.PrependENVPath('PYTHONPATH', python)
def add_search_path(cls, library): """Prepends the search paths of the given dependency to the global state. *Note* that this function should only be invoked from the top-level "SConstruct" file. **Also note** that this function should not be called with its own name. A module always knows its own dependencies and the repository only knows the configuration of the installed module anyway.""" cls._path_manager.prepend_global_library_path(_config_store.get_library_path(library)) cls._path_manager.prepend_global_include_path(_config_store.get_include_path(library)) cls._path_manager.prepend_global_python_path(_config_store.get_python_path(library))
def add_search_path(env, library): """Add the named dependency to the search path of the given environment. *Note* that this function should not be called. Use the corresponding method from the Environment class instead.""" libs = _config_store.get_library_path(library) include = _config_store.get_include_path(library) python = _config_store.get_python_path(library) env.Prepend(LIBPATH = libs, CPPPATH = include) env.PrependENVPath(oshelper.get_library_search_path_env(), libs) env.PrependENVPath('PYTHONPATH', python)
def add_search_path(cls, library): """Prepends the search paths of the given dependency to the global state. *Note* that this function should only be invoked from the top-level "SConstruct" file. **Also note** that this function should not be called with its own name. A module always knows its own dependencies and the repository only knows the configuration of the installed module anyway.""" cls._path_manager.prepend_global_library_path( _config_store.get_library_path(library)) cls._path_manager.prepend_global_include_path( _config_store.get_include_path(library)) cls._path_manager.prepend_global_python_path( _config_store.get_python_path(library))