forked from micro-manager/mmCoreAndDevices
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
56 lines (49 loc) · 1.57 KB
/
justfile
File metadata and controls
56 lines (49 loc) · 1.57 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
# This Justfile defines tasks for building and testing MMDevice and MMCore
# projects. It is only for the experimental meson-build system, and is not yet
# used in production.
#
# To use it, first install Just: https://github.com/casey/just, for example:
# $ uv tool install just
# # or
# $ brew install just
# Make sure you also have meson and ninja installed, for example:
# $ uv tool install meson && uv tool install ninja
# # or
# $ brew install meson ninja
#
# Then run any command with `just <command>`. Or simply `just` to see all
# available commands.
default:
@just --list
# Build MMDevice
build-mmdevice:
meson setup MMDevice/builddir MMDevice \
--reconfigure \
--vsenv \
--buildtype debug \
-Dcatch2:tests=false
meson compile -C MMDevice/builddir
# Build MMCore (depends on build-mmdevice)
build-mmcore: build-mmdevice
cp -R MMDevice MMCore/subprojects
meson setup MMCore/builddir MMCore \
--reconfigure \
--vsenv \
--buildtype debug \
-Dcatch2:tests=false
meson compile -C MMCore/builddir
# Test MMDevice (depends on build-mmdevice)
test-mmdevice:
if [ ! -d MMDevice/builddir ]; then just build-mmdevice; fi
meson test -C MMDevice/builddir --print-errorlogs
# Test MMCore (depends on build-mmcore)
test-mmcore:
if [ ! -d MMCore/builddir ]; then just build-mmcore; fi
meson test -C MMCore/builddir
# Run all tests
test: test-mmdevice test-mmcore
# Clean build artifacts
clean:
rm -rf MMDevice/builddir
rm -rf MMCore/builddir
rm -rf MMCore/subprojects/MMDevice