Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,36 +1,62 @@
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
#*********************************************************************/
# Master Native Orchestrator: C++ Core (The Big Three) */
# Version : 1.2 */
# SYSTEM : CaseConversionAPI Infrastructure */
# SUBSYSTEM : Native Processing Engine */
# COMPONENT : orchestrate-native-docker */
# VERSION : 1.3 */
# */
# Purpose : Coordinates Local (macOS) and Dockerized (Linux/Win) */
# builds to generate a unified multi-platform binary */
# set. */
# DESCRIPTION : Coordinates local and containerized native build */
# pipelines to produce a unified cross-platform */
# binary distribution for the C++ conversion engine. */
# */
# Features : */
# * Native macOS build + execution */
# * Linux cross-build orchestration */
# * Windows MinGW-w64 cross-compilation */
# * Dockerized GoogleTest validation */
# * Automated artifact extraction + synchronization */
# Orchestrates native macOS compilation, Linux */
# containerized validation, Windows cross-platform */
# artifact extraction, and consolidated runtime */
# synchronization for downstream consumers. */
# */
# Location : Backend/CaseConversionAPI/CppLib/Scripts/ */
# orchestrate-native-docker.sh */
# FEATURES : */
# * Native macOS build orchestration */
# * Linux containerized compilation */
# * Windows cross-platform artifact generation */
# * Dockerized GoogleTest execution */
# * Automated artifact extraction */
# * Cross-platform binary synchronization */
# * Unified distribution directory generation */
# * Repository-aware path normalization */
# */
# Revision History: */
# ------------------------------------------------------------------ */
# Version Date Author Description */
# SIDE EFFECTS: Creates Docker images and containers on the host. */
# Generates platform-specific shared libraries and */
# modifies build output directories during artifact */
# synchronization and cleanup operations. */
# */
# LOCATION : Backend/CaseConversionAPI/CppLib/Scripts/ */
# orchestrate-native-docker.sh */
# */
# LICENSE : Apache License, Version 2.0 */
# Licensed under the Apache License, Version 2.0. */
# You may obtain a copy of the License at */
# http://www.apache.org/licenses/LICENSE-2.0 */
# */
# AUTHOR : Nitish Singh (nitishhsinghhh) */
# CONTACT : me.singhnitish@yandex.com */
# */
# REVISION HISTORY: */
# ------------------------------------------------------------------ */
# 1.0 2026-05-14 Nitish Singh Initial Master Orchestrator*/
# with Docker extraction. */
# 1.1 2026-05-16 Nitish Singh Added backend root path */
# normalization and improved */
# Docker context handling. */
# 1.2 2026-05-20 Nitish Singh Added containerized */
# GoogleTest execution for */
# Linux runtime validation */
# and automated artifact */
# synchronization pipeline. */
# Ver Date Author Description */
# --- ---------- -------------- -------------------------------- */
# 1.0 2026-05-14 Nitish Singh Initial native orchestration */
# workflow with Docker artifact */
# extraction support. */
# 1.1 2026-05-16 Nitish Singh Added backend root path */
# normalization and improved */
# Docker context handling. */
# 1.2 2026-05-20 Nitish Singh Added containerized GoogleTest */
# execution and automated binary */
# synchronization pipeline. */
# 1.3 2026-05-30 Nitish Singh Infrastructure header */
# normalization and subsystem */
# classification alignment. */
#*********************************************************************/

set -euo pipefail
Expand Down
86 changes: 58 additions & 28 deletions Backend/CaseConversionAPI/CppLib/Scripts/orchestrate-native.sh
Original file line number Diff line number Diff line change
@@ -1,38 +1,68 @@
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
#*********************************************************************/
# Utility Script - C++ Core Orchestration (Monorepo) */
# Version : 1.6 */
# SYSTEM : CaseConversionAPI Infrastructure */
# SUBSYSTEM : Native Processing Engine */
# COMPONENT : orchestrate-native */
# VERSION : 1.7 */
# */
# Purpose : Configures, builds, and executes C++ logic & tests. */
# DESCRIPTION : Configures, builds, validates, and executes the */
# native C++ conversion engine across supported */
# target environments. */
# */
# Features : */
# * Matrix OS orchestration */
# * Dynamic build path synchronization */
# * MinGW Windows cross-compilation */
# * Apple Silicon optimization support */
# * Automated GoogleTest execution */
# * Parallelized multi-core compilation */
# * Pre-build clang-format automation */
# Orchestrates platform-specific build configuration, */
# automated source formatting, parallel compilation, */
# GoogleTest validation, and artifact generation for */
# local and CI/CD execution pipelines. */
# */
# Location : CppLib/Scripts/orchestrate-native.sh */
# FEATURES : */
# * Matrix OS orchestration */
# * Dynamic build path synchronization */
# * MinGW Windows cross-compilation */
# * Microsoft Visual Studio integration */
# * Apple Silicon optimization support */
# * Automated GoogleTest execution */
# * Parallelized multi-core compilation */
# * Pre-build clang-format automation */
# * Dynamic CMake generator selection */
# * Repository-aware workspace validation */
# */
# Revision History: */
# ------------------------------------------------------------------ */
# Version Date Author Description */
# SIDE EFFECTS: Creates and modifies build output directories. */
# Generates platform-specific binaries and test */
# executables within the configured build tree. */
# */
# LOCATION : Backend/CaseConversionAPI/CppLib/Scripts/ */
# orchestrate-native.sh */
# */
# LICENSE : Apache License, Version 2.0 */
# Licensed under the Apache License, Version 2.0. */
# You may obtain a copy of the License at */
# http://www.apache.org/licenses/LICENSE-2.0 */
# */
# AUTHOR : Nitish Singh (nitishhsinghhh) */
# CONTACT : me.singhnitish@yandex.com */
# */
# REVISION HISTORY: */
# ------------------------------------------------------------------ */
# 1.0 2026-04-14 Nitish Singh Initial C++ Run Script */
# 1.1 2026-04-15 Nitish Singh Updated for /backend path */
# 1.2 2026-04-16 Nitish Singh Added Dynamic Path Sync */
# 1.3 2026-05-02 Nitish Singh Added Matrix OS Support */
# 1.4 2026-05-09 Nitish Singh Enhanced M2 P-Core detection*/
# and script versioning. */
# 1.5 2026-05-16 Nitish Singh Standardized logging, */
# execution context validation*/
# and dynamic path handling. */
# 1.6 2026-05-28 Nitish Singh Added automated pre-build */
# clang-format execution with */
# controlled non-fatal */
# formatting fallback logic. */
# Ver Date Author Description */
# --- ---------- -------------- -------------------------------- */
# 1.0 2026-04-14 Nitish Singh Initial C++ orchestration */
# script implementation. */
# 1.1 2026-04-15 Nitish Singh Updated backend path */
# synchronization logic. */
# 1.2 2026-04-16 Nitish Singh Added dynamic workspace */
# context resolution. */
# 1.3 2026-05-02 Nitish Singh Added matrix OS orchestration */
# support. */
# 1.4 2026-05-09 Nitish Singh Enhanced Apple Silicon */
# optimization and versioning. */
# 1.5 2026-05-16 Nitish Singh Standardized logging and */
# execution context validation. */
# 1.6 2026-05-28 Nitish Singh Added automated clang-format */
# integration and fallback logic. */
# 1.7 2026-05-30 Nitish Singh Infrastructure header */
# normalization and subsystem */
# classification alignment. */
#*********************************************************************/

set -euo pipefail
Expand Down
78 changes: 52 additions & 26 deletions Backend/CaseConversionAPI/CppLib/Scripts/run-local-context.sh
Original file line number Diff line number Diff line change
@@ -1,36 +1,62 @@
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
#*********************************************************************/
# Utility Script - Local CLI App Runner (macOS Optimized) */
# Version : 1.4 */
# SYSTEM : CaseConversionAPI Infrastructure */
# SUBSYSTEM : Native Processing Engine */
# COMPONENT : run-local */
# VERSION : 1.5 */
# */
# Purpose : Temporarily swaps CMakeLists to build/run the CLI app */
# without modifying the main project architecture. */
# DESCRIPTION : Builds and executes the standalone native CLI */
# application without altering the primary library */
# architecture or repository workflow. */
# */
# Features : */
# * Dynamic workspace synchronization */
# * Safe CMakeLists backup/restore workflow */
# * Apple Silicon (M-Series) optimization */
# * Automated clang-format integration */
# * Parallelized multi-core compilation */
# * Execution context validation + cleanup */
# Performs temporary build-context substitution, */
# automated source formatting, optimized Apple */
# Silicon compilation, and controlled restoration */
# of the native project configuration. */
# */
# Location : backend/CaseConversionAPI/CppLib/Scripts/run-local.sh */
# FEATURES : */
# * Dynamic workspace synchronization */
# * Safe CMakeLists backup and restore workflow */
# * Apple Silicon (M-Series) optimization */
# * Automated clang-format integration */
# * Parallelized multi-core compilation */
# * Execution context validation */
# * Automated cleanup and restoration */
# * Standalone CLI application execution */
# */
# Revision History: */
# ------------------------------------------------------------------ */
# Version Date Author Description */
# SIDE EFFECTS: Temporarily replaces the active CMakeLists.txt */
# configuration during execution. Generates build */
# artifacts and modifies local build directories. */
# */
# LOCATION : Backend/CaseConversionAPI/CppLib/Scripts/ */
# run-local.sh */
# */
# LICENSE : Apache License, Version 2.0 */
# Licensed under the Apache License, Version 2.0. */
# You may obtain a copy of the License at */
# http://www.apache.org/licenses/LICENSE-2.0 */
# */
# AUTHOR : Nitish Singh (nitishhsinghhh) */
# CONTACT : me.singhnitish@yandex.com */
# */
# REVISION HISTORY: */
# ------------------------------------------------------------------ */
# 1.0 2026-04-16 Nitish Singh Initial Swap Logic Script */
# 1.1 2026-04-16 Nitish Singh Added Absolute Path Trap */
# 1.2 2026-05-09 Nitish Singh Optimized for M2 P-Cores */
# and enhanced error cleanup. */
# 1.3 2026-05-16 Nitish Singh Added execution context */
# validation and dynamic path */
# synchronization. */
# 1.4 2026-05-28 Nitish Singh Added automated clang-format*/
# execution with isolated */
# non-fatal formatter */
# fallback handling. */
# Ver Date Author Description */
# --- ---------- -------------- -------------------------------- */
# 1.0 2026-04-16 Nitish Singh Initial local application */
# runner implementation. */
# 1.1 2026-04-16 Nitish Singh Added absolute path handling */
# and restoration safeguards. */
# 1.2 2026-05-09 Nitish Singh Added Apple Silicon */
# optimizations and cleanup. */
# 1.3 2026-05-16 Nitish Singh Added execution context */
# validation and path sync. */
# 1.4 2026-05-28 Nitish Singh Added automated clang-format */
# execution and fallback logic. */
# 1.5 2026-05-30 Nitish Singh Infrastructure header */
# normalization and subsystem */
# classification alignment. */
#*********************************************************************/

set -euo pipefail
Expand Down
Loading
Loading