diff options
author | alexv-smirnov <[email protected]> | 2023-03-15 19:59:12 +0300 |
---|---|---|
committer | alexv-smirnov <[email protected]> | 2023-03-15 19:59:12 +0300 |
commit | 056bb284ccf8dd6793ec3a54ffa36c4fb2b9ad11 (patch) | |
tree | 4740980126f32e3af7937ba0ca5f83e59baa4ab0 /build/plugins/build_mn_files.py | |
parent | 269126dcced1cc8b53eb4398b4a33e5142f10290 (diff) |
add library/cpp/actors, ymake build to ydb oss export
Diffstat (limited to 'build/plugins/build_mn_files.py')
-rw-r--r-- | build/plugins/build_mn_files.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/build/plugins/build_mn_files.py b/build/plugins/build_mn_files.py new file mode 100644 index 00000000000..4da76f18528 --- /dev/null +++ b/build/plugins/build_mn_files.py @@ -0,0 +1,29 @@ +from os.path import basename, splitext + + +def on_build_mns_files(unit, *args): + files = [] + name = '' + ranking_suffix = '' + check = '' + index = 0 + fml_unused_tool = '' + while index < len(args): + if args[index] == 'NAME': + index += 1 + name = args[index] + elif args[index] == 'RANKING_SUFFIX': + index += 1 + ranking_suffix = args[index] + elif args[index] == 'CHECK': + check = 'CHECK' + fml_unused_tool = unit.get('FML_UNUSED_TOOL') or '$FML_UNUSED_TOOL' + else: + files.append(args[index]) + index += 1 + + for filename in files: + file_basename, _ = splitext(basename(filename)) + asmdataname = "staticMn{0}{1}Ptr".format(ranking_suffix, file_basename) + output_name = 'mn.staticMn{0}{1}Ptr.cpp'.format(ranking_suffix, file_basename) + unit.on_build_mns_file([filename, name, output_name, ranking_suffix, check, fml_unused_tool, asmdataname]) |