ENH: change MFC gui to use cmake class
This commit is contained in:
parent
dbf65f216f
commit
4179c991f4
@ -85,6 +85,10 @@ LIB32=link.exe -lib
|
|||||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\cmake.cxx
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\cmCableClassSet.cxx
|
SOURCE=.\cmCableClassSet.cxx
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
@ -70,8 +70,8 @@ LINK32=link.exe
|
|||||||
# PROP Ignore_Export_Lib 0
|
# PROP Ignore_Export_Lib 0
|
||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
# ADD BASE CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /Yu"stdafx.h" /FD /GZ /c
|
# ADD BASE CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /Yu"stdafx.h" /FD /GZ /c
|
||||||
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /FD /GZ /c
|
# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /FD /GZ /c
|
||||||
# SUBTRACT CPP /YX /Yc /Yu
|
# SUBTRACT CPP /O<none> /YX /Yc /Yu
|
||||||
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||||
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||||
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "_AFXDLL"
|
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "_AFXDLL"
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
#include "../cmMSProjectGenerator.h"
|
#include "../cmMSProjectGenerator.h"
|
||||||
#include "../cmCacheManager.h"
|
#include "../cmCacheManager.h"
|
||||||
#include "../cmMakefile.h"
|
#include "../cmMakefile.h"
|
||||||
|
#include "../cmake.h"
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define new DEBUG_NEW
|
#define new DEBUG_NEW
|
||||||
#undef THIS_FILE
|
#undef THIS_FILE
|
||||||
@ -75,6 +76,13 @@ CMakeSetupDialog::CMakeSetupDialog(CWnd* pParent /*=NULL*/)
|
|||||||
// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
|
// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
|
||||||
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
|
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
|
||||||
m_BuildPathChanged = false;
|
m_BuildPathChanged = false;
|
||||||
|
// Find the path to the cmake.exe executable
|
||||||
|
char fname[1024];
|
||||||
|
::GetModuleFileName(NULL,fname,1023);
|
||||||
|
// extract just the path part
|
||||||
|
m_PathToExecutable = cmSystemTools::GetProgramPath(fname).c_str();
|
||||||
|
// add the cmake.exe to the path
|
||||||
|
m_PathToExecutable += "/cmake.exe";
|
||||||
}
|
}
|
||||||
|
|
||||||
void CMakeSetupDialog::DoDataExchange(CDataExchange* pDX)
|
void CMakeSetupDialog::DoDataExchange(CDataExchange* pDX)
|
||||||
@ -412,8 +420,9 @@ void CMakeSetupDialog::OnBuildProjects()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// set the wait cursor
|
||||||
::SetCursor(LoadCursor(NULL, IDC_WAIT));
|
::SetCursor(LoadCursor(NULL, IDC_WAIT));
|
||||||
// get all the info from the screen
|
// get all the info from the dialog
|
||||||
this->UpdateData();
|
this->UpdateData();
|
||||||
if(!m_BuildPathChanged)
|
if(!m_BuildPathChanged)
|
||||||
{
|
{
|
||||||
@ -423,34 +432,32 @@ void CMakeSetupDialog::OnBuildProjects()
|
|||||||
}
|
}
|
||||||
// Make sure we are working from the cache on disk
|
// Make sure we are working from the cache on disk
|
||||||
this->LoadCacheFromDiskToGUI();
|
this->LoadCacheFromDiskToGUI();
|
||||||
|
// create a cmake object
|
||||||
// duh
|
cmake make;
|
||||||
// Create a makefile object
|
// create the arguments for the cmake object
|
||||||
cmMakefile makefile;
|
std::vector<std::string> args;
|
||||||
makefile.SetMakefileGenerator(new cmMSProjectGenerator);
|
args.push_back((const char*)m_PathToExecutable);
|
||||||
makefile.GetMakefileGenerator()->ComputeSystemInfo();
|
std::string arg;
|
||||||
makefile.SetHomeDirectory(m_WhereSource);
|
arg = "-H";
|
||||||
makefile.SetStartOutputDirectory(m_WhereBuild);
|
arg += m_WhereSource;
|
||||||
makefile.SetHomeOutputDirectory(m_WhereBuild);
|
args.push_back(arg);
|
||||||
makefile.SetStartDirectory(m_WhereSource);
|
arg = "-B";
|
||||||
makefile.MakeStartDirectoriesCurrent();
|
arg += m_WhereBuild;
|
||||||
CString makefileIn = m_WhereSource;
|
args.push_back(arg);
|
||||||
makefileIn += "/CMakeLists.txt";
|
// run the generate process
|
||||||
makefile.ReadListFile(makefileIn);
|
if(make.Generate(args) != 0)
|
||||||
// Generate the project files
|
{
|
||||||
makefile.GenerateMakefile();
|
cmSystemTools::Error(
|
||||||
// Save the cache
|
"Error in generation process, project files may be invalid");
|
||||||
cmCacheManager::GetInstance()->SaveCache(&makefile);
|
}
|
||||||
// end duh
|
|
||||||
|
|
||||||
// update the GUI with any new values in the caused by the
|
// update the GUI with any new values in the caused by the
|
||||||
// generation process
|
// generation process
|
||||||
this->LoadCacheFromDiskToGUI();
|
this->LoadCacheFromDiskToGUI();
|
||||||
cmCacheManager::GetInstance()->DefineCache(&makefile);
|
|
||||||
// save source and build paths to registry
|
// save source and build paths to registry
|
||||||
this->SaveToRegistry();
|
this->SaveToRegistry();
|
||||||
// path is not up-to-date
|
// path is up-to-date now
|
||||||
m_BuildPathChanged = false;
|
m_BuildPathChanged = false;
|
||||||
|
// put the cursor back
|
||||||
::SetCursor(LoadCursor(NULL, IDC_ARROW));
|
::SetCursor(LoadCursor(NULL, IDC_ARROW));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -460,7 +467,8 @@ void CMakeSetupDialog::OnBuildProjects()
|
|||||||
// callback for combo box menu where build selection
|
// callback for combo box menu where build selection
|
||||||
void CMakeSetupDialog::OnSelendokWhereBuild()
|
void CMakeSetupDialog::OnSelendokWhereBuild()
|
||||||
{
|
{
|
||||||
m_WhereBuildControl.GetLBText(m_WhereBuildControl.GetCurSel(), m_WhereBuild);
|
m_WhereBuildControl.GetLBText(m_WhereBuildControl.GetCurSel(),
|
||||||
|
m_WhereBuild);
|
||||||
this->UpdateData(FALSE);
|
this->UpdateData(FALSE);
|
||||||
this->OnChangeWhereBuild();
|
this->OnChangeWhereBuild();
|
||||||
}
|
}
|
||||||
@ -468,7 +476,8 @@ void CMakeSetupDialog::OnSelendokWhereBuild()
|
|||||||
// callback for combo box menu where source selection
|
// callback for combo box menu where source selection
|
||||||
void CMakeSetupDialog::OnSelendokWhereSource()
|
void CMakeSetupDialog::OnSelendokWhereSource()
|
||||||
{
|
{
|
||||||
m_WhereSourceControl.GetLBText(m_WhereSourceControl.GetCurSel(), m_WhereSource);
|
m_WhereSourceControl.GetLBText(m_WhereSourceControl.GetCurSel(),
|
||||||
|
m_WhereSource);
|
||||||
this->UpdateData(FALSE);
|
this->UpdateData(FALSE);
|
||||||
this->OnChangeWhereSource();
|
this->OnChangeWhereSource();
|
||||||
}
|
}
|
||||||
@ -557,7 +566,8 @@ void CMakeSetupDialog::FillCacheManagerFromCacheGUI()
|
|||||||
{
|
{
|
||||||
CPropertyItem* item = *i;
|
CPropertyItem* item = *i;
|
||||||
cmCacheManager::CacheEntry *entry =
|
cmCacheManager::CacheEntry *entry =
|
||||||
cmCacheManager::GetInstance()->GetCacheEntry((const char*)item->m_propName);
|
cmCacheManager::GetInstance()->GetCacheEntry(
|
||||||
|
(const char*)item->m_propName);
|
||||||
if (entry)
|
if (entry)
|
||||||
{
|
{
|
||||||
entry->m_Value = item->m_curValue;
|
entry->m_Value = item->m_curValue;
|
||||||
@ -573,27 +583,6 @@ void CMakeSetupDialog::LoadCacheFromDiskToGUI()
|
|||||||
if(m_WhereBuild != "")
|
if(m_WhereBuild != "")
|
||||||
{
|
{
|
||||||
cmCacheManager::GetInstance()->LoadCache(m_WhereBuild);
|
cmCacheManager::GetInstance()->LoadCache(m_WhereBuild);
|
||||||
|
|
||||||
// Find our own exectuable.
|
|
||||||
char fname[1024];
|
|
||||||
::GetModuleFileName(NULL,fname,1023);
|
|
||||||
std::string root = cmSystemTools::GetProgramPath(fname);
|
|
||||||
std::string::size_type slashPos = root.rfind("/");
|
|
||||||
if(slashPos != std::string::npos)
|
|
||||||
{
|
|
||||||
root = root.substr(0, slashPos);
|
|
||||||
}
|
|
||||||
cmCacheManager::GetInstance()->AddCacheEntry
|
|
||||||
("CMAKE_ROOT", root.c_str(),
|
|
||||||
"Path to CMake installation.", cmCacheManager::INTERNAL);
|
|
||||||
std::string cMakeCMD = "\""+cmSystemTools::GetProgramPath(fname);
|
|
||||||
cMakeCMD += "/cmake.exe\"";
|
|
||||||
|
|
||||||
// Save the value in the cache
|
|
||||||
cmCacheManager::GetInstance()->AddCacheEntry("CMAKE_COMMAND",
|
|
||||||
cMakeCMD.c_str(),
|
|
||||||
"Path to CMake executable.",
|
|
||||||
cmCacheManager::INTERNAL);
|
|
||||||
this->FillCacheGUIFromCacheManager();
|
this->FillCacheGUIFromCacheManager();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -58,6 +58,7 @@ protected:
|
|||||||
|
|
||||||
HICON m_hIcon;
|
HICON m_hIcon;
|
||||||
CString m_RegistryKey;
|
CString m_RegistryKey;
|
||||||
|
CString m_PathToExecutable;
|
||||||
// Generated message map functions
|
// Generated message map functions
|
||||||
//{{AFX_MSG(CMakeSetupDialog)
|
//{{AFX_MSG(CMakeSetupDialog)
|
||||||
virtual BOOL OnInitDialog();
|
virtual BOOL OnInitDialog();
|
||||||
|
@ -15,6 +15,7 @@ all: cmake
|
|||||||
|
|
||||||
OBJS = \
|
OBJS = \
|
||||||
cmake.o \
|
cmake.o \
|
||||||
|
cmakemain.o \
|
||||||
cmMakeDepend.o \
|
cmMakeDepend.o \
|
||||||
cmMakefile.o \
|
cmMakefile.o \
|
||||||
cmMakefileGenerator.o \
|
cmMakefileGenerator.o \
|
||||||
@ -34,6 +35,7 @@ DEPENDS = $(srcdir)/*.h cmConfigure.h
|
|||||||
|
|
||||||
cmCollectFlags.o : $(DEPENDS)
|
cmCollectFlags.o : $(DEPENDS)
|
||||||
cmake.o : $(DEPENDS)
|
cmake.o : $(DEPENDS)
|
||||||
|
cmakemain.o : $(DEPENDS)
|
||||||
cmMakeDepend.o : $(DEPENDS)
|
cmMakeDepend.o : $(DEPENDS)
|
||||||
cmMakefile.o : $(DEPENDS)
|
cmMakefile.o : $(DEPENDS)
|
||||||
cmMakefileGenerator.o : $(DEPENDS)
|
cmMakefileGenerator.o : $(DEPENDS)
|
||||||
@ -50,7 +52,6 @@ cmCableClassSet.o: $(DEPENDS)
|
|||||||
cmSourceGroup.o : $(DEPENDS)
|
cmSourceGroup.o : $(DEPENDS)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cmake: ${OBJS}
|
cmake: ${OBJS}
|
||||||
${CXX} ${OBJS} ${CXXFLAGS} -o cmake
|
${CXX} ${OBJS} ${CXXFLAGS} -o cmake
|
||||||
|
|
||||||
|
@ -78,6 +78,12 @@ void cmMSProjectGenerator::SetLocal(bool local)
|
|||||||
void cmMSProjectGenerator::ComputeSystemInfo()
|
void cmMSProjectGenerator::ComputeSystemInfo()
|
||||||
{
|
{
|
||||||
// now load the settings
|
// now load the settings
|
||||||
|
if(!cmCacheManager::GetInstance()->GetCacheValue("CMAKE_ROOT"))
|
||||||
|
{
|
||||||
|
cmSystemTools::Error(
|
||||||
|
"CMAKE_ROOT has not been defined, bad GUI or driver program");
|
||||||
|
return;
|
||||||
|
}
|
||||||
std::string fpath =
|
std::string fpath =
|
||||||
cmCacheManager::GetInstance()->GetCacheValue("CMAKE_ROOT");
|
cmCacheManager::GetInstance()->GetCacheValue("CMAKE_ROOT");
|
||||||
fpath += "/Templates/CMakeWindowsSystemConfig.cmake";
|
fpath += "/Templates/CMakeWindowsSystemConfig.cmake";
|
||||||
|
@ -48,17 +48,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include "cmUnixMakefileGenerator.h"
|
#include "cmUnixMakefileGenerator.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int main(int ac, char** av)
|
|
||||||
{
|
|
||||||
cmake foo;
|
|
||||||
if(ac < 2)
|
|
||||||
{
|
|
||||||
foo.Usage(av[0]);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
return foo.Generate(ac,av);
|
|
||||||
}
|
|
||||||
|
|
||||||
void cmake::Usage(const char* program)
|
void cmake::Usage(const char* program)
|
||||||
{
|
{
|
||||||
std::cerr << "cmake version " << cmMakefile::GetVersion() << "\n";
|
std::cerr << "cmake version " << cmMakefile::GetVersion() << "\n";
|
||||||
@ -67,23 +56,23 @@ void cmake::Usage(const char* program)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Parse the args
|
// Parse the args
|
||||||
void cmake::SetArgs(cmMakefile& builder, int ac, char** av)
|
void cmake::SetArgs(cmMakefile& builder, const std::vector<std::string>& args)
|
||||||
{
|
{
|
||||||
m_Local = false;
|
m_Local = false;
|
||||||
|
|
||||||
// watch for cmake and cmake srcdir invocations
|
// watch for cmake and cmake srcdir invocations
|
||||||
if (ac <= 2)
|
if (args.size() <= 2)
|
||||||
{
|
{
|
||||||
builder.SetHomeOutputDirectory
|
builder.SetHomeOutputDirectory
|
||||||
(cmSystemTools::GetCurrentWorkingDirectory().c_str());
|
(cmSystemTools::GetCurrentWorkingDirectory().c_str());
|
||||||
builder.SetStartOutputDirectory
|
builder.SetStartOutputDirectory
|
||||||
(cmSystemTools::GetCurrentWorkingDirectory().c_str());
|
(cmSystemTools::GetCurrentWorkingDirectory().c_str());
|
||||||
if (ac == 2)
|
if (args.size() == 2)
|
||||||
{
|
{
|
||||||
builder.SetHomeDirectory
|
builder.SetHomeDirectory
|
||||||
(cmSystemTools::CollapseFullPath(av[1]).c_str());
|
(cmSystemTools::CollapseFullPath(args[1].c_str()).c_str());
|
||||||
builder.SetStartDirectory
|
builder.SetStartDirectory
|
||||||
(cmSystemTools::CollapseFullPath(av[1]).c_str());
|
(cmSystemTools::CollapseFullPath(args[1].c_str()).c_str());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -94,9 +83,9 @@ void cmake::SetArgs(cmMakefile& builder, int ac, char** av)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for(int i =1; i < ac; i++)
|
for(int i =1; i < args.size(); i++)
|
||||||
{
|
{
|
||||||
std::string arg = av[i];
|
std::string arg = args[i];
|
||||||
if(arg.find("-H",0) != std::string::npos)
|
if(arg.find("-H",0) != std::string::npos)
|
||||||
{
|
{
|
||||||
std::string path = arg.substr(2);
|
std::string path = arg.substr(2);
|
||||||
@ -137,10 +126,10 @@ void cmake::SetArgs(cmMakefile& builder, int ac, char** av)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// at the end of this CMAKE_ROOT and CMAAKE_COMMAND should be added to the cache
|
// at the end of this CMAKE_ROOT and CMAAKE_COMMAND should be added to the cache
|
||||||
void cmake::AddCMakePaths(char **av)
|
void cmake::AddCMakePaths(const std::vector<std::string>& args)
|
||||||
{
|
{
|
||||||
// Find our own exectuable.
|
// Find our own exectuable.
|
||||||
std::string cMakeSelf = av[0];
|
std::string cMakeSelf = args[0];
|
||||||
cmSystemTools::ConvertToUnixSlashes(cMakeSelf);
|
cmSystemTools::ConvertToUnixSlashes(cMakeSelf);
|
||||||
cMakeSelf = cmSystemTools::FindProgram(cMakeSelf.c_str());
|
cMakeSelf = cmSystemTools::FindProgram(cMakeSelf.c_str());
|
||||||
|
|
||||||
@ -198,13 +187,13 @@ void cmake::AddCMakePaths(char **av)
|
|||||||
"Path to CMake installation.", cmCacheManager::INTERNAL);
|
"Path to CMake installation.", cmCacheManager::INTERNAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
int cmake::Generate(int ac, char **av)
|
int cmake::Generate(const std::vector<std::string>& args)
|
||||||
{
|
{
|
||||||
// Create a makefile
|
// Create a makefile
|
||||||
cmMakefile mf;
|
cmMakefile mf;
|
||||||
|
|
||||||
// extract the directory arguments
|
// extract the directory arguments
|
||||||
cmake::SetArgs(mf, ac, av);
|
cmake::SetArgs(mf, args);
|
||||||
|
|
||||||
// create the generator
|
// create the generator
|
||||||
#if defined(_WIN32) && !defined(__CYGWIN__)
|
#if defined(_WIN32) && !defined(__CYGWIN__)
|
||||||
@ -221,7 +210,7 @@ int cmake::Generate(int ac, char **av)
|
|||||||
cmCacheManager::GetInstance()->LoadCache(&mf);
|
cmCacheManager::GetInstance()->LoadCache(&mf);
|
||||||
|
|
||||||
// setup CMAKE_ROOT and CMAKE_COMMAND
|
// setup CMAKE_ROOT and CMAKE_COMMAND
|
||||||
this->AddCMakePaths(av);
|
this->AddCMakePaths(args);
|
||||||
|
|
||||||
// compute system info
|
// compute system info
|
||||||
gen->ComputeSystemInfo();
|
gen->ComputeSystemInfo();
|
||||||
@ -233,7 +222,7 @@ int cmake::Generate(int ac, char **av)
|
|||||||
lf += "/CMakeLists.txt";
|
lf += "/CMakeLists.txt";
|
||||||
if(!mf.ReadListFile(lf.c_str()))
|
if(!mf.ReadListFile(lf.c_str()))
|
||||||
{
|
{
|
||||||
this->Usage(av[0]);
|
this->Usage(args[0].c_str());
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
mf.GenerateMakefile();
|
mf.GenerateMakefile();
|
||||||
|
@ -50,6 +50,7 @@ BSC32=bscmake.exe
|
|||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /pdb:"cmake.pdb" /machine:I386 /out:"cmake.exe"
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /pdb:"cmake.pdb" /machine:I386 /out:"cmake.exe"
|
||||||
|
# SUBTRACT LINK32 /pdb:none
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "cmake - Win32 Debug"
|
!ELSEIF "$(CFG)" == "cmake - Win32 Debug"
|
||||||
|
|
||||||
@ -74,6 +75,7 @@ BSC32=bscmake.exe
|
|||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /pdb:"cmake.pdb" /debug /machine:I386 /out:"cmake.exe" /pdbtype:sept
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /pdb:"cmake.pdb" /debug /machine:I386 /out:"cmake.exe" /pdbtype:sept
|
||||||
|
# SUBTRACT LINK32 /pdb:none
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
@ -86,7 +88,7 @@ LINK32=link.exe
|
|||||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\cmake.cxx
|
SOURCE=.\cmakemain.cxx
|
||||||
# End Source File
|
# End Source File
|
||||||
# End Group
|
# End Group
|
||||||
# Begin Group "Header Files"
|
# Begin Group "Header Files"
|
||||||
|
@ -55,20 +55,24 @@ class cmake
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Generate the SourceFilesList from the SourceLists. This should only be
|
* Generate the SourceFilesList from the SourceLists. This should only be
|
||||||
* done once to be safe.
|
* done once to be safe. The argument is a list of command line
|
||||||
|
* arguments. The first argument should be the name or full path
|
||||||
|
* to the command line version of cmake. For building a GUI,
|
||||||
|
* you would pass in the following arguments:
|
||||||
|
* /path/to/cmake -H/path/to/source -B/path/to/build
|
||||||
*/
|
*/
|
||||||
int Generate(int ac, char **av);
|
int Generate(const std::vector<std::string>&);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generate the SourceFilesList from the SourceLists. This should only be
|
* Generate the SourceFilesList from the SourceLists. This should only be
|
||||||
* done once to be safe.
|
* done once to be safe.
|
||||||
*/
|
*/
|
||||||
void SetArgs(cmMakefile& builder, int ac, char** av);
|
void SetArgs(cmMakefile& builder, const std::vector<std::string>&);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generate CMAKE_ROOT and CMAKE_COMMAND cache entries
|
* Generate CMAKE_ROOT and CMAKE_COMMAND cache entries
|
||||||
*/
|
*/
|
||||||
void AddCMakePaths(char **av);
|
void AddCMakePaths(const std::vector<std::string>&);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* constructor
|
* constructor
|
||||||
|
Loading…
x
Reference in New Issue
Block a user