mirror of
https://github.com/servo/servo.git
synced 2025-07-18 04:43:41 +01:00
Update surfman to 0.2 and remove glutin
This commit is contained in:
parent
9dbc6554f0
commit
8bb1732258
94 changed files with 2265 additions and 1513 deletions
|
@ -223,34 +223,6 @@ def append_to_path_env(string, env, name):
|
|||
env[name] = variable
|
||||
|
||||
|
||||
def set_osmesa_env(bin_path, env, show_vars):
|
||||
"""Set proper LD_LIBRARY_PATH and DRIVE for software rendering on Linux and OSX"""
|
||||
if is_linux():
|
||||
dep_path = find_dep_path_newest('osmesa-src', bin_path)
|
||||
if not dep_path:
|
||||
return None
|
||||
osmesa_path = path.join(dep_path, "out", "lib", "gallium")
|
||||
append_to_path_env(osmesa_path, env, "LD_LIBRARY_PATH")
|
||||
env["GALLIUM_DRIVER"] = "softpipe"
|
||||
if show_vars:
|
||||
print("GALLIUM_DRIVER=" + env["GALLIUM_DRIVER"])
|
||||
print("LD_LIBRARY_PATH=" + env["LD_LIBRARY_PATH"])
|
||||
elif is_macosx():
|
||||
osmesa_dep_path = find_dep_path_newest('osmesa-src', bin_path)
|
||||
if not osmesa_dep_path:
|
||||
return None
|
||||
osmesa_path = path.join(osmesa_dep_path,
|
||||
"out", "src", "gallium", "targets", "osmesa", ".libs")
|
||||
glapi_path = path.join(osmesa_dep_path,
|
||||
"out", "src", "mapi", "shared-glapi", ".libs")
|
||||
append_to_path_env(osmesa_path + ":" + glapi_path, env, "DYLD_LIBRARY_PATH")
|
||||
env["GALLIUM_DRIVER"] = "softpipe"
|
||||
if show_vars:
|
||||
print("GALLIUM_DRIVER=" + env["GALLIUM_DRIVER"])
|
||||
print("DYLD_LIBRARY_PATH=" + env["DYLD_LIBRARY_PATH"])
|
||||
return env
|
||||
|
||||
|
||||
def gstreamer_root(target, env, topdir=None):
|
||||
if is_windows():
|
||||
arch = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue