-
Notifications
You must be signed in to change notification settings - Fork 34
/
pixi.toml
56 lines (49 loc) · 990 Bytes
/
pixi.toml
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
[project]
name = "pybind11_json"
channels = ["conda-forge"]
platforms = ["win-64", "linux-64", "osx-64", "osx-arm64"]
[dependencies]
python = ">=3.7"
# Build dependencies
cmake = "*"
cxx-compiler = "*"
ninja = "*"
# Host dependencies
nlohmann_json = "*"
pybind11 = "*"
[tasks.test]
cmd = "./build/test/test_pybind11_json"
depends_on = ["build"]
[tasks.configure]
cmd = [
"cmake",
"-GNinja",
"-S.",
"-Bbuild",
"-DDOWNLOAD_GTEST=ON",
"-DCMAKE_INSTALL_LIBDIR=lib",
"-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX",
]
inputs = ["CMakeLists.txt"]
outputs = ["build/CMakeFiles/"]
[target.win-64.tasks.configure]
cmd = [
"cmake",
"-GNinja",
"-S.",
"-Bbuild",
"-Dgtest_force_shared_crt=ON",
"-DDOWNLOAD_GTEST=ON",
"-DCMAKE_INSTALL_LIBDIR=Library",
"-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX",
]
[tasks.build]
cmd = ["cmake", "--build", "build"]
depends_on = ["configure"]
inputs = [
"CMakeLists.txt",
"src/*"
]
outputs = [
"build/"
]