| |
---|
| | logInfo("Running pre-build commands..."); |
---|
| | runBuildCommands(buildsettings.preBuildCommands, buildsettings); |
---|
| | } |
---|
| | |
---|
| | // determine the absolute target path |
---|
| | if( !Path(buildsettings.targetPath).absolute ) |
---|
| | buildsettings.targetPath = (m_project.mainPackage.path ~ Path(buildsettings.targetPath)).toNativeString(); |
---|
| | |
---|
| | Path exe_file_path; |
---|
| | if( generate_binary ){ |
---|
| | if( settings.run ){ |
---|
| | import std.random; |
---|
| |
---|
| | if( existsFile(f) ) |
---|
| | remove(f.toNativeString()); |
---|
| | if( generate_binary && settings.run ) rmdir(buildsettings.targetPath); |
---|
| | } |
---|
| | mkdirRecurse(buildsettings.targetPath); |
---|
| | if( !exists(buildsettings.targetPath) ) |
---|
| | mkdirRecurse(buildsettings.targetPath); |
---|
| | |
---|
| | /* |
---|
| | NOTE: for DMD experimental separate compile/link is used, but this is not yet implemented |
---|
| | on the other compilers. Later this should be integrated somehow in the build process |
---|
| |
---|
| | |