Build tools
- acpul compiler
- plist2dir converter
- acpu-server node
Building
Configure and run the acpu-server
node to start development.
Use the acpul
compiler to export to C++
, and plist2dir
to build your project.plist
acpul compiler
ACPUL compiler
Run to build project.cpp
acpul -i my_project -F my.formula -S circle.shader -o my_project.cpp
or use formulas id
acpul -i my_project -o my_project.cpp -f 1000,1234 -s 5678
Usage
acpul -i <path> [-f <formula.id>,..] [-s <shader.id>,..] [-F <formula.name>] [-S <shader.name>] [-sa] -o <out_file>
-i file - Input file (is must!)
-o file - Output file (is must!)
-f fid,.. - Formula id (example: -f 1000)
-F name - Formula name (example: -F "basic.ui.value")
-s sid,.. - Shader id (example: -s 1000)
-S name - Shader name (example: -S "palletes0")
-sa - Shaders: include all
plist2dir converter
Extract .plist to dir or pack dir to .plist
Usage: plist2dir <input.plist> <output_directory>
plist2dir <input_dir> [<input_dir>..] <output.plist>
Run
plist2dir \
$P/bin/formulas/ \
$P/bin/shaders/ \
$P/boot/ \
$BIN_DIR/Projects-acpu/boot/0-acpu.plist
acpu-server node
AnimationCPU P2P Server Node
Configure
# config/config-macone.js
let BASE = 'acpul-src' // Path to base
let HOME = `${BASE}acpul-project/` // Path to project home
let LLOG = `${BASE}acpul-project/log/` // Path to log
let options = require('./base0').getOptions(HOME, LLOG, ['build', 'afilter'])
module.exports = options
Run
node acpu-server.js