From ab6e05707b5a65a466311811e0e8fba7ed42b835 Mon Sep 17 00:00:00 2001 From: Yannic Staudt Date: Tue, 1 Mar 2022 14:31:16 +0100 Subject: [PATCH] Added instructions on how to use argh with tipi.build --- README.md | 19 +++++++++++++++++++ test_package/.tipi/deps | 3 +++ 2 files changed, 22 insertions(+) create mode 100644 test_package/.tipi/deps diff --git a/README.md b/README.md index c6c7e9f..f566631 100644 --- a/README.md +++ b/README.md @@ -302,6 +302,25 @@ target_link_libraries(${MY_TARGET_NAME} argh) ``` +## Tipi.build + +`argh` can be easily used in [tipi.build](https://tipi.build) projects simply by adding the following entry to your `.tipi/deps`: + +```json +{ + "adishavit/argh": { "x": [ "*.cpp" ]} +} +``` + +> `argh` itself is a header-only library hence the exclusion of all `.cpp` files above. This isn't stricly required to inlcude `argh` but speeds up the build. + +To try this you can run the following command in `/test_package` (change the target name appropriately to `linux` or `macos` or `windows`): + +```bash= +tipi . -t +./build/linux-cxx17/bin/test_package -v +``` + ## Buck The [Buck](https://buckbuild.com/) build system is also supported. diff --git a/test_package/.tipi/deps b/test_package/.tipi/deps new file mode 100644 index 0000000..9a939ba --- /dev/null +++ b/test_package/.tipi/deps @@ -0,0 +1,3 @@ +{ + "adishavit/argh": { "x": [ "*.cpp" ]} +} \ No newline at end of file