|
@@ -38,7 +38,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
|
|
=========================================================================*/
|
|
=========================================================================*/
|
|
|
-#include "cmBorlandMakefileGenerator2.h"
|
|
|
|
|
|
|
+#include "cmBorlandMakefileGenerator.h"
|
|
|
#include "cmMakefile.h"
|
|
#include "cmMakefile.h"
|
|
|
#include "cmStandardIncludes.h"
|
|
#include "cmStandardIncludes.h"
|
|
|
#include "cmSystemTools.h"
|
|
#include "cmSystemTools.h"
|
|
@@ -49,18 +49,18 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
#include "windows.h"
|
|
#include "windows.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
-cmBorlandMakefileGenerator2::cmBorlandMakefileGenerator2()
|
|
|
|
|
|
|
+cmBorlandMakefileGenerator::cmBorlandMakefileGenerator()
|
|
|
{
|
|
{
|
|
|
this->SetLibraryPathOption("-L");
|
|
this->SetLibraryPathOption("-L");
|
|
|
this->SetLibraryLinkOption("");
|
|
this->SetLibraryLinkOption("");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-cmBorlandMakefileGenerator2::~cmBorlandMakefileGenerator2()
|
|
|
|
|
|
|
+cmBorlandMakefileGenerator::~cmBorlandMakefileGenerator()
|
|
|
{
|
|
{
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
-void cmBorlandMakefileGenerator2::ComputeSystemInfo()
|
|
|
|
|
|
|
+void cmBorlandMakefileGenerator::ComputeSystemInfo()
|
|
|
{
|
|
{
|
|
|
// now load the settings
|
|
// now load the settings
|
|
|
if(!m_Makefile->GetDefinition("CMAKE_ROOT"))
|
|
if(!m_Makefile->GetDefinition("CMAKE_ROOT"))
|
|
@@ -71,13 +71,13 @@ void cmBorlandMakefileGenerator2::ComputeSystemInfo()
|
|
|
}
|
|
}
|
|
|
std::string fpath =
|
|
std::string fpath =
|
|
|
m_Makefile->GetDefinition("CMAKE_ROOT");
|
|
m_Makefile->GetDefinition("CMAKE_ROOT");
|
|
|
- fpath += "/Templates/CMakeWindowsBorlandConfig2.cmake";
|
|
|
|
|
|
|
+ fpath += "/Templates/CMakeBorlandWindowsSystemConfig.cmake";
|
|
|
m_Makefile->ReadListFile(NULL,fpath.c_str());
|
|
m_Makefile->ReadListFile(NULL,fpath.c_str());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-void cmBorlandMakefileGenerator2::OutputMakeVariables(std::ostream& fout)
|
|
|
|
|
|
|
+void cmBorlandMakefileGenerator::OutputMakeVariables(std::ostream& fout)
|
|
|
{
|
|
{
|
|
|
fout << "# NMake Makefile generated by cmake\n";
|
|
fout << "# NMake Makefile generated by cmake\n";
|
|
|
const char* variables =
|
|
const char* variables =
|
|
@@ -146,7 +146,7 @@ void cmBorlandMakefileGenerator2::OutputMakeVariables(std::ostream& fout)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
-void cmBorlandMakefileGenerator2::BuildInSubDirectory(std::ostream& fout,
|
|
|
|
|
|
|
+void cmBorlandMakefileGenerator::BuildInSubDirectory(std::ostream& fout,
|
|
|
const char* directory,
|
|
const char* directory,
|
|
|
const char* target1,
|
|
const char* target1,
|
|
|
const char* target2)
|
|
const char* target2)
|
|
@@ -176,7 +176,7 @@ void cmBorlandMakefileGenerator2::BuildInSubDirectory(std::ostream& fout,
|
|
|
// This needs to be overriden because nmake requires commands to be quoted
|
|
// This needs to be overriden because nmake requires commands to be quoted
|
|
|
// if the are full paths to the executable????
|
|
// if the are full paths to the executable????
|
|
|
|
|
|
|
|
-void cmBorlandMakefileGenerator2::OutputMakeRule(std::ostream& fout,
|
|
|
|
|
|
|
+void cmBorlandMakefileGenerator::OutputMakeRule(std::ostream& fout,
|
|
|
const char* comment,
|
|
const char* comment,
|
|
|
const char* target,
|
|
const char* target,
|
|
|
const char* depends,
|
|
const char* depends,
|
|
@@ -247,7 +247,7 @@ void cmBorlandMakefileGenerator2::OutputMakeRule(std::ostream& fout,
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
void
|
|
void
|
|
|
-cmBorlandMakefileGenerator2::
|
|
|
|
|
|
|
+cmBorlandMakefileGenerator::
|
|
|
OutputBuildObjectFromSource(std::ostream& fout,
|
|
OutputBuildObjectFromSource(std::ostream& fout,
|
|
|
const char* shortName,
|
|
const char* shortName,
|
|
|
const cmSourceFile& source,
|
|
const cmSourceFile& source,
|
|
@@ -313,7 +313,7 @@ OutputBuildObjectFromSource(std::ostream& fout,
|
|
|
compileCommand.c_str());
|
|
compileCommand.c_str());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void cmBorlandMakefileGenerator2::OutputSharedLibraryRule(std::ostream& fout,
|
|
|
|
|
|
|
+void cmBorlandMakefileGenerator::OutputSharedLibraryRule(std::ostream& fout,
|
|
|
const char* name,
|
|
const char* name,
|
|
|
const cmTarget &t)
|
|
const cmTarget &t)
|
|
|
{
|
|
{
|
|
@@ -362,14 +362,14 @@ void cmBorlandMakefileGenerator2::OutputSharedLibraryRule(std::ostream& fout,
|
|
|
command2.c_str());
|
|
command2.c_str());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void cmBorlandMakefileGenerator2::OutputModuleLibraryRule(std::ostream& fout,
|
|
|
|
|
|
|
+void cmBorlandMakefileGenerator::OutputModuleLibraryRule(std::ostream& fout,
|
|
|
const char* name,
|
|
const char* name,
|
|
|
const cmTarget &target)
|
|
const cmTarget &target)
|
|
|
{
|
|
{
|
|
|
this->OutputSharedLibraryRule(fout, name, target);
|
|
this->OutputSharedLibraryRule(fout, name, target);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void cmBorlandMakefileGenerator2::OutputStaticLibraryRule(std::ostream& fout,
|
|
|
|
|
|
|
+void cmBorlandMakefileGenerator::OutputStaticLibraryRule(std::ostream& fout,
|
|
|
const char* name,
|
|
const char* name,
|
|
|
const cmTarget &)
|
|
const cmTarget &)
|
|
|
{
|
|
{
|
|
@@ -398,7 +398,7 @@ void cmBorlandMakefileGenerator2::OutputStaticLibraryRule(std::ostream& fout,
|
|
|
command.c_str());
|
|
command.c_str());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void cmBorlandMakefileGenerator2::OutputExecutableRule(std::ostream& fout,
|
|
|
|
|
|
|
+void cmBorlandMakefileGenerator::OutputExecutableRule(std::ostream& fout,
|
|
|
const char* name,
|
|
const char* name,
|
|
|
const cmTarget &t)
|
|
const cmTarget &t)
|
|
|
{
|
|
{
|
|
@@ -438,7 +438,7 @@ void cmBorlandMakefileGenerator2::OutputExecutableRule(std::ostream& fout,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-std::string cmBorlandMakefileGenerator2::GetOutputExtension(const char* s)
|
|
|
|
|
|
|
+std::string cmBorlandMakefileGenerator::GetOutputExtension(const char* s)
|
|
|
{
|
|
{
|
|
|
std::string sourceExtension = s;
|
|
std::string sourceExtension = s;
|
|
|
if(sourceExtension == "def")
|
|
if(sourceExtension == "def")
|
|
@@ -458,7 +458,7 @@ std::string cmBorlandMakefileGenerator2::GetOutputExtension(const char* s)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-bool cmBorlandMakefileGenerator2::SamePath(const char* path1, const char* path2)
|
|
|
|
|
|
|
+bool cmBorlandMakefileGenerator::SamePath(const char* path1, const char* path2)
|
|
|
{
|
|
{
|
|
|
// first check to see if they are the same anyway
|
|
// first check to see if they are the same anyway
|
|
|
if (strcmp(path1, path2) == 0)
|
|
if (strcmp(path1, path2) == 0)
|
|
@@ -471,7 +471,7 @@ bool cmBorlandMakefileGenerator2::SamePath(const char* path1, const char* path2)
|
|
|
cmSystemTools::LowerCase(ShortPath(path2));
|
|
cmSystemTools::LowerCase(ShortPath(path2));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void cmBorlandMakefileGenerator2::OutputBuildLibraryInDir(std::ostream& fout,
|
|
|
|
|
|
|
+void cmBorlandMakefileGenerator::OutputBuildLibraryInDir(std::ostream& fout,
|
|
|
const char* path,
|
|
const char* path,
|
|
|
const char* s,
|
|
const char* s,
|
|
|
const char* fullpath)
|
|
const char* fullpath)
|
|
@@ -480,7 +480,7 @@ void cmBorlandMakefileGenerator2::OutputBuildLibraryInDir(std::ostream& fout,
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
-std::string cmBorlandMakefileGenerator2::ConvertToNativePath(const char* s)
|
|
|
|
|
|
|
+std::string cmBorlandMakefileGenerator::ConvertToNativePath(const char* s)
|
|
|
{
|
|
{
|
|
|
std::string ret = s;
|
|
std::string ret = s;
|
|
|
cmSystemTools::ConvertToWindowsSlashes(ret);
|
|
cmSystemTools::ConvertToWindowsSlashes(ret);
|