|
|
@ -18,11 +18,19 @@ import os |
|
|
|
import sys |
|
|
|
import sys |
|
|
|
import yaml |
|
|
|
import yaml |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
run_dir = os.path.dirname(sys.argv[0]) |
|
|
|
sources_path = os.path.abspath( |
|
|
|
sources_path = os.path.abspath( |
|
|
|
os.path.join(os.path.dirname(sys.argv[0]), |
|
|
|
os.path.join(run_dir, |
|
|
|
'../../third_party/boringssl-with-bazel/sources.json')) |
|
|
|
'../../third_party/boringssl-with-bazel/sources.json')) |
|
|
|
with open(sources_path, 'r') as s: |
|
|
|
try: |
|
|
|
sources = json.load(s) |
|
|
|
with open(sources_path, 'r') as s: |
|
|
|
|
|
|
|
sources = json.load(s) |
|
|
|
|
|
|
|
except IOError: |
|
|
|
|
|
|
|
sources_path = os.path.abspath( |
|
|
|
|
|
|
|
os.path.join(run_dir, |
|
|
|
|
|
|
|
'../../../../third_party/openssl/boringssl/sources.json')) |
|
|
|
|
|
|
|
with open(sources_path, 'r') as s: |
|
|
|
|
|
|
|
sources = json.load(s) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def map_dir(filename): |
|
|
|
def map_dir(filename): |
|
|
|