Skip to content

hydrosphere-nx/Hydrosphere

Repository files navigation

Hydrosphère

Hydrosphère Travis Build Discord

"Ocean beyond the Horizon"

Hydrosphère is a work in progress C++ toolchain targeting the Nintendo Switch userland.

Install from sources

Building on *nix

  1. Make sure you have installed the dependencies:

    • llvm 8.x or later
    • clang 8.x or later
    • meson 0.51 or later
    • linkle 0.2.7 or later (Releases: here)
    • ninja
    • make
    • git
  2. Clone the source with git:

    $ git clone --recursive https://github.com/hydrosphere-nx/Hydrosphere.git
    $ cd Hydrosphere
  1. Choose Hydrosphère sysroot and export it:

    $ export HYDROSPHERE_SYSROOT=<path to your sysroot>
  2. Build and deploy Hydrosphère to $HYDROSPHERE_SYSROOT:

    $ make deploy

    NOTE: - On Debian based distributions, LLVM official packages use a postfix on every binaries. To provide this postfix to Hydrosphère build system, set HYDROSPHERE_LLVM_SUFFIX environment variable to the appropriate suffix. (e.g: export HYDROSPHERE_LLVM_SUFFIX="-8" for llvm-8) - If your LLVM installation prefix isn't /usr, you can set the HYDROSPHERE_LLVM_INSTALL_PREFIX environment variable to the appropriate prefix to provide it to Hydrosphère build system.

Building on Windows (MINGW64)

  1. Install MSYS2

  2. Make sure you have installed the dependencies and that you are running under MINGW64 shell:

    # Install dependencies
    $ pacman -S mingw-w64-x86_64-llvm mingw-w64-x86_64-clang mingw-w64-x86_64-lld mingw-w64-x86_64-meson mingw-w64-x86_64-ninja make wget gunzip git
    
    # Install linkle manually
    $ mkdir -p $HOME/bin
    $ wget -nc -O - https://github.com/MegatonHammer/linkle/releases/download/v0.2.7/linkle-v0.2.7-x86_64-pc-windows-msvc.zip | gunzip > $HOME/bin/linkle.exe
    
    # Add ~/bin to PATH for new shell instances
    $ echo "export PATH=\"\$HOME/bin:\$PATH\"" >> $HOME/.bashrc
    
    # Add ~/bin to PATH for this shell instance
    $ export PATH="$HOME/bin:$PATH"
  3. Clone the source with git:

    $ git clone --recursive https://github.com/hydrosphere-nx/Hydrosphere.git
    $ cd Hydrosphere
  1. Choose Hydrosphère sysroot and export it:

    $ export HYDROSPHERE_SYSROOT=<path to your sysroot>
  2. Build and deploy Hydrosphère to $HYDROSPHERE_SYSROOT:

    $ make deploy

Documentation

Documentation is hosted on our github pages.

License

Hydrosphère is distributed under the terms of either the MIT license or the Apache License (Version 2.0), at the user's choice.

See LICENSE-APACHE and LICENSE-MIT.