-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Detours submodule * Create sample projects that perform detours * Copy tracebld sample as a starting point * Cleanup style and modernize code * More style cleanup * Cleanup real functions * Move to sub files * Create event logger to start to cleanup sending events back to parent * Cleanup and start logging more * Cleanup some more logging * Delete Handle functions * Stop sending down the std input handles * Remove open files tracker * Remove file names tracker * Remove proc and evn trackers * Remove logging * So much print stuff * Cleanup naming * Switch to sending event types * Move system libraries into the resolve tools task * Add system and architecture * Add support for x86 builds * Modernize the monitor app * Move to detour folder * Delete out * Cleanup and switch to sync read calls * Switch to path * Fix rundll load issue where the exported function is called.... * Move to shared project and create callback * Add file names * Rename log sample and move to file * Move build runner into a new execute folder * New new names * Start to switch over to new detoured process and cleanup process usage * Switch over to using new detoured process runtime * Update build history to store the entire operation state * Start to track usage * Update relative paths for library references * Fix wrong wrong * fix git toml11 * Add all interresting callbacks to the detours * Read all file api override messages * Finish mapping event listener messages * Implement System access tracker * Hook up real detour monitoring of input/outputs Co-authored-by: Matthew Asplund <[email protected]>
- Loading branch information
Showing
200 changed files
with
14,406 additions
and
1,798 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,6 +89,7 @@ | |
"string_view": "cpp", | ||
"complex": "cpp", | ||
"*.inc": "cpp", | ||
"compare": "cpp" | ||
"compare": "cpp", | ||
"cwctype": "cpp" | ||
} | ||
} |
Submodule Opal
updated
8 files
+3 −0 | Source/Module.cpp | |
+41 −0 | Source/System/IProcess.h | |
+4 −10 | Source/System/IProcessManager.h | |
+114 −0 | Source/System/MockProcess.h | |
+17 −11 | Source/System/MockProcessManager.h | |
+30 −1 | Source/System/SmartHandle.h | |
+258 −0 | Source/System/WindowsProcess.h | |
+10 −154 | Source/System/WindowsProcessManager.h |
Submodule SoupSyntax
updated
2 files
+4 −1 | Source/Parser.Tests/gen/Main.cpp | |
+4 −1 | Source/Syntax.Tests/gen/Main.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ Version = "1.0.0" | |
Dependencies = [ | ||
"[email protected]", | ||
"[email protected]", | ||
"Soup.Build.Extensions@0.3.0", | ||
"Soup.Build.Utilities@0.3.0", | ||
] | ||
Source = [ | ||
|
@@ -63,7 +63,7 @@ namespace SimpleBuildExtension | |
Soup::Build::ApiCallResult Execute( | ||
Soup::Build::IBuildState& buildState) noexcept override final | ||
{ | ||
auto buildStateWrapper = Soup::Build::Extensions::BuildStateWrapper(buildState); | ||
auto buildStateWrapper = Soup::Build::Utilities::BuildStateWrapper(buildState); | ||
try | ||
{ | ||
|
@@ -83,20 +83,20 @@ namespace SimpleBuildExtension | |
/// <summary> | ||
/// The Core Execute task | ||
/// </summary> | ||
void Execute(Soup::Build::Extensions::BuildStateWrapper& buildState) | ||
void Execute(Soup::Build::Utilities::BuildStateWrapper& buildState) | ||
{ | ||
buildState.LogHighPriority("Running After Build!"); | ||
} | ||
private: | ||
static Soup::Build::Extensions::StringList _runBeforeList; | ||
static Soup::Build::Extensions::StringList _runAfterList; | ||
static Soup::Build::Utilities::StringList _runBeforeList; | ||
static Soup::Build::Utilities::StringList _runAfterList; | ||
}; | ||
Soup::Build::Extensions::StringList AfterBuildTask::_runBeforeList = | ||
Soup::Build::Extensions::StringList(); | ||
Soup::Build::Extensions::StringList AfterBuildTask::_runAfterList = | ||
Soup::Build::Extensions::StringList({ | ||
Soup::Build::Utilities::StringList AfterBuildTask::_runBeforeList = | ||
Soup::Build::Utilities::StringList(); | ||
Soup::Build::Utilities::StringList AfterBuildTask::_runAfterList = | ||
Soup::Build::Utilities::StringList({ | ||
"Build", | ||
}); | ||
} | ||
|
@@ -145,7 +145,7 @@ namespace SimpleBuildExtension | |
Soup::Build::ApiCallResult Execute( | ||
Soup::Build::IBuildState& buildState) noexcept override final | ||
{ | ||
auto buildStateWrapper = Soup::Build::Extensions::BuildStateWrapper(buildState); | ||
auto buildStateWrapper = Soup::Build::Utilities::BuildStateWrapper(buildState); | ||
try | ||
{ | ||
|
@@ -165,7 +165,7 @@ namespace SimpleBuildExtension | |
/// <summary> | ||
/// The Core Execute task | ||
/// </summary> | ||
void Execute(Soup::Build::Extensions::BuildStateWrapper& buildState) | ||
void Execute(Soup::Build::Utilities::BuildStateWrapper& buildState) | ||
{ | ||
buildState.LogHighPriority("Running Before Build!"); | ||
auto rootTable = buildState.GetActiveState(); | ||
|
@@ -180,16 +180,16 @@ namespace SimpleBuildExtension | |
} | ||
private: | ||
static Soup::Build::Extensions::StringList _runBeforeList; | ||
static Soup::Build::Extensions::StringList _runAfterList; | ||
static Soup::Build::Utilities::StringList _runBeforeList; | ||
static Soup::Build::Utilities::StringList _runAfterList; | ||
}; | ||
Soup::Build::Extensions::StringList BeforeBuildTask::_runBeforeList = | ||
Soup::Build::Extensions::StringList({ | ||
Soup::Build::Utilities::StringList BeforeBuildTask::_runBeforeList = | ||
Soup::Build::Utilities::StringList({ | ||
"Build", | ||
}); | ||
Soup::Build::Extensions::StringList BeforeBuildTask::_runAfterList = | ||
Soup::Build::Extensions::StringList(); | ||
Soup::Build::Utilities::StringList BeforeBuildTask::_runAfterList = | ||
Soup::Build::Utilities::StringList(); | ||
} | ||
``` | ||
|
||
|
@@ -200,7 +200,7 @@ The Cpp file that implements the predefined `RegisterBuildExtension` C method to | |
import Opal; | ||
import Soup.Build; | ||
import Soup.Build.Extensions; | ||
import Soup.Build.Utilities; | ||
#include "AfterBuildTask.h" | ||
#include "BeforeBuildTask.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ Version = "1.0.0" | |
Dependencies = [ | ||
"[email protected]", | ||
"[email protected]", | ||
"Soup.Build.Extensions@0.3.0", | ||
"Soup.Build.Utilities@0.3.0", | ||
] | ||
|
||
Source = [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@echo off | ||
SET Flavor=%1 | ||
SET ScriptsDir=%~dp0 | ||
SET SourceDir=%ScriptsDir%..\Source | ||
SET ClientCLIDir=%SourceDir%\Client\CLI | ||
SET DetoursDir=%SourceDir%\Monitor\Detours | ||
SET BinaryDirectorPath=out\bin\MSVC\%Flavor%\win32 | ||
SET ClientCLIBinaryDirectory=%ClientCLIDir%\%BinaryDirectorPath% | ||
SET DetoursBinaryDirectory=%DetoursDir%\%BinaryDirectorPath% | ||
REM - Build the host | ||
echo soup build %ClientCLIDir% -flavor %Flavor% | ||
call soup build %ClientCLIDir% -flavor %Flavor% | ||
if %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL% | ||
REM - Build Each version of the detours dll | ||
echo soup build %DetoursDir% -architecture x64 -flavor %Flavor% | ||
call soup build %DetoursDir% -architecture x64 -flavor %Flavor% | ||
if %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL% | ||
echo copy %DetoursBinaryDirectory%\x64\Monitor.Detours.dll %ClientCLIBinaryDirectory%\x64\Monitor.Detours.64.dll | ||
copy %DetoursBinaryDirectory%\x64\Monitor.Detours.dll %ClientCLIBinaryDirectory%\x64\Monitor.Detours.64.dll > nul | ||
echo soup build %DetoursDir% -architecture x86 -flavor %Flavor% | ||
call soup build %DetoursDir% -architecture x86 -flavor %Flavor% | ||
if %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL% | ||
echo copy %DetoursBinaryDirectory%\x86\Monitor.Detours.dll %ClientCLIBinaryDirectory%\x64\Monitor.Detours.32.dll | ||
copy %DetoursBinaryDirectory%\x86\Monitor.Detours.dll %ClientCLIBinaryDirectory%\x64\Monitor.Detours.32.dll > nul |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,95 @@ | ||
@echo off | ||
SET ScriptsDir=%~dp0 | ||
SET SourceDir=%ScriptsDir%..\Source\ | ||
SET SourceDir=%ScriptsDir%..\Source | ||
|
||
pushd %SourceDir%\Build\Extensions.UnitTests\ | ||
echo %SourceDir%\Build\Execute.UnitTests\ | ||
pushd %SourceDir%\Build\Execute.UnitTests\ | ||
if %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL% | ||
call soup build | ||
if %ERRORLEVEL% NEQ 0 ( | ||
popd | ||
exit /B %ERRORLEVEL% | ||
) | ||
call soup run | ||
if %ERRORLEVEL% NEQ 0 ( | ||
echo Failed | ||
popd | ||
exit /B %ERRORLEVEL% | ||
) | ||
popd | ||
|
||
echo %SourceDir%\Build\Utilities.UnitTests\ | ||
pushd %SourceDir%\Build\Utilities.UnitTests\ | ||
if %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL% | ||
call soup build | ||
if %ERRORLEVEL% NEQ 0 ( | ||
popd | ||
exit /B %ERRORLEVEL% | ||
) | ||
call soup run | ||
if %ERRORLEVEL% NEQ 0 ( | ||
popd | ||
exit /B %ERRORLEVEL% | ||
) | ||
popd | ||
|
||
echo %SourceDir%\Extensions\Compiler\Core.UnitTests\ | ||
pushd %SourceDir%\Extensions\Compiler\Core.UnitTests\ | ||
if %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL% | ||
call soup build | ||
if %ERRORLEVEL% NEQ 0 ( | ||
popd | ||
exit /B %ERRORLEVEL% | ||
) | ||
call soup run | ||
if %ERRORLEVEL% NEQ 0 ( | ||
popd | ||
exit /B %ERRORLEVEL% | ||
) | ||
popd | ||
|
||
echo %SourceDir%\Extensions\Compiler\Clang.UnitTests\ | ||
pushd %SourceDir%\Extensions\Compiler\Clang.UnitTests\ | ||
if %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL% | ||
call soup build | ||
if %ERRORLEVEL% NEQ 0 ( | ||
popd | ||
exit /B %ERRORLEVEL% | ||
) | ||
call soup run | ||
if %ERRORLEVEL% NEQ 0 ( | ||
echo Failed | ||
popd | ||
exit /B %ERRORLEVEL% | ||
) | ||
popd | ||
|
||
echo %SourceDir%\Extensions\Compiler\MSVC.UnitTests\ | ||
pushd %SourceDir%\Extensions\Compiler\MSVC.UnitTests\ | ||
if %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL% | ||
call soup build | ||
if %ERRORLEVEL% NEQ 0 ( | ||
popd | ||
exit /B %ERRORLEVEL% | ||
) | ||
call soup run | ||
if %ERRORLEVEL% NEQ 0 ( | ||
popd | ||
exit /B %ERRORLEVEL% | ||
) | ||
popd | ||
|
||
echo %SourceDir%\Client\Core.UnitTests\ | ||
pushd %SourceDir%\Client\Core.UnitTests\ | ||
if %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL% | ||
call soup build | ||
if %ERRORLEVEL% NEQ 0 ( | ||
popd | ||
exit /B %ERRORLEVEL% | ||
) | ||
call soup run | ||
if %ERRORLEVEL% NEQ 0 ( | ||
popd | ||
exit /B %ERRORLEVEL% | ||
) | ||
popd |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Name = "Soup.Build" | ||
Description = """The core Soup Build Contracts used to define | ||
the stable Binary Interface layer between the Build Evaluation | ||
engine and the Extensions.""" | ||
Version = "0.3.0" | ||
Dependencies = [ | ||
"../../../Dependencies/Opal/Source/", | ||
# "[email protected]", | ||
] | ||
|
||
Public = "Module.cpp" |
Oops, something went wrong.