This repository has been archived by the owner on Apr 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathnimraylib_now.nimble
53 lines (42 loc) · 2.04 KB
/
nimraylib_now.nimble
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
# Package
version = "0.15.0"
author = "Dmitry Matveyev"
description = "The Ultimate Raylib gaming library wrapper"
license = "MIT"
srcDir = "src"
skipFiles = @["generate_bindings.nim"]
skipDirs = @["templates"]
backend = "c"
# Dependencies
requires "nim >= 1.4.2"
requires "regex"
from os import `/`, parentDir
task genbindings, "generate bindings":
exec "nim r src"/"generate_bindings.nim"
task checkbindings, "nim check all generated bindings":
const nimraylibNowDir = currentSourcePath().parentDir()/"src"/"nimraylib_now"
exec "nim check " & nimraylibNowDir/"mangled"/"raylib.nim"
exec "nim check " & nimraylibNowDir/"mangled"/"raygui.nim"
exec "nim check " & nimraylibNowDir/"mangled"/"rlgl.nim"
exec "nim check " & nimraylibNowDir/"mangled"/"raymath.nim"
exec "nim check " & nimraylibNowDir/"mangled"/"physac.nim"
exec "nim check " & nimraylibNowDir/"mangled"/"converters.nim"
exec "nim check " & nimraylibNowDir/"not_mangled"/"raylib.nim"
exec "nim check " & nimraylibNowDir/"not_mangled"/"raygui.nim"
exec "nim check " & nimraylibNowDir/"not_mangled"/"rlgl.nim"
exec "nim check " & nimraylibNowDir/"not_mangled"/"raymath.nim"
exec "nim check " & nimraylibNowDir/"not_mangled"/"physac.nim"
exec "nim check " & nimraylibNowDir/"not_mangled"/"converters.nim"
task prepareTests, "generate tests from examples":
exec "nim r " & "scripts"/"make_tests_from_examples.nim"
exec "nim r " & "scripts"/"make_individual_tests_from_examples.nim"
exec "nim r " & "scripts"/"make_emscripten_tests_from_examples.nim"
task testExamples, "checks that all examples are correctly compiled":
exec "testament pattern tests/texamples.nim"
exec "testament pattern tests/texamples_shared.nim"
exec "testament pattern tests/texamples_windows.nim"
# Can fail on Windows due to globbing rules
task testIndividualExamples, "slower but check that all examples compile individually":
exec "testament pattern 'tests/examples/t_*.nim'"
task testEmscriptenExample, "run a single test with emsdk installed":
exec "testament pattern 'tests/emscripten/t_*.nim'"