-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
xyrus02
authored and
Georg Kiehne
committed
Nov 2, 2019
1 parent
d67f133
commit 28a7167
Showing
29 changed files
with
1,538 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,5 @@ | ||
1) Make sure .NET 4 and VC++2010 redist is installed (for MSBuild) - you can just install VC++2010 Express | ||
2) Copy ".c"-files into "todo"-folder | ||
3) Double click "compile.cmd" | ||
4) In case of error, consult the printed log file path | ||
5) Harvest mass compiled plugins from "done"-folder |
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,50 @@ | ||
@ECHO off | ||
|
||
SET todoDir=%~d0%~p0todo | ||
SET doneDir=%~d0%~p0done | ||
SET logDir=%~d0%~p0messages | ||
SET tempDir=%~d0%~p0temp | ||
|
||
SET mkplugin=%~d0%~p0mkplugin.exe | ||
SET msbuild="C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" | ||
|
||
FOR /F %%a IN ('DIR /b "%doneDir%\*.dll"') DO ( | ||
DEL /Q "%doneDir%\%%a" > NUL | ||
) | ||
|
||
MKDIR "%tempDir%" | ||
|
||
FOR /F %%a IN ('DIR /b "%todoDir%\*.c"') DO ( | ||
REM Generate VC++ project | ||
|
||
"%mkplugin%" "%%~na" "%tempDir%\%%~na" > NUL | ||
ATTRIB -H "%tempDir%\%%~na\plugin.h" > NUL | ||
REN "%tempDir%\%%~na\plugin.h" "apoplugin.h" > NUL | ||
COPY /Y "%todoDir%\%%a" "%tempDir%\%%~na\%%~na.cpp" > NUL | ||
|
||
REM Compile "x86" | ||
|
||
%msbuild% /nologo /verbosity:quiet /p:Configuration=Release;Platform=Win32 "%tempDir%\%%~na\%%~na.vcxproj" > "%logDir%\%%~na.x86.log" | ||
IF EXIST "%tempDir%\%%~na\bin\x86\%%~na.dll" ( | ||
COPY /Y "%tempDir%\%%~na\bin\x86\%%~na.dll" "%doneDir%\%%~na.x86.dll" > NUL | ||
ECHO SUCCESS: "%%~na.x86" | ||
DEL /Q "%logDir%\%%~na.x86.log" > NUL | ||
) | ||
IF NOT EXIST "%tempDir%\%%~na\bin\x86\%%~na.dll" ECHO ERROR: "%%~na.x86" - see "%logDir%\%%~na.x86.log" for details! | ||
|
||
REM Compile "x64" | ||
|
||
%msbuild% /nologo /verbosity:quiet /p:Configuration=Release;Platform=x64 "%tempDir%\%%~na\%%~na.vcxproj" > "%logDir%\%%~na.x64.log" | ||
IF EXIST "%tempDir%\%%~na\bin\x64\%%~na.dll" ( | ||
COPY /Y "%tempDir%\%%~na\bin\x64\%%~na.dll" "%doneDir%\%%~na.x64.dll" > NUL | ||
ECHO SUCCESS: "%%~na.x64" | ||
DEL /Q "%logDir%\%%~na.x64.log" > NUL | ||
) | ||
IF NOT EXIST "%tempDir%\%%~na\bin\x64\%%~na.dll" ECHO ERROR: "%%~na.x64" - see "%logDir%\%%~na.x64.log" for details! | ||
|
||
REM Clean up | ||
|
||
RMDIR /S /Q "%tempDir%\%%~na" > NUL | ||
) | ||
|
||
RMDIR /S /Q "%tempDir%" |
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.