From 9085f7a510af90fcaaa656553bf07535560fa004 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 21 Nov 2022 14:29:59 +0100 Subject: [PATCH] windows ports: update readme for cmake build --- port/windows-h4-da14585/README.md | 11 ++++++++--- port/windows-h4-zephyr/README.md | 11 ++++++++--- port/windows-h4/README.md | 9 +++++++-- port/windows-winusb-intel/README.md | 15 +++++++++++---- port/windows-winusb/README.md | 11 ++++++++--- 5 files changed, 42 insertions(+), 15 deletions(-) diff --git a/port/windows-h4-da14585/README.md b/port/windows-h4-da14585/README.md index 26a0be45b..32168a381 100644 --- a/port/windows-h4-da14585/README.md +++ b/port/windows-h4-da14585/README.md @@ -26,16 +26,21 @@ We've used the Msys2 package available from the [downloads page](https://www.min In the MSYS2 shell, you can install everything with pacman: $ pacman -S git + $ pacman -S cmake $ pacman -S make $ pacman -S mingw-w64-x86_64-toolchain + $ pacman -S mingw-w64-x86_64-portaudio $ pacman -S python $ pacman -S winpty -### Compilation +### Compilation with CMake -With mingw64-w64 installed, just go to the port/windows-h4-da14585 directory and run make +With mingw64-w64 installed, just go to the port/windows-h4 directory and use CMake as usual - $ cd port/windows-h4-da14585 + $ cd port/windows-h4 + $ mkdir build + $ cd build + $ cmake .. $ make Note: When compiling with msys2-32 bit and/or the 32-bit toolchain, compilation fails diff --git a/port/windows-h4-zephyr/README.md b/port/windows-h4-zephyr/README.md index 190d3cd52..6551cf9d8 100644 --- a/port/windows-h4-zephyr/README.md +++ b/port/windows-h4-zephyr/README.md @@ -42,16 +42,21 @@ mingw64-w64 is based on [MinGW](https://en.wikipedia.org/wiki/MinGW), which '... In the MSYS2 shell, you can install everything with pacman: $ pacman -S git + $ pacman -S cmake $ pacman -S make $ pacman -S mingw-w64-x86_64-toolchain + $ pacman -S mingw-w64-x86_64-portaudio $ pacman -S python $ pacman -S winpty -## Compile Examples +### Compilation with CMake -With mingw64-w64 installed, just go to the port/windows-h4-zephyr directory and run make +With mingw64-w64 installed, just go to the port/windows-h4 directory and use CMake as usual - $ cd btstack/port/windows-h4-zephyr + $ cd port/windows-h4 + $ mkdir build + $ cd build + $ cmake .. $ make Note: When compiling with msys2-32 bit and/or the 32-bit toolchain, compilation fails diff --git a/port/windows-h4/README.md b/port/windows-h4/README.md index 19f35db77..37229a778 100644 --- a/port/windows-h4/README.md +++ b/port/windows-h4/README.md @@ -20,16 +20,21 @@ We've used the Msys2 package available from the [downloads page](https://www.min In the MSYS2 shell, you can install everything with pacman: $ pacman -S git + $ pacman -S cmake $ pacman -S make $ pacman -S mingw-w64-x86_64-toolchain + $ pacman -S mingw-w64-x86_64-portaudio $ pacman -S python $ pacman -S winpty -### Compilation +### Compilation with CMake -With mingw64-w64 installed, just go to the port/windows-h4 directory and run make +With mingw64-w64 installed, just go to the port/windows-h4 directory and use CMake as usual $ cd port/windows-h4 + $ mkdir build + $ cd build + $ cmake .. $ make Note: When compiling with msys2-32 bit and/or the 32-bit toolchain, compilation fails diff --git a/port/windows-winusb-intel/README.md b/port/windows-winusb-intel/README.md index dbea304a9..65a1c85ba 100644 --- a/port/windows-winusb-intel/README.md +++ b/port/windows-winusb-intel/README.md @@ -28,17 +28,24 @@ Visual Studio can directly open the provided `port/windows-windows-h4-zephyr/CMa It can also be compiles with a regular Unix-style toolchain like [mingw-w64](https://www.mingw-w64.org). mingw64-w64 is based on [MinGW](https://en.wikipedia.org/wiki/MinGW), which '...provides a complete Open Source programming tool set which is suitable for the development of native MS-Windows applications, and which do not depend on any 3rd-party C-Runtime DLLs.' -In the MSYS2 shell, you can install git, python, and, winpty with pacman: +In the MSYS2 shell, you can install everything with pacman: $ pacman -S git + $ pacman -S cmake + $ pacman -S make + $ pacman -S mingw-w64-x86_64-toolchain + $ pacman -S mingw-w64-x86_64-portaudio $ pacman -S python $ pacman -S winpty -## Compilation +### Compilation with CMake -With mingw64-w64 installed, just go to the port/windows-winusb-intel directory and run make +With mingw64-w64 installed, just go to the port/windows-h4 directory and use CMake as usual - $ cd btstack/port/windows-winusb + $ cd port/windows-h4 + $ mkdir build + $ cd build + $ cmake .. $ make Note: When compiling with msys2-32 bit and/or the 32-bit toolchain, compilation fails diff --git a/port/windows-winusb/README.md b/port/windows-winusb/README.md index 61196cb25..a04f59dd7 100644 --- a/port/windows-winusb/README.md +++ b/port/windows-winusb/README.md @@ -29,16 +29,21 @@ mingw64-w64 is based on [MinGW](https://en.wikipedia.org/wiki/MinGW), which '... In the MSYS2 shell, you can install everything with pacman: $ pacman -S git + $ pacman -S cmake $ pacman -S make $ pacman -S mingw-w64-x86_64-toolchain + $ pacman -S mingw-w64-x86_64-portaudio $ pacman -S python $ pacman -S winpty -## Compilation +### Compilation with CMake -With mingw64-w64 installed, just go to the port/windows-winusb directory and run make +With mingw64-w64 installed, just go to the port/windows-h4 directory and use CMake as usual - $ cd btstack/port/windows-winusb + $ cd port/windows-h4 + $ mkdir build + $ cd build + $ cmake .. $ make Note: When compiling with msys2-32 bit and/or the 32-bit toolchain, compilation fails