Commit 8f7eda69 authored by Tristan Cavelier's avatar Tristan Cavelier

xxx component/v8: +1

parent 9cb9587b
...@@ -20,11 +20,14 @@ script = ...@@ -20,11 +20,14 @@ script =
os.mkdir(location__compile__) os.mkdir(location__compile__)
env = os.environ.copy() env = os.environ.copy()
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(["gclient"], env=env, cwd=location__compile__)
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(["gn", "args", "out.gn/slapos"], env=env, cwd=location__compile__v8)
#call(["ninja", "-C", "out.gn/slapos"], env=env, cwd=location__compile__v8)
call(["git", "apply", v8_patch_location], 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))
shutil.rmtree(os.path.join(location__compile__v8, ".git")) # free some space ~350MB shutil.rmtree(os.path.join(location__compile__v8, ".git")) # free some space ~350MB
shutil.move(location__compile__v8, location) shutil.move(location__compile__v8, location)
......
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