Skip to content

Latest commit

 

History

History
71 lines (62 loc) · 2.29 KB

README.md

File metadata and controls

71 lines (62 loc) · 2.29 KB

OuiPacker

a Lua Runtime with all dependencies required to build OUI products

Releases

item plataform
Amalgamation Source
OuiPacker.out Linux binary
OuiPacker.exe Windows binary

Compile

for compile the project you can just call

curl -L https://github.com/OUIsolutions/OuiPacker/releases/download/0.005/OuiPacker.c -o OuiPacker.c && gcc  OuiPacker.c -o  OuiPacker.o

Building From Scratch

for building from scratch you must have gcc installed on your machine then clone the repo and type

sh install_dependencies.sh && ./darwin.o build darwinconf.lua build_linux  build_windows

Building from docker

for building from docker, you must have docker installed in your machine then just type

sh install_dependencies.sh
 sh create_all_docker_images.sh
 sh build_all_from_docker.sh

than you can run the image

 docker run  --volume $(pwd)/src:/src/:z --volume $(pwd)/release:/release/:z   -it  darwin

and inside the machine , you can run

 darwin build

Runing a input.lua file

for runing a input.lua file you can just type

./OuiPacker.o teste.lua

Runing Full Folder Mode

you can run in full folder mode by passing the --folder_mode flag NOTE THAT YOUR CODE MUST HAVE A main function, otherwise will raise a error

./OuiPacker.o --folder_mode  src

Type Anotations

you can generate a type anotation file by typing

./OuiPacker.o --drop_types types.lua

Building libs

OUI Packer Have The Follow libs native

Object Name Lib Name
camalgamator LuaCAmalgamator
dtw LuaDoTheWorld
candango candangoEngine
json LuaFluidJson
argv LuaFluidJson
silverchain LuaFluidJson