Merge pull request #27 from u130b8/master
add build.cmd and make it build from command line
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -44,7 +44,6 @@
|
|||||||
|
|
||||||
# Kernel Module Compile Results
|
# Kernel Module Compile Results
|
||||||
*.mod*
|
*.mod*
|
||||||
*.cmd
|
|
||||||
.tmp_versions/
|
.tmp_versions/
|
||||||
modules.order
|
modules.order
|
||||||
Module.symvers
|
Module.symvers
|
||||||
@@ -52,9 +51,10 @@ Mkfile.old
|
|||||||
dkms.conf
|
dkms.conf
|
||||||
/.vs/Program-Manager-II
|
/.vs/Program-Manager-II
|
||||||
/planning
|
/planning
|
||||||
/progmgr/RCa10968
|
/progmgr/RCa*
|
||||||
/progmgr/icons/Thumbs.db
|
/progmgr/icons/Thumbs.db
|
||||||
/bin/
|
/bin/
|
||||||
/misc/supermiumman.png
|
/misc/supermiumman.png
|
||||||
/bin.7z
|
/bin.7z
|
||||||
*.zip
|
*.zip
|
||||||
|
*.res
|
||||||
33
build.cmd
Normal file
33
build.cmd
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
set DEFS=/DUNICODE
|
||||||
|
set DIR_ROOT=%~dp0.
|
||||||
|
set DIR_PROGMGR=%DIR_ROOT%\progmgr
|
||||||
|
set DIR_RELEASE=%DIR_ROOT%\release
|
||||||
|
|
||||||
|
rmdir /S /Q "%DIR_RELEASE%" > nul 2>&1
|
||||||
|
if not exist "%DIR_RELEASE%" mkdir "%DIR_RELEASE%"
|
||||||
|
|
||||||
|
if "%1" == "debug" (
|
||||||
|
rem NOTE: This currently doesn't link properly
|
||||||
|
set CL=/MT /Od /Zi /RTC1 /Fdprogmgr.pdb /fsanitize=address %DEFS%
|
||||||
|
set LINK=/DEBUG msvcrt.lib vcruntime.lib ucrtd.lib
|
||||||
|
) else (
|
||||||
|
set CL=/O1 /DNDEBUG /GS- %DEFS%
|
||||||
|
set LINK=/OPT:REF /OPT:ICF
|
||||||
|
)
|
||||||
|
|
||||||
|
pushd "%DIR_RELEASE%"
|
||||||
|
rc /nologo /i "%DIR_PROGMGR%" "%DIR_PROGMGR%\lang\dlg_en-US.rc"
|
||||||
|
rc /nologo /i "%DIR_PROGMGR%" "%DIR_PROGMGR%\lang\res_en-US.rc"
|
||||||
|
rc /nologo /i "%DIR_PROGMGR%" "%DIR_PROGMGR%\resource.rc"
|
||||||
|
cl /nologo /W3 /WX /MP /Feprogmgr.exe ^
|
||||||
|
"%DIR_PROGMGR%\*.c" ^
|
||||||
|
"%DIR_PROGMGR%\resource.res" ^
|
||||||
|
"%DIR_PROGMGR%\lang\dlg_en-US.res" ^
|
||||||
|
"%DIR_PROGMGR%\lang\res_en-US.res" ^
|
||||||
|
/link /NODEFAULTLIB /INCREMENTAL:NO /SUBSYSTEM:WINDOWS /FIXED /merge:_RDATA=.rdata ^
|
||||||
|
/MANIFEST:EMBED /MANIFESTINPUT:%DIR_PROGMGR%\progmgr.exe.manifest ^
|
||||||
|
kernel32.lib user32.lib gdi32.lib advapi32.lib shell32.lib ^
|
||||||
|
secur32.lib comdlg32.lib pathcch.lib shlwapi.lib
|
||||||
|
popd
|
||||||
@@ -84,6 +84,8 @@ BOOL InitializeGroups()
|
|||||||
Pointer to a group window structure
|
Pointer to a group window structure
|
||||||
or NULL on failure
|
or NULL on failure
|
||||||
\* * * */
|
\* * * */
|
||||||
|
#pragma warning(push)
|
||||||
|
#pragma warning(disable: 4172)
|
||||||
PGROUPWND CreateGroupWindow(PGROUP pgGroup)
|
PGROUPWND CreateGroupWindow(PGROUP pgGroup)
|
||||||
{
|
{
|
||||||
GROUPWND gw = { NULL };
|
GROUPWND gw = { NULL };
|
||||||
@@ -144,6 +146,7 @@ PGROUPWND CreateGroupWindow(PGROUP pgGroup)
|
|||||||
|
|
||||||
return &gw;
|
return &gw;
|
||||||
}
|
}
|
||||||
|
#pragma warning(pop)
|
||||||
|
|
||||||
/* * * *\
|
/* * * *\
|
||||||
SetGroupFlags -
|
SetGroupFlags -
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -165,3 +165,20 @@ int WINAPI wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance,
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma function(memset)
|
||||||
|
void *memset(char* dst, int value, size_t count) {
|
||||||
|
while (count--) { *dst++ = value; }
|
||||||
|
return dst;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pragma function(memcpy)
|
||||||
|
void *memcpy(char *dst, const char *src, size_t count) {
|
||||||
|
while (count--) { *dst++ = *src++; }
|
||||||
|
return dst;
|
||||||
|
}
|
||||||
|
|
||||||
|
void __stdcall wWinMainCRTStartup() {
|
||||||
|
int code = wWinMain(GetModuleHandle(0), 0, 0, 0);
|
||||||
|
ExitProcess(code);
|
||||||
|
}
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
/* Necessary Evil */
|
/* Necessary Evil */
|
||||||
#define APSTUDIO_HIDDEN_SYMBOLS
|
#define APSTUDIO_HIDDEN_SYMBOLS
|
||||||
#include <afxres.h>
|
#include <windows.h>
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
#undef APSTUDIO_HIDDEN_SYMBOLS
|
#undef APSTUDIO_HIDDEN_SYMBOLS
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user