Commit ee834b39 authored by Tristan Cavelier's avatar Tristan Cavelier

xxx component/v8: v8_patch_location

parent 8cc18b8d
...@@ -11,6 +11,7 @@ script = ...@@ -11,6 +11,7 @@ script =
location = %(location)r location = %(location)r
location__compile__ = location + "__compile__" location__compile__ = location + "__compile__"
location__compile__v8 = os.path.join(location__compile__, "v8") location__compile__v8 = os.path.join(location__compile__, "v8")
v8_patch_location = os.path.join("${:_profile_base_location_}", "v8.patch")
self.failIfPathExists(location) self.failIfPathExists(location)
import shutil import shutil
if os.path.exists(location__compile__): shutil.rmtree(location__compile__) if os.path.exists(location__compile__): shutil.rmtree(location__compile__)
...@@ -19,7 +20,7 @@ script = ...@@ -19,7 +20,7 @@ script =
env["PATH"] = "${depot_tools:location}:${git:location}/bin" + (":" + env["PATH"] if env.get("PATH") else "") env["PATH"] = "${depot_tools:location}:${git:location}/bin" + (":" + env["PATH"] if env.get("PATH") else "")
call(["fetch", "v8"], env=env, cwd=location__compile__) call(["fetch", "v8"], env=env, cwd=location__compile__)
call(["gclient", "sync", "-r", "4.10.253"], env=env, cwd=location__compile__) call(["gclient", "sync", "-r", "4.10.253"], env=env, cwd=location__compile__)
call(["git", "apply", "${:_profile_base_location_}/v8.patch"], env=env, cwd=location__compile__v8) call(["git", "apply", v8_patch_location], env=env, cwd=location__compile__v8)
env = os.environ.copy() env = os.environ.copy()
env["CXXFLAGS"] = env["CFLAGS"] = "-fPIC" env["CXXFLAGS"] = env["CFLAGS"] = "-fPIC"
call(["make", "native", "GYPFLAGS=-Dclang=0"], env=env, cwd=os.path.join(location__compile__v8)) call(["make", "native", "GYPFLAGS=-Dclang=0"], env=env, cwd=os.path.join(location__compile__v8))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment