Skip to content

calamity-inc/Soup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

320243c · Mar 25, 2025
Feb 11, 2025
Mar 25, 2025
Sep 28, 2024
Nov 25, 2024
Mar 7, 2025
Feb 18, 2025
Dec 3, 2022
Mar 25, 2025
Feb 27, 2024
Oct 18, 2023
Mar 21, 2024
Mar 29, 2023
Jan 2, 2025
Dec 3, 2024
Nov 19, 2024
Jun 2, 2024
Nov 26, 2024
Dec 15, 2023
Dec 3, 2024
Dec 15, 2023
Sep 28, 2024

Repository files navigation

Soup

The everything library for C++ 17 and up.

Building

Visual Studio

Simply open up Soup.sln using Visual Studio 2022 and run a batch build for the Soup project to compile the static libraries, then you can use it in your own projects by adding a compiler and linker include, respectively.

PHP Build Scripts

You can build Soup using build_lib.php which will produce a static lib.

Sun

Soup can be built using our own build system, Sun. To include it in your own projects, we recommend the directory structure such that your own project and Soup share the same parent, then you can simply add the following to the .sun file for your project:

require ../Soup/soup include_dir=../Soup

This will make it so that you have to use #include <soup/NAME.hpp> in your code, which we recommend to avoid name clashes, similar to opting not to use using namespace. However, if you omit the include_dir part, you can use #include <NAME.hpp> directly.

Bindings

To build Soup as a DLL/SO with C ABI exports, run php build_lib.php (in the root folder) or sun dynamic (in the "soup" folder).

For WASM, it can be done via php wasm.php (in the root folder) or sun wasm (in the "soup" folder).

Getting Started

If you want some ideas as to how start using Soup, check out the docs.

If you're looking to use Soup from a language other than C++, have a look at the bindings.