-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpixi.toml
34 lines (25 loc) · 1.28 KB
/
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
[project]
authors = ["nichmor <nmorkotilo@gmail.com>"]
channels = ["conda-forge"]
description = "Add a short description here"
name = "arwen"
platforms = ["osx-arm64"]
version = "0.1.0"
[dependencies]
rust = "~=1.81.0"
ruby = "~=3.4.1"
[tasks]
build-debug = "cargo build"
build-release = "cargo build --release"
install = "cargo install --path . --locked"
ruby-install = "bundle install"
run-ruby-macho = { cmd = "bundle exec ruby ruby.rb", cwd = "tools/ruby" }
# build x64 versions
# building x32 versions is not supported on macOS after Xcode 9.4/9.4.1
# so most probably you will not be able to build x32 versions on your new macOS.
# to overcome this, we ship some x32 versions of different binaries nearby the x64 ones.
# If you think you are able to build x32 versions, just use -m32 instead of -m64.
build-dylib-x64 = { cmd = "clang -dynamiclib -m64 -o x64/libmylib.dylib mylib.c", cwd = "tools/clang" }
build-dylib-x86_64 = { cmd = "clang -dynamiclib -arch x86_64 -o x86_64/libmylib.dylib mylib.c", cwd = "tools/clang" }
build-dylib-fat = { cmd = "lipo -create tools/clang/x64/libmylib.dylib tools/clang/x86_64/libmylib.dylib -output tools/clang/fat" }
build-bin-with-dylib-x64 = { cmd = "clang -m64 -o x64/main main.c -L x64 -lmylib", cwd = "tools/clang", depends-on = ["build-dylib-x64"] }