update gen_build_yaml.py

pull/21527/head
Jan Tattermusch 5 years ago
parent c31501f7e4
commit 9f29d6ae0b
  1. 11
      src/boringssl/gen_build_yaml.py

@ -22,7 +22,8 @@ import yaml
sys.dont_write_bytecode = True
boring_ssl_root = os.path.abspath(
os.path.join(os.path.dirname(sys.argv[0]), '../../third_party/boringssl'))
os.path.join(os.path.dirname(sys.argv[0]),
'../../third_party/boringssl-with-bazel/src'))
sys.path.append(os.path.join(boring_ssl_root, 'util'))
try:
@ -33,15 +34,13 @@ except ImportError:
def map_dir(filename):
if filename[0:4] == 'src/':
return 'third_party/boringssl/' + filename[4:]
else:
return 'src/boringssl/' + filename
return 'third_party/boringssl-with-bazel/' + filename
# TODO(jtattermusch): is this used at all?
def map_testarg(arg):
if '/' in arg:
return 'third_party/boringssl/' + arg
return 'third_party/boringssl-with-bazel/src' + arg
else:
return arg

Loading…
Cancel
Save