Skip to content

⛺ mulle-cosmopolitan support for mulle-c

License

Notifications You must be signed in to change notification settings

mulle-cc/mulle-cosmopolitan

Repository files navigation

You are here

Overview

Add

Use mulle-sde to add to your project. As long as your sources are using #include "include-private.h" and your headers use #include "include.h", there will nothing more to do:

mulle-sde add :/

To only add the sources of with dependency sources use clib:

Legacy adds

One common denominator is that you will likely have to add #include </.h> to your source files.

Add sources to your project with clib

clib install --out src/ /

Add -isystem src/ to your CFLAGS and compile all the sources that were downloaded with your project. (In cmake add include_directories( BEFORE SYSTEM src/) to your CMakeLists.txt file).

Add as subproject with cmake and git

git submodule add -f --name "cosmopolitan" \
                            "https://github.com/mulle-cc/cosmopolitan/archive/refs.git" \
                            "stash/cosmopolitan"
git submodule add -f --name "" \
                            "https://github.com//" \
                            "stash/"
git submodule update --init --recursive
add_subdirectory( stash/)
add_subdirectory( stash/cosmopolitan)

target_link_libraries( ${PROJECT_NAME} PUBLIC )
target_link_libraries( ${PROJECT_NAME} PUBLIC cosmopolitan)

Install

Use mulle-sde to build and install :

mulle-sde install --prefix /usr/local \
   https://github.com///archive/latest.tar.gz

Legacy Installation

Download the latest tar or zip archive and unpack it.

Install **** into /usr/local with cmake:

cmake -B build \
      -DCMAKE_INSTALL_PREFIX=/usr/local \
      -DCMAKE_PREFIX_PATH=/usr/local \
      -DCMAKE_BUILD_TYPE=Release &&
cmake --build build --config Release &&
cmake --install build --config Release

Author

Nat! for Mulle kybernetiK