This repository has been archived by the owner on Jan 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshadow-cljs.edn
82 lines (79 loc) · 4.84 KB
/
shadow-cljs.edn
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{:dependencies [[org.clojure/core.specs.alpha "0.2.36"]
[org.clojure/tools.nrepl "0.2.12"]
[cider/cider-nrepl "0.18.0"]]
:source-paths ["src"]
:builds {:node
{:target :node-library
:output-to "release/node/index.js"
:modules {:main {:entries [csound-wasm.node]}}
:compiler-options {:optimizations :simple}
:js-options {:resolve {"libcsound"
{:target :file
:file "libcsound/libcsound.js"}}}
:exports
{:startRealtime csound-wasm.public/start-realtime
:compileOrc csound-wasm.public/compile-orc
:renderToFile csound-wasm.node/render-to-file
:evalCode csound-wasm.public/eval-code
:inputMessage csound-wasm.public/input-message
;; :inputMessageAsync csound-wasm.public/input-message-async
:readScore csound-wasm.public/read-score
:getControlChannel csound-wasm.public/get-control-channel
:setControlChannel csound-wasm.public/set-control-channel
:setStringChannel csound-wasm.public/set-string-channel
:getScoreTime csound-wasm.public/get-score-time
;; :getScoreTimeSync csound-wasm.public/get-score-time-sync
:playCSD csound-wasm.public/play-csd
:reset csound-wasm.public/reset
;; :stop csound-wasm.public/stop
:destroy csound-wasm.public/destroy
:setOption csound-wasm.public/set-option
:compileCSD csound-wasm.public/compile-csd
:setTable csound-wasm.public/set-table
:getTable csound-wasm.public/get-table
:getTableLength csound-wasm.public/get-table-length
:getKsmps csound-wasm.public/get-ksmps
:get0dbfs csound-wasm.public/get-0dbfs
:enableMidi csound-wasm.node/enable-midi
:pushMidi csound-wasm.public/push-midi-message}}
:browser
{:target :browser
:output-dir "release/browser"
:asset-path "./"
:js-options {:resolve {"libcsound_browser"
{:target :file
:file "libcsound/libcsound_browser.js"}}}
:compiler-options {
:optimizations :simple
:output-wrapper true
:output-to "release/browser/csound-wasm-browser.js"
}
:modules {:main {:entries [csound-wasm.browser]}}
:exports {:csound csound-wasm.browser/main}
:build-hooks [(csound-wasm.hooks/delete-browser-js)
(csound-wasm.hooks/rename-release)]
:devtools {:http-root "release/browser"
:http-resource-root "release/browser"
:http-port 8600
:http-host "localhost"
;; :after-load csound-wasm.browser/start-audio
}}
:processor
{:target :browser
:output-dir "release/browser"
:asset-path "./"
:js-options {:resolve {"libcsound_browser"
{:target :file
:file "libcsound/libcsound_browser.js"}}}
:compiler-options {
:optimizations :simple
:elide-strict false
:output-wrapper true
:source-map true
;; :language-in :es6-strict
:language-out :es6-strict
:output-to "release/browser/csound-wasm-worklet-processor.js"
}
:modules {:processor {:entries [csound-wasm.worklet-processor]}}
:build-hooks [(csound-wasm.hooks/delete-browser-worklet-js)
(csound-wasm.hooks/rename-processor-release)]}}}