add COdeWarrior back in for testing

This commit is contained in:
Ken Martin 2003-04-16 14:47:44 -04:00
parent 304582d208
commit 99b3152a60
4 changed files with 762 additions and 124 deletions

View File

@ -56,6 +56,15 @@ INCLUDE_DIRECTORIES(${CMake_SOURCE_DIR}/Source)
# let cmake know it is supposed to use it
ADD_DEFINITIONS(-DCMAKE_BUILD_WITH_CMAKE)
IF (APPLE)
SET(SRCS ${SRCS}
cmGlobalCodeWarriorGenerator.cxx
cmLocalCodeWarriorGenerator.cxx
cmGlobalCodeWarriorGenerator.h
cmLocalCodeWarriorGenerator.h
)
ENDIF (APPLE)
IF (WIN32)
IF(NOT UNIX)
SET(SRCS ${SRCS}

File diff suppressed because it is too large Load Diff

View File

@ -70,7 +70,12 @@ private:
const char *ext, const char *comp,
const char *edit, bool precomp,
bool launch, bool res, bool ignored);
private:
// lists the names of the output files of the various targets
std::map<std::string, std::string> m_TargetOutputFiles;
// lists which target first references another target's output
std::map<std::string, std::string> m_TargetReferencingList;
};
#endif

View File

@ -40,6 +40,7 @@
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
#include "cmGlobalCodeWarriorGenerator.h"
#endif
@ -652,6 +653,9 @@ void cmake::GetRegisteredGenerators(std::vector<std::string>& names)
names.push_back(cmGlobalBorlandMakefileGenerator::GetActualName());
names.push_back(cmGlobalNMakeMakefileGenerator::GetActualName());
#else
#ifdef __APPLE__
names.push_back(cmGlobalCodeWarriorGenerator::GetActualName());
#endif
names.push_back(cmGlobalUnixMakefileGenerator::GetActualName());
#endif
}
@ -681,6 +685,13 @@ cmGlobalGenerator* cmake::CreateGlobalGenerator(const char* name)
ret->SetCMakeInstance(this);
}
#else
#ifdef __APPLE__
if (!strcmp(name,cmGlobalCodeWarriorGenerator::GetActualName()))
{
ret = new cmGlobalCodeWarriorGenerator;
ret->SetCMakeInstance(this);
}
#endif
if (!strcmp(name,cmGlobalUnixMakefileGenerator::GetActualName()))
{
ret = new cmGlobalUnixMakefileGenerator;