|
44 | 44 |
|
45 | 45 | def gen_lib_path(scheme): |
46 | 46 | out_lib = OUT_LIB % {'scheme': scheme} |
47 | | - return os.path.join(r'out', out_lib) |
| 47 | + return os.path.join(HOME_PATH + r'/out', out_lib) |
48 | 48 |
|
49 | 49 | def gngen(arch, ssl_root, msdk_root, quic_root, scheme, tests, use_gcc, fake_audio): |
50 | 50 | gn_args = list(GN_ARGS) |
@@ -101,7 +101,9 @@ def gngen(arch, ssl_root, msdk_root, quic_root, scheme, tests, use_gcc, fake_aud |
101 | 101 | return False |
102 | 102 |
|
103 | 103 | def getoutputpath(arch, scheme): |
104 | | - return 'out/%s-%s' % (scheme, arch) |
| 104 | + bin_path = 'out/%s-%s' % (scheme, arch) |
| 105 | + obj_path = os.path.join(HOME_PATH, bin_path) |
| 106 | + return obj_path |
105 | 107 |
|
106 | 108 |
|
107 | 109 | def ninjabuild(arch, scheme): |
@@ -138,11 +140,11 @@ def pack_sdk(arch, scheme, output_path): |
138 | 140 | src_lib_path = gen_lib_path(scheme) |
139 | 141 | src_include_path = os.path.join(HOME_PATH, r'talk/owt/sdk/include/cpp') |
140 | 142 | src_doc_path = os.path.join(HOME_PATH, r'talk/owt/docs/cpp/html') |
141 | | - dst_lib_path = os.path.join(output_path, 'libs') |
142 | | - dst_include_path = os.path.join(output_path, 'include') |
143 | | - dst_doc_path = os.path.join(output_path, 'docs') |
| 143 | + dst_lib_path = os.path.join(os.path.abspath(output_path), 'libs') |
| 144 | + dst_include_path = os.path.join(os.path.abspath(output_path), 'include') |
| 145 | + dst_doc_path = os.path.join(os.path.abspath(output_path), 'docs') |
144 | 146 | if not os.path.exists(dst_lib_path): |
145 | | - os.mkdir(dst_lib_path) |
| 147 | + os.makedirs(dst_lib_path) |
146 | 148 | if os.path.exists(dst_include_path): |
147 | 149 | shutil.rmtree(dst_include_path) |
148 | 150 | shutil.copy(src_lib_path, dst_lib_path) |
|
0 commit comments