-
Notifications
You must be signed in to change notification settings - Fork 2
/
june.nimble
45 lines (39 loc) · 2.01 KB
/
june.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
# June - Copyright (c) 2022 Lucio Asnaghi, Gavin Ray
#
# Licensed and distributed under the
# MIT license (license terms in the root directory or at http://opensource.org/licenses/MIT).
#
# This file may not be copied, modified, or distributed except according to those terms.
version = "0.0.1"
author = "kunitoki"
description = "Juce Bindings For Nim"
license = "MIT"
srcDir = "sources"
task test, "Runs the test suite":
exec "nim cpp -r tests/test_juce_core.nim"
exec "nim cpp -r tests/test_juce_events.nim"
exec "nim cpp -r tests/test_juce_data_structures.nim"
exec "nim cpp -r tests/test_juce_graphics.nim"
exec "nim cpp -r tests/test_juce_gui_basics.nim"
task juce_debug, "Build juce (debug)":
exec "mkdir -p build && cd build && cmake 'Ninja' -DCMAKE_BUILD_TYPE=Debug ../ && cmake --build ."
task juce_release, "Build juce (release)":
exec "mkdir -p build && cd build && cmake 'Ninja' -DCMAKE_BUILD_TYPE=Release ../ && cmake --build ."
task app_debug, "Compile and run june app (debug)":
exec "nim cpp examples/test_app.nim"
when defined(macosx):
exec "mkdir -p examples/test_app.app/Contents/{MacOS,Resources,Frameworks}"
exec "cp Info.plist examples/test_app.app/Contents"
exec "sed -e 's/APP_NAME/test_app/g' -i '' examples/test_app.app/Contents/Info.plist"
exec "mv examples/test_app examples/test_app.app/Contents/MacOS"
exec "chmod +x examples/test_app.app/Contents/MacOS/*"
exec "examples/test_app.app/Contents/MacOS/test_app"
task app_release, "Compile and run june app (release)":
exec "nim cpp -d:release examples/test_app.nim"
when defined(macosx):
exec "mkdir -p examples/test_app.app/Contents/{MacOS,Resources,Frameworks}"
exec "cp Info.plist examples/test_app.app/Contents"
exec "sed -e 's/APP_NAME/test_app/g' -i '' examples/test_app.app/Contents/Info.plist"
exec "mv examples/test_app examples/test_app.app/Contents/MacOS"
exec "chmod +x examples/test_app.app/Contents/MacOS/*"
exec "examples/test_app.app/Contents/MacOS/test_app"