17
17
prebuilt_path = os .path .join (root_path , "prebuilt" )
18
18
v8_path = os .path .join (root_path , "v8" )
19
19
out_path = os .path .join (root_path , "out/" )
20
- v8build_path = os .path .join (root_path , "out/ v8build" )
20
+ v8build_path = os .path .join (out_path , "v8build" )
21
21
depot_tools = os .path .join (root_path , "depot_tools" )
22
22
23
23
# To get a list of args
@@ -109,16 +109,16 @@ def Rebuild():
109
109
subprocess .check_call ([ninja_path , "-v" , "-C" , v8build_path , "v8_monolith" ],
110
110
cwd = v8_path ,
111
111
env = env )
112
- lib_fn = os .path .join (root_path , "out/v8build/ obj/libv8_monolith.a" )
112
+ lib_fn = os .path .join (v8build_path , "obj/libv8_monolith.a" )
113
113
return lib_fn
114
114
115
115
def WriteProgramConifgFile (lib_fn ):
116
116
assert os .path .exists (lib_fn )
117
117
if not os .path .isdir (out_path ):
118
118
os .makedirs (out_path )
119
119
120
- pc_fn = os .path .join (root_path , "out/ v8.pc" )
121
- include_dir = os .path .join (root_path , "v8/ include" )
120
+ pc_fn = os .path .join (root_path , "v8.pc" )
121
+ include_dir = os .path .join (v8_path , "include" )
122
122
with open (pc_fn , 'w+' ) as f :
123
123
f .write ("Name: v8\n " )
124
124
f .write ("Description: v8\n " )
@@ -135,7 +135,7 @@ def EnsureDeps(v8_path):
135
135
# gclient needs to have depot_tools in the PATH.
136
136
env ["PATH" ] = depot_tools + os .pathsep + env ["PATH" ]
137
137
subprocess .check_call (["gclient" , "sync" , "--spec" , spec ],
138
- cwd = os . path . join ( v8_path , os . path . pardir ) ,
138
+ cwd = root_path ,
139
139
env = env )
140
140
141
141
if __name__ == "__main__" :
0 commit comments