diff --git a/gen.nim b/gen.nim index d85a113..4cfc6d4 100644 --- a/gen.nim +++ b/gen.nim @@ -9,11 +9,10 @@ import system/io #是否启用详细输出 var verbose_enabled = false var localDependencies:seq[string] -var remoteDependencies:seq[string] -var pluginDir = "/plugin" -var localDepDir = "/dependencies/local" -var remoteDepDir = "/dependencies/remote" -var outPutDir = "/output" +const pluginDir = "/plugin" +const localDepDir = "/dependencies/local" +const remoteDepDir = "/dependencies/remote" +const outPutDir = "/output" #插件的文件名字 xxx.aar proc get_plugin(path:string):string = diff --git a/init.nim b/init.nim index fb0478c..f772fa5 100644 --- a/init.nim +++ b/init.nim @@ -2,7 +2,7 @@ import os import system import std/json var cmd = commandLineParams() -var rootDir = cmd[0] +var rootDir:string = cmd[0] createDir(rootDir) createDir(rootDir & "/dependencies") createDir(rootDir & "/dependencies/local")