bash
xmake f
xmake
xmake i
bash
cmake -S . -B build
cmake --build build
cmake --install build
bash
meson setup builddir
meson install -C builddir
bash
cmake -S . -B build -DLIBA_VCPKG=1
bash
cp -r build/vcpkg/* $VCPKG_INSTALLATION_ROOT
pwsh
cp -r -Force build/vcpkg/* $ENV:VCPKG_INSTALLATION_ROOT
bash
conan create .
bash
cargo build --release
bash
python setup.py build_ext --inplace
lua
add_requires("a")
cmake
find_package(liba CONFIG REQUIRED)
target_link_libraries(<TARGET> PRIVATE alib) # static
target_link_libraries(<TARGET> PRIVATE liba) # shared
txt
[requires]
liba/[~0.1]
lua
local liba = require("liba")
print("version", liba.version())
java
public class test {
public static void main(String[] args) {
liba.init();
System.out.println("version " + liba.version());
}
}
toml
[dependencies]
liba = { git = "https://github.com/tqfx/liba.git" }
rs
use liba;
fn main() {
println!("version {}", liba::version());
}
py
import liba
print("version", liba.version())
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/.