Repository navigation
Expand file tree
/
Copy pathmcpp.toml
More file actions
57 lines (47 loc) · 2.21 KB
/
Copy pathmcpp.toml
File metadata and controls
57 lines (47 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Module wrapper; upstream API preserved. Policy: mcpp-index/docs/mwrap.md.
[package]
namespace = "mcpplibs.mwrap"
name = "basis_universal"
version = "2.50.1"
description = "Basis Universal 2.50's transcoder as C++ modules for mcpp (import mcpplibs.mwrap.basis_universal;): KTX2 and .basis textures to pixels or to a GPU's own compressed format"
license = "Apache-2.0"
authors = ["mcpp-community"]
repo = "https://github.com/mcpplibs/basis-universal-m"
platforms = ["linux", "macos", "windows", "emscripten"]
[targets.basis_universal]
kind = "lib"
[build]
# The transcoder is vendored byte for byte from the v2_50 release under
# upstream/basis_universal and built as upstream's own build does with its
# defaults: every format on, KTX2 on, Zstandard on — the decoder upstream ships
# beside the transcoder (zstd/zstddeclib.c) — with two choices, both so that
# one file gives the same bytes on every target: floating-point contraction
# off, and the larger ASTC table for opaque blocks on everywhere
# (BASISD_SUPPORT_ASTC_HIGHER_OPAQUE_QUALITY=1: upstream's default for native
# builds, which it turns off under Emscripten to save 64 KB — ASTC blocks
# would differ there). The encoder is not here (upstream/documents.json).
sources = ["src/*.cppm", "upstream/basis_universal/transcoder/basisu_transcoder.cpp", "upstream/basis_universal/zstd/zstddeclib.c"]
include_dirs = ["upstream/basis_universal"]
cxxflags = ["-ffp-contract=off", "-DBASISD_SUPPORT_ASTC_HIGHER_OPAQUE_QUALITY=1"]
[dev-dependencies]
compat.gtest = "1.15.2"
[package.metadata.mwrap]
upstream-version = "2.50"
[[runtime.deploy]]
from = "LICENSE"
to = "licenses/basis_universal"
[[runtime.deploy]]
from = "NOTICE"
to = "licenses/basis_universal"
[[runtime.deploy]]
from = "upstream/basis_universal/README.md"
to = "licenses/basis_universal/upstream/basis_universal"
[[runtime.deploy]]
from = "upstream/basis_universal/LICENSE"
to = "licenses/basis_universal/upstream/basis_universal"
[[runtime.deploy]]
from = "upstream/basis_universal/NOTICE"
to = "licenses/basis_universal/upstream/basis_universal"
[[runtime.deploy]]
from = "upstream/basis_universal/zstd/LICENSE"
to = "licenses/basis_universal/upstream/basis_universal/zstd"