### Run the build container Source: https://github.com/y-less/sscanf/blob/master/docker/build_ubuntu-18.04/README.md Executes the build process by mounting the source directory into the container. Use the -e flag to specify build configurations like Debug or RelWithDebInfo. ```bash docker run --rm -ti -v /path/to/omp/sources:/omp -w /omp open.mp/build:ubuntu-18.04 ``` -------------------------------- ### Project Initialization and Include Directories Source: https://github.com/y-less/sscanf/blob/master/CMakeLists.txt Sets the minimum CMake version, project metadata, and required include paths for dependencies. ```cmake cmake_minimum_required(VERSION 3.19) project(sscanf LANGUAGES C CXX VERSION 2.15.1) set(CMAKE_CXX_STANDARD 17) include_directories( robin-hood-hashing/src/include string-view-lite/include open.mp/include span-lite/include glm amx . ) ``` -------------------------------- ### Build the Docker image Source: https://github.com/y-less/sscanf/blob/master/docker/build_ubuntu-20.04/README.md Builds the Docker image tagged as open.mp/build:ubuntu-20.04 from the current directory. ```bash docker build -t open.mp/build:ubuntu-20.04 . ``` -------------------------------- ### Build the Docker image Source: https://github.com/y-less/sscanf/blob/master/docker/build_ubuntu-18.04/README.md Creates the Docker image tagged as open.mp/build:ubuntu-18.04 from the current directory. ```bash docker build -t open.mp/build:ubuntu-18.04 . ``` -------------------------------- ### Build the Docker image Source: https://github.com/y-less/sscanf/blob/master/docker/build_ubuntu-22.04/README.md Builds the Docker image tagged as open.mp/build:ubuntu-22.04 from the current directory. ```bash docker build -t open.mp/build:ubuntu-22.04 . ``` -------------------------------- ### Run the build container Source: https://github.com/y-less/sscanf/blob/master/docker/build_ubuntu-22.04/README.md Runs the container with the source directory mounted to /omp and sets the working directory to /omp. ```bash docker run --rm -ti -v /path/to/omp/sources:/omp -w /omp open.mp/build:ubuntu-22.04 ``` -------------------------------- ### IDE Startup Project Configuration Source: https://github.com/y-less/sscanf/blob/master/CMakeLists.txt Sets the startup project property for Visual Studio generators. ```cmake set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT sscanf) ``` -------------------------------- ### Platform-Specific Build Configuration Source: https://github.com/y-less/sscanf/blob/master/CMakeLists.txt Configures library compilation settings and source files separately for MSVC and UNIX environments. ```cmake if(MSVC) add_definitions( -DWIN32 -D_CRT_SECURE_NO_DEPRECATE=1 -DWIN32_LEAN_AND_MEAN=1 -DSUBHOOK_STATIC ) add_library(${PROJECT_NAME} SHARED amx/amx.c amx/amxplugin.c sscanf.def subhook/subhook.c array.cpp data.cpp enum.cpp kustom.cpp specifiers.cpp sscanf.cpp utils.cpp error.cpp ) elseif(UNIX) add_definitions( -DLINUX=1 ) set(CMAKE_C_FLAGS "-m32 -fPIC -O2 -w") set(CMAKE_CXX_FLAGS "-m32 -fPIC -O2 -w") add_library(${PROJECT_NAME} SHARED amx/amx.c amx/amxplugin.c amx/getch.c subhook/subhook.c array.cpp data.cpp enum.cpp kustom.cpp specifiers.cpp sscanf.cpp utils.cpp ) endif() ``` -------------------------------- ### Configure build type Source: https://github.com/y-less/sscanf/blob/master/docker/build_ubuntu-22.04/README.md Use the CONFIG environment variable to specify the build type, such as Debug or RelWithDebInfo. ```bash -e CONFIG=Debug ``` ```bash -e CONFIG=RelWithDebInfo ``` -------------------------------- ### Global Compiler Definitions Source: https://github.com/y-less/sscanf/blob/master/CMakeLists.txt Defines preprocessor macros required for the project build across all platforms. ```cmake add_definitions( -DPROJECT_NAME="sscanf" -DHAVE_STDINT_H=1 -DGLM_FORCE_SSE2=1 -DGLM_FORCE_QUAT_DATA_WXYZ=1 -DNOMINMAX=1 -Dnssv_CONFIG_SELECT_STRING_VIEW=nssv_STRING_VIEW_NONSTD -Dspan_CONFIG_SELECT_SPAN=span_SPAN_NONSTD -DPAWN_CELL_SIZE=32 ) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.