mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-17 14:16:10 -06:00
48 lines
925 B
Text
48 lines
925 B
Text
template "Win32 DLL project (no U++)" main;
|
|
|
|
option "Multithreaded" mt;
|
|
option "Use SSE2" sse2 = 1;
|
|
|
|
@@<:PACKAGE:>.h
|
|
#ifndef _<:PACKAGE:>_<:PACKAGE:>_h
|
|
#define _<:PACKAGE:>_<:PACKAGE:>_h
|
|
|
|
#define DllImport extern "C" __declspec(dllimport)
|
|
#define DllExport extern "C" __declspec(dllexport)
|
|
|
|
#ifdef flagDLL
|
|
#define DLLIMPORT __declspec(dllexport)
|
|
#else
|
|
#define DLLIMPORT __declspec(dllimport)
|
|
#endif
|
|
|
|
#endif
|
|
@@<:PACKAGE:>.cpp
|
|
#include <windows.h>
|
|
#include "<:PACKAGE:>.h"
|
|
|
|
BOOL APIENTRY DllMain(HANDLE hModule, DWORD reason, LPVOID lpReserved)
|
|
{
|
|
switch (reason) {
|
|
case DLL_PROCESS_ATTACH:
|
|
break;
|
|
case DLL_PROCESS_DETACH:
|
|
break;
|
|
case DLL_THREAD_ATTACH:
|
|
break;
|
|
case DLL_THREAD_DETACH:
|
|
break;
|
|
}
|
|
return TRUE;
|
|
}
|
|
@@<:PACKAGE:>.upp
|
|
library(WIN32) "kernel32 user32 advapi32 shell32 winmm";
|
|
|
|
target "<:PACKAGE:>.dll";
|
|
|
|
file
|
|
<:PACKAGE:>.h,
|
|
<:PACKAGE:>.cpp;
|
|
|
|
mainconfig
|
|
"" = "DLL<:?mt:> MT<:.:><:?sse2:> SSE2<:.:>";
|