Skip to content

ErlGameWorld/eMake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eMake

erlang 多进程编译器

Build

$ rebar3 escriptize   ->   eMake
将编译得到 _build/default/bin 下面的eMake eMake.cmd 文件复制到工作目录或者添加到环境变量即可使用

eg

参数的值类型标记F:
    -s 字符串 参数的值会保持字符串 
    -i 整数  参数的值会转成整数
    -a 原子  参数的值会转成原子
    -f 浮点数  参数的值会转成浮点数
    -b 二进制 参数的值会转成binary
    -n 没有值 没有参数值 或者 可以配置占位符
参数格式: FKey Value
所有可选参数: 
    -nfo            清理redis
    -sfo Num        清理redis
    -nfa            清理redis
    -nall           编译所有
    -nprint         打印编译文件与编译时长
    -sprint  opts|time   打印编译文件,编译时长与编译选项
    -nnohrl         增量编译不检查头文件
    -semakefile Makefile   指定编译的Makefile文件
    -iworkcnt Num   编译进程最大数量
    -ioncecnt Num   单次批量编编译的文件数
    -sopts String   编译选项字符串
    -ssopts String  设置本地编译选项字符串
    -ndopts         删除本地编译选项字符串
    -ngopts         获取编译选项字符串
    -sgopts DirString 获取编译选项字符串
    -h              帮助
eg:
eMake  -nfo 
eMake -ifo 1
eMake -nfa
eMake -nall -nnohrl -semakefile "./Emakefile" -iworkcnt 4 -sopts "[noexec, debug_info]"
可以在编译之后修改代码指定默认的 Emakefile文件
如果cmd下乱码 可以使用chcp 65001命令

@echo off
chcp 65001 > nul
escript.exe "%~dpn0" %*

注意事项:

# 在 Bash 或类似 Shell 中,使用反斜杠 (\) 转义双引号 
    ./test.escript "This is an argument with embedded \"double quotes\" inside."
# 或者在单引号字符串内直接使用双引号,有时更简单 
    ./test.escript 'This is an argument with embedded "double quotes" inside.'
# Windows 平台注意事项 
    在 Windows Command Prompt 中,转义字符是双引号 "而不是反斜杠。 escript script.escript "He said: ""Hello"" there."
    在 Windows PowerShell 中,可以使用反斜杠 "或单引号 '。 escript script.escript "He said: `"Hello`" there."  escript script.escript 'He said: "Hello" there.'

About

基于Emakefile的多进程编译器

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages