dco

This is a build tool,compile *.d to exe or lib,and help to build dfl2 gui (or other you like). now default DC is dmd ,default platform is windows.

If your DC is dmd, dco can start only 'dco.ini' config file.

Compiler dco.d :dmd dco.d -release,and dco ↓,

Usage: Config some info to 'dco.ini' file,';' or '#' means you can do as it.Then copy dco.ini to your PATH: such as dmd's config file:sc.ini. And dco.exe can auto copy itsself to EnvPath,that also is dmd.exe 's path: dmd2\window\bin. After that,you can run the 'dco.exe' anywhere. If not found 'dco.ini',run: dco -ini,please.

For example: to get the debug version( -release to get another)

build some *.d to lib or exe : dco ↓ build some *.d to lib or exe for 64 bit : dco -m64 ↓ build one app.d in many *.d : dco app or dco app.d build for libs such as dfl,dgui : dco -lib build for app.d use dfl2 : dco -gui build app.d use dfl2 for console : dco -con build lib and copy to libs : dco -lib -copy build by custom and copy to libs : dco -arg -addlib -lib -copy

if your exe's file works on console,you should add '-con' or '-console'.

Members

Functions

CheckBinFolderAndCopy
bool CheckBinFolderAndCopy()
Undocumented in source. Be warned that the author may not have intended to support it.
ReadDFile
void ReadDFile(string dFile, bool bPackage)
Undocumented in source. Be warned that the author may not have intended to support it.
ShowUsage
void ShowUsage()
Undocumented in source. Be warned that the author may not have intended to support it.
buildExe
void buildExe(string[] args)
Undocumented in source. Be warned that the author may not have intended to support it.
buildExe
void buildExe()
Undocumented in source. Be warned that the author may not have intended to support it.
checkArgs
bool checkArgs(string[] args)
Undocumented in source. Be warned that the author may not have intended to support it.
checkIsUpToDate
bool checkIsUpToDate()
Undocumented in source. Be warned that the author may not have intended to support it.
checkIsUpToDate
bool checkIsUpToDate(string strPathFile, SysTime targettime)
Undocumented in source. Be warned that the author may not have intended to support it.
copyFile
void copyFile()
Undocumented in source. Be warned that the author may not have intended to support it.
findDCEnv
bool findDCEnv()
Undocumented in source. Be warned that the author may not have intended to support it.
findFiles
bool findFiles()
Undocumented in source. Be warned that the author may not have intended to support it.
getTargetInfo
void getTargetInfo()
Undocumented in source. Be warned that the author may not have intended to support it.
getTargetTime
SysTime getTargetTime(string strPathFile)
Undocumented in source. Be warned that the author may not have intended to support it.
initNewConfigFile
void initNewConfigFile()
Undocumented in source. Be warned that the author may not have intended to support it.
main
void main(string[] args)
Undocumented in source. Be warned that the author may not have intended to support it.
readConfig
bool readConfig(string configFile)
Undocumented in source. Be warned that the author may not have intended to support it.
readInJson
void readInJson()
Undocumented in source. Be warned that the author may not have intended to support it.
removeExe
void removeExe(string strPathExe)
SpecialLib
string SpecialLib;
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

bAssignTarget
bool bAssignTarget;
bBuildSpecialLib
bool bBuildSpecialLib;
Undocumented in source.
bCopy
bool bCopy;
bDebug
bool bDebug;
bDisplayBuildStr
bool bDisplayBuildStr;
bDisplayCopyInfo
bool bDisplayCopyInfo;
Undocumented in source.
bForce
bool bForce;
Undocumented in source.
bUseSpecialLib
bool bUseSpecialLib;
Undocumented in source.
compileType
string compileType;
Undocumented in source.
configFile
string configFile;
Undocumented in source.
configKeyValue
string[string] configKeyValue;
Undocumented in source.
sourceLastUpdateTime
SysTime sourceLastUpdateTime;
Undocumented in source.
strAddArgs
string strAddArgs;
strAddArgsdfl
string strAddArgsdfl;
Undocumented in source.
strAddLib
string strAddLib;
strArgs
string strArgs;
strConsole
string strConsole;
strDC
string strDC;
Undocumented in source.
strDCEnv
string strDCEnv;
strDCEnvFile
string strDCEnvFile;
strDCStandardEnvBin
string strDCStandardEnvBin;
Undocumented in source.
strDFile
string strDFile;
Undocumented in source.
strDebug
string strDebug;
strDebugDefault
string strDebugDefault;
strDflags
string strDflags;
strImport
string strImport;
Undocumented in source.
strImportDefault
string strImportDefault;
strLflags
string strLflags;
strLibs
string strLibs;
Undocumented in source.
strOtherArgs
string strOtherArgs;
Undocumented in source.
strPackageName
string strPackageName;
strTargetFileName
string strTargetFileName;
Undocumented in source.
strTargetLflags
string strTargetLflags;
Undocumented in source.
strTargetLib
string strTargetLib;
strTargetName
string strTargetName;
Undocumented in source.
strTargetPath
string strTargetPath;
strTargetType
string strTargetType;
strTargetTypeSwitch
string strTargetTypeSwitch;
Undocumented in source.
strVersion
string strVersion;
strWinLibs
string strWinLibs;
strWinLibs64
string strWinLibs64;
strWindows
string strWindows;
strWindows64
string strWindows64;
targetTime
SysTime targetTime;
targetTypeDefault
string targetTypeDefault;
Undocumented in source.

Meta

Source

See Source File
$(dco.d)

Created Time:2014-10-27 Modify Time:2014-10-31~2014-12-29

License

$(LGPL-3.0).

Authors

FrankLIKE