liba 0.1.0-rc2

An algorithm library based on C/C++ language
liba-0.1.0-rc2 has been yanked.
Visit the last successful build: liba-0.1.15

An algorithm library {#mainpage}

conan xmake msvc linux macos mingw msys2 freebsd doxygen

required tools

optional tools

build

xmake

xmake f -m release
xmake --build --all
xmake install --all

cmake

cmake -S . -B build
cmake --build build
cmake --install build

vcpkg

cmake -S . -B build -DENABLE_VCPKG=ON
cp -r build/vcpkg/* $VCPKG_INSTALLATION_ROOT
cp -r -Force build/vcpkg/* $ENV:VCPKG_INSTALLATION_ROOT

conan

conan create .

cargo

cargo build --release

cython

python setup.py build_ext --inplace

wheel

python setup.py bdist_wheel

usage

C/C++

xmake.lua

add_requires("a")

CMakeLists.txt

find_package(liba CONFIG REQUIRED)
target_link_libraries(<TARGET> PRIVATE liba::a)

conanfile.txt

[requires]
liba/[~0.1]

Lua

local a = require("liba")
print("version", a.version())

Java

import liba.ac;
import liba.ax;

Rust

Cargo.toml

[build-dependencies]
liba = "*"

main.rs

use liba;
fn main() {
    println!("version {}", liba::version());
}

Python

import libac
print("version", libac.version())
import libax
print("version", libax.version())

Copyright {#copyright}

Copyright (C) 2020-present tqfx, All rights reserved.

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.