aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-07-25 18:31:59 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-07-25 18:40:56 +0300
commited241e54f17dc3333638d54e3086b8927d156388 (patch)
treea27e63ffdeeaa45aa93e029c0374e6beba377b72
parenta61f11c9cd8c33632b8283644b6b5860f3c66e82 (diff)
downloadydb-ed241e54f17dc3333638d54e3086b8927d156388.tar.gz
Intermediate changes
-rw-r--r--build/internal/platform/clang_toolchain_info/ya.make6
-rw-r--r--build/internal/platform/macos_sdk/ya.make19
-rw-r--r--build/internal/platform/msvc/ya.make17
-rw-r--r--build/internal/scripts/gen_sbom.py45
-rw-r--r--build/internal/scripts/link_sbom.py35
5 files changed, 0 insertions, 122 deletions
diff --git a/build/internal/platform/clang_toolchain_info/ya.make b/build/internal/platform/clang_toolchain_info/ya.make
deleted file mode 100644
index 2ad46b1127..0000000000
--- a/build/internal/platform/clang_toolchain_info/ya.make
+++ /dev/null
@@ -1,6 +0,0 @@
-RESOURCES_LIBRARY()
-
-TOOLCHAIN(clang)
-VERSION(${CLANG_VER})
-
-END()
diff --git a/build/internal/platform/macos_sdk/ya.make b/build/internal/platform/macos_sdk/ya.make
deleted file mode 100644
index f80ecb6677..0000000000
--- a/build/internal/platform/macos_sdk/ya.make
+++ /dev/null
@@ -1,19 +0,0 @@
-RESOURCES_LIBRARY()
-
-# macOS 14.2 Sonoma SDK / Xcode 15.1 (15C65)
-DECLARE_EXTERNAL_RESOURCE(MACOS_SDK sbr:6121515192)
-
-IF (USE_STL_SYSTEM)
- SET(__XCODE_RESOURCE_NAME CPP_XCODE_TOOLCHAIN_ROOT)
- SET(__XCODE_TOOLCHAIN_VERSION ${CPP_XCODE_TOOLCHAIN_VERSION})
- INCLUDE(${ARCADIA_ROOT}/build/platform/xcode/ya.make.inc)
- CFLAGS(
- GLOBAL -isystem$MACOS_SDK_RESOURCE_GLOBAL/usr/include/c++/v1
- GLOBAL -F$MACOS_SDK_RESOURCE_GLOBAL/System/Library/Frameworks
- )
- LDFLAGS(
- -F$MACOS_SDK_RESOURCE_GLOBAL/System/Library/Frameworks
- )
-ENDIF()
-
-END()
diff --git a/build/internal/platform/msvc/ya.make b/build/internal/platform/msvc/ya.make
deleted file mode 100644
index 7472be4a00..0000000000
--- a/build/internal/platform/msvc/ya.make
+++ /dev/null
@@ -1,17 +0,0 @@
-RESOURCES_LIBRARY()
-
-IF (WINDOWS_KITS_VERSION == "10.0.10586.0")
- DECLARE_EXTERNAL_RESOURCE(WINDOWS_KITS sbr:544779014)
-ELSEIF (WINDOWS_KITS_VERSION == "10.0.16299.0")
- DECLARE_EXTERNAL_RESOURCE(WINDOWS_KITS sbr:1379398385)
-ELSEIF (WINDOWS_KITS_VERSION == "10.0.18362.0")
- DECLARE_EXTERNAL_RESOURCE(WINDOWS_KITS sbr:1939557911)
-ELSE()
- MESSAGE(FATAL_ERROR "We have no Windows Kits version ${WINDOWS_KITS_VERSION}")
-ENDIF()
-
-IF (CLANG_CL)
- DECLARE_EXTERNAL_RESOURCE(MSVC_FOR_CLANG sbr:1383387533) # Microsoft Visual C++ 2017 14.16.27023 (15.9.5)
-ENDIF()
-
-END()
diff --git a/build/internal/scripts/gen_sbom.py b/build/internal/scripts/gen_sbom.py
deleted file mode 100644
index a44a32a627..0000000000
--- a/build/internal/scripts/gen_sbom.py
+++ /dev/null
@@ -1,45 +0,0 @@
-import argparse
-import json
-import os
-
-
-def deduce_name(path):
- name = os.path.basename(path)
- for prefix in ['contrib/libs/', 'contrib/python/py2/', 'contrib/python/py3/', 'contrib/python/']:
- if path.startswith(prefix):
- name = path[len(prefix):].replace('/', '-')
- break
- return name
-
-
-def main():
- parser = argparse.ArgumentParser(description='Generate single SBOM component JSON object for current third-party library')
- parser.add_argument('-o', '--output', type=argparse.FileType('w', encoding='UTF-8'), help='resulting SBOM component file', required=True)
- parser.add_argument('--type', choices=['library', 'toolchain'], required=True)
- parser.add_argument('--path', type=str, help='Path to module in arcadia', required=True)
- parser.add_argument('--ver', type=str, help='Version of the contrib module', required=True)
- parser.add_argument('--lang', type=str, help='Language of the library')
- parser.add_argument('--toolchain-name', type=str, help='Public name of the toolchain')
-
- args = parser.parse_args()
-
- res = {}
- res['version'] = args.ver
- res["properties"] = [
- {'name': 'arcadia_module_subdir', 'value': args.path},
- ]
- if args.type == 'library':
- res['name'] = deduce_name(args.path)
- res['type'] = 'library'
- res["properties"].append({'name': 'language', 'value': args.lang})
- elif args.type == 'toolchain':
- res['name'] = args.toolchain_name
- res['type'] = 'application'
- res["tags"] = ['toolchain']
-
- json.dump(res, args.output)
- args.output.close()
-
-
-if __name__ == '__main__':
- main()
diff --git a/build/internal/scripts/link_sbom.py b/build/internal/scripts/link_sbom.py
deleted file mode 100644
index 91769177d5..0000000000
--- a/build/internal/scripts/link_sbom.py
+++ /dev/null
@@ -1,35 +0,0 @@
-import argparse
-import json
-import os
-
-
-def main():
- parser = argparse.ArgumentParser(description='Generate SBOM data from used contribs info')
- parser.add_argument('-o', '--output', type=argparse.FileType('w', encoding='UTF-8'), help='resulting SBOM file', required=True)
- parser.add_argument('--vcs-info', type=argparse.FileType('r', encoding='UTF-8'), help='VCS information file', required=True)
- parser.add_argument('--mod-path', type=str, help='Path to module in arcadia', required=True)
- parser.add_argument('components', metavar='N', type=argparse.FileType('r', encoding='UTF-8'), nargs='*', help='dependencies info in SBOM component JSON format')
-
- args = parser.parse_args()
-
- vcs = json.load(args.vcs_info)
-
- res = {}
- res['$schema'] = "http://cyclonedx.org/schema/bom-1.6.schema.json"
- res["bomFormat"] = "CycloneDX"
- res["specVersion"] = "1.6"
- res["version"] = 1
- res["components"] = [json.load(dep) for dep in args.components]
- res["properties"] = [
- {'name': 'commit_hash', 'value': vcs['ARCADIA_SOURCE_HG_HASH']},
- {'name': 'arcadia_module_subdir', 'value': args.mod_path}
- ]
- if vcs.get('DIRTY', '') == 'dirty':
- res["properties"].append({'name': 'has_uncommitted_changes', 'value': True})
-
- json.dump(res, args.output)
- args.output.close()
-
-
-if __name__ == '__main__':
- main()