File tree Expand file tree Collapse file tree 3 files changed +41
-0
lines changed Expand file tree Collapse file tree 3 files changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ tests /*
Original file line number Diff line number Diff line change
1
+ # escape=`
2
+ FROM mcr.microsoft.com/windows/nanoserver:ltsc2022
3
+
4
+ ARG CMAKE_WINDOWS_KITS_10_DIR="C:\m ount\w indowssdk"
5
+ ARG WINDOWS_SDK_VERSION="10.0.22621.0"
6
+ ARG MSVC_TOOLSET_DIR="C:\m ount\m svc"
7
+ ARG CMAKE_VERSION="3.30.0"
8
+ ARG NINJA_VERSION="1.12.1"
9
+ ARG NASM_VERSION="2.16.03"
10
+
11
+ ENV CMAKE_WINDOWS_KITS_10_DIR=${CMAKE_WINDOWS_KITS_10_DIR}
12
+ ENV WINDOWS_SDK_VERSION=${WINDOWS_SDK_VERSION}
13
+ ENV MSVC_TOOLSET_DIR=${MSVC_TOOLSET_DIR}
14
+ ENV CMAKE_VERSION=${CMAKE_VERSION}
15
+ ENV NINJA_VERSION=${NINJA_VERSION}
16
+ ENV NASM_VERSION=${NASM_VERSION}
17
+
18
+ RUN `
19
+ curl -SL --output cmake.zip https://github.com/Kitware/CMake/releases/download/v%CMAKE_VERSION%/cmake-%CMAKE_VERSION%-windows-x86_64.zip `
20
+ && mkdir "C:\C Make" `
21
+ && tar -xf cmake.zip -C "C:\C Make" `
22
+ && del /q cmake.zip
23
+
24
+ RUN `
25
+ curl -SL --output nasm.zip https://www.nasm.us/pub/nasm/releasebuilds/%NASM_VERSION%/win64/nasm-%NASM_VERSION%-win64.zip `
26
+ && mkdir "nasm" `
27
+ && tar -xf nasm.zip -C "nasm" `
28
+ && del /q nasm.zip
29
+
30
+ RUN `
31
+ curl -SL --output ninja.zip https://github.com/ninja-build/ninja/releases/download/v%NINJA_VERSION%/ninja-win.zip `
32
+ && mkdir "C:\n inja" `
33
+ && tar -xf ninja.zip -C "C:\n inja" `
34
+ && del /q ninja.zip
35
+
36
+ RUN setx PATH "C:\n inja;C:\C Make\c make-%CMAKE_VERSION%-windows-x86_64\b in;C:\n asm\n asm-%NASM_VERSION%;%MSVC_TOOLSET_DIR%\b in\H ostx64\x 64;%PATH%"
37
+
Original file line number Diff line number Diff line change 1
1
add_library (NanoSLib STATIC nanomsvc.cpp )
2
2
add_library (NanoDLib SHARED nanomsvc.cpp )
3
3
4
+ set_target_properties (NanoSLib PROPERTIES MSVC_RUNTIME_LIBRARY MultiThreaded$<$<CONFIG:Debug>:Debug> )
5
+ set_target_properties (NanoDLib PROPERTIES MSVC_RUNTIME_LIBRARY MultiThreaded$<$<CONFIG:Debug>:Debug>DLL )
6
+
4
7
target_compile_definitions (NanoSLib PRIVATE NANO_BUILDING_LIB )
5
8
target_compile_definitions (NanoDLib PRIVATE NANO_BUILDING_LIB )
6
9
target_compile_definitions (NanoDLib PUBLIC NANO_SHARED_BUILD )
You can’t perform that action at this time.
0 commit comments