Skip to content

Commit

Permalink
docs(build): document swift on windows and linux, ref #154
Browse files Browse the repository at this point in the history
  • Loading branch information
iboB committed Oct 28, 2024
1 parent 40986e8 commit e29ccda
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/dev/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ The minimum requirements are:
* For some build flavors and optional components:
* Android: CMake 3.24 is needed to properly find JNI
* The Java wrapper should work with Java 8+, but Java 17+ is needed to build the Java tests and examples
* To build the Swift wrapper, you need Swift 6.0.0 or later. Moreover, on non-macOS systems you need to use the clang compiler shipped with your swift installation.
* GUI Demos: [SDL2](https://wiki.libsdl.org/SDL2/FrontPage)
* Different computational backends require their respective SDKs and dependencies

Expand Down
6 changes: 6 additions & 0 deletions doc/dev/dev-env.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ We use Manjaro so some packages might have different names in pure AUR Arch Linu
* `$ sudo pacman -S openssl` (optional for HTTPS downloads)
* `$ sudo pacman -S sdl2` (optional for GUI demos)
* Optionally for the java wrapper: `$ sudo pacman -S jdk-openjdk`
* Optionally for the swift wrapper: `$ pamac build swift-bin`
* Note that to build the swift wrapper, you will have to configure with `-DCMAKE_CXX_COMPILER=/usr/lib/swift/bin/clang++ -DCMAKE_C_COMPILER=/usr/lib/swift/bin/clang`
* Compute backends (may or may not be applicable to your system):
* Cuda: `$ sudo pacman -S cuda`
* Vulkan: `$ sudo pacman -Sg vulkan-devel`
Expand Down Expand Up @@ -66,6 +68,10 @@ Install the following software (we recommend using Chocolatey, Scoop, or WinGet,
* For the Java wrapper (optional):
* JDK. [Microsoft OpenJDK 17](https://learn.microsoft.com/en-us/java/openjdk/download#openjdk-17) works, but any other JDK 17 or later should be fine as well
* Set the `JAVA_HOME` environment variable to the JDK installation directory
* For the Swift wrapper (optional):
* Install Swift in any of the ways described [here](https://www.swift.org/install/windows)
* Note that on you need to use the clang compiler shipped with your swift installation
* Also note that installing the Swift will add clang++ to your system path. If you also use other clang compilers, you will have to juggle the system path around accorting to what you currently need.
* Optional compute backends which may or may not be applicable to your system:
* [CUDA 12](https://developer.nvidia.com/cuda-downloads)
* Vulkan SDK
Expand Down

0 comments on commit e29ccda

Please sign in to comment.