Skip to content

Commit

Permalink
Migrate to Official Undocked Build System (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
nibanks committed Mar 27, 2024
1 parent b4fbf84 commit 3a90157
Show file tree
Hide file tree
Showing 16 changed files with 5,559 additions and 5,456 deletions.
11 changes: 11 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Standardize line endings for all text files.
* text eol=auto

# Ensure text files stay text
*.inx text
*.xml text

# Ensure binary files stay binary
*.pgd binary
*.png binary
*.jpg binary
File renamed without changes.
File renamed without changes.
50 changes: 25 additions & 25 deletions SUPPORT.md → .github/SUPPORT.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# TODO: The maintainer of this repo has not yet edited this file

**REPO OWNER**: Do you want Customer Service & Support (CSS) support for this product/project?

- **No CSS support:** Fill out this template with information about how to file issues and get help.
- **Yes CSS support:** Fill out an intake form at [aka.ms/spot](https://aka.ms/spot). CSS will work with/help you to determine next steps. More details also available at [aka.ms/onboardsupport](https://aka.ms/onboardsupport).
- **Not sure?** Fill out a SPOT intake as though the answer were "Yes". CSS will help you decide.

*Then remove this first heading from this SUPPORT.MD file before publishing your repo.*

# Support

## How to file issues and get help

This project uses GitHub Issues to track bugs and feature requests. Please search the existing
issues before filing new issues to avoid duplicates. For new issues, file your bug or
feature request as a new Issue.

For help and questions about using this project, please **REPO MAINTAINER: INSERT INSTRUCTIONS HERE
FOR HOW TO ENGAGE REPO OWNERS OR COMMUNITY FOR HELP. COULD BE A STACK OVERFLOW TAG OR OTHER
CHANNEL. WHERE WILL YOU HELP PEOPLE?**.

## Microsoft Support Policy

Support for this **PROJECT or PRODUCT** is limited to the resources listed above.
# TODO: The maintainer of this repo has not yet edited this file

**REPO OWNER**: Do you want Customer Service & Support (CSS) support for this product/project?

- **No CSS support:** Fill out this template with information about how to file issues and get help.
- **Yes CSS support:** Fill out an intake form at [aka.ms/spot](https://aka.ms/spot). CSS will work with/help you to determine next steps. More details also available at [aka.ms/onboardsupport](https://aka.ms/onboardsupport).
- **Not sure?** Fill out a SPOT intake as though the answer were "Yes". CSS will help you decide.

*Then remove this first heading from this SUPPORT.MD file before publishing your repo.*

# Support

## How to file issues and get help

This project uses GitHub Issues to track bugs and feature requests. Please search the existing
issues before filing new issues to avoid duplicates. For new issues, file your bug or
feature request as a new Issue.

For help and questions about using this project, please **REPO MAINTAINER: INSERT INSTRUCTIONS HERE
FOR HOW TO ENGAGE REPO OWNERS OR COMMUNITY FOR HELP. COULD BE A STACK OVERFLOW TAG OR OTHER
CHANNEL. WHERE WILL YOU HELP PEOPLE?**.

## Microsoft Support Policy

Support for this **PROJECT or PRODUCT** is limited to the resources listed above.
25 changes: 14 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,25 @@ permissions: read-all

jobs:
build:
permissions:
contents: read
name: Build
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
platform: [x64, ARM64]
steps:
- name: Checkout repository
uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
submodules: recursive
- name: Setup MSBuild
uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce
- name: Nuget Restore
run: nuget.exe restore ntttcp.sln
- name: Build
run: |
cd src && mkdir build && cd build
cmake ..
cmake --build . --config Release
run: msbuild ntttcp.sln /p:Configuration=Release /p:Platform=${{ matrix.platform }}
- name: Upload
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8
with:
name: bin
path: |
src/build/Release/*.pdb
src/build/Release/*.exe
name: bin-${{ matrix.platform }}
path: build/bin
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "undocked"]
path = undocked
url = https://github.com/microsoft/undocked.git
19 changes: 5 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,14 @@ See [Releases](https://github.com/microsoft/ntttcp/releases) section for binarie

## Building

In a command prompt in the `src` directory run the following:

> **Note** - Cmake 3.15 at minimum is required.
```
mkdir build
cd build
cmake ..
cmake --build . --config Release
```

The binary will be at `build/Release/ntttcp.exe`
1. Clone the repository with submodules.
1. Open the solution file `ntttcp.sln` in Visual Studio and build.
1. The binary will be at `build/bin/amd64fre/ntttcp.exe`

## Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
trademarks or logos is subject to and must follow
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
trademarks or logos is subject to and must follow
[Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Any use of third-party trademarks or logos are subject to those third-party's policies.
31 changes: 31 additions & 0 deletions ntttcp.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.9.34607.119
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ntttcp", "src\ntttcp.vcxproj", "{fd254344-82b5-40c1-b1da-0ce24ca5ddd4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM64 = Debug|ARM64
Debug|x64 = Debug|x64
Release|ARM64 = Release|ARM64
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{fd254344-82b5-40c1-b1da-0ce24ca5ddd4}.Debug|x64.ActiveCfg = Debug|x64
{fd254344-82b5-40c1-b1da-0ce24ca5ddd4}.Debug|x64.Build.0 = Debug|x64
{fd254344-82b5-40c1-b1da-0ce24ca5ddd4}.Debug|ARM64.ActiveCfg = Debug|ARM64
{fd254344-82b5-40c1-b1da-0ce24ca5ddd4}.Debug|ARM64.Build.0 = Debug|ARM64
{fd254344-82b5-40c1-b1da-0ce24ca5ddd4}.Release|x64.ActiveCfg = Release|x64
{fd254344-82b5-40c1-b1da-0ce24ca5ddd4}.Release|x64.Build.0 = Release|x64
{fd254344-82b5-40c1-b1da-0ce24ca5ddd4}.Release|ARM64.ActiveCfg = Release|ARM64
{fd254344-82b5-40c1-b1da-0ce24ca5ddd4}.Release|ARM64.Build.0 = Release|ARM64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {E1D24617-0ACE-4E42-8758-21F1BA8B001E}
EndGlobalSection
EndGlobal
34 changes: 0 additions & 34 deletions src/CMakeLists.txt

This file was deleted.

Loading

0 comments on commit 3a90157

Please sign in to comment.