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

Enums

targetTypes
enum targetTypes
Undocumented in source.

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.
checkDC
bool checkDC(string DCPath, string strDCExe)
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.
findStr
bool findStr(string strIn, string[] strFind)
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.
bGetLocal
bool bGetLocal;
bHelp
bool bHelp;
bInitINI
bool bInitINI;
Undocumented in source.
bUseSpecialLib
bool bUseSpecialLib;
Undocumented in source.
buildMode
string buildMode;
Undocumented in source.
compileType
string compileType;
Undocumented in source.
configFile
string configFile;
configFileLocal
string configFileLocal;
Undocumented in source.
configKeyValue
string[string] configKeyValue;
Undocumented in source.
separator
string separator;
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;
strDebugDefault
string strDebugDefault;
strDflags
string strDflags;
strImport
string strImport;
Undocumented in source.
strImportDefault
string strImportDefault;
strLflags
string strLflags;
strLibs
string strLibs;
strObjPath
string strObjPath;
Undocumented in source.
strOtherArgs
string strOtherArgs;
Undocumented in source.
strPackageName
string strPackageName;
Undocumented in source.
strTargetFileName
string strTargetFileName;
Undocumented in source.
strTargetLflags
string strTargetLflags;
Undocumented in source.
strTargetLib
string strTargetLib;
strTargetName
string strTargetName;
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;
Undocumented in source.
targetExt
string[] targetExt;
targetTime
SysTime targetTime;
targetTypeDefault
string targetTypeDefault;
targetTypeShared
string targetTypeShared;
Undocumented in source.

Meta

Source

See Source File
$(dco.d)

Created Time:2014-10-27 Modify Time:2014-10-31~2015-2-1

License

$(LGPL-3.0).

Authors

FrankLIKE