Move the three output binaries into a build directory.
This commit is contained in:
parent
4cfb5e1c73
commit
0afc69c733
@ -1,7 +1,7 @@
|
||||
include ../config.mk
|
||||
include ../config-mingw.mk
|
||||
|
||||
PROGRAM = pconsole-agent
|
||||
PROGRAM = ../build/pconsole-agent.exe
|
||||
|
||||
OBJECTS = \
|
||||
EventLoop.o \
|
||||
|
2
build/.placeholder
Normal file
2
build/.placeholder
Normal file
@ -0,0 +1,2 @@
|
||||
This version-controlled file exists so that git creates the otherwise-empty
|
||||
build directory on checkout.
|
@ -1,7 +1,7 @@
|
||||
include ../config.mk
|
||||
include ../config-mingw.mk
|
||||
|
||||
LIBRARY = pconsole.dll
|
||||
LIBRARY = ../build/pconsole.dll
|
||||
OBJECTS = pconsole.o PConsoleDebugClient.o
|
||||
LDFLAGS += -shared -static-libgcc -static-libstdc++
|
||||
|
||||
|
@ -56,15 +56,6 @@ static std::wstring dirname(const std::wstring &path)
|
||||
return path.substr(0, pos);
|
||||
}
|
||||
|
||||
static std::wstring basename(const std::wstring &path)
|
||||
{
|
||||
std::wstring::size_type pos = path.find_last_of(L"\\/");
|
||||
if (pos == std::wstring::npos)
|
||||
return path;
|
||||
else
|
||||
return path.substr(pos + 1);
|
||||
}
|
||||
|
||||
static bool pathExists(const std::wstring &path)
|
||||
{
|
||||
return GetFileAttributes(path.c_str()) != 0xFFFFFFFF;
|
||||
@ -73,21 +64,9 @@ static bool pathExists(const std::wstring &path)
|
||||
static std::wstring findAgentProgram()
|
||||
{
|
||||
std::wstring progDir = dirname(getModuleFileName(getCurrentModule()));
|
||||
if (pathExists(progDir + L"\\"AGENT_EXE)) {
|
||||
return progDir + L"\\"AGENT_EXE;
|
||||
} else {
|
||||
// The development directory structure looks like this:
|
||||
// root/
|
||||
// agent/
|
||||
// pconsole-agent.exe
|
||||
// libpconsole/
|
||||
// pconsole.dll
|
||||
std::wstring agentProgram = dirname(progDir) + L"\\agent\\"AGENT_EXE;
|
||||
if (!pathExists(agentProgram)) {
|
||||
assert(false);
|
||||
}
|
||||
return agentProgram;
|
||||
}
|
||||
std::wstring ret = progDir + L"\\"AGENT_EXE;
|
||||
assert(pathExists(ret));
|
||||
return ret;
|
||||
}
|
||||
|
||||
// Call ConnectNamedPipe and block, even for an overlapped pipe. If the
|
||||
|
@ -1,10 +1,10 @@
|
||||
include ../config.mk
|
||||
include ../config-unix.mk
|
||||
|
||||
PROGRAM = pconsole
|
||||
PROGRAM = ../build/pconsole.exe
|
||||
OBJECTS = main.o Shared.o
|
||||
CXXFLAGS += -I../include
|
||||
LDFLAGS += ../libpconsole/pconsole.dll
|
||||
LDFLAGS += ../build/pconsole.dll
|
||||
|
||||
all : $(PROGRAM)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user