From 1a34834f6a99490c2faed1a8298c89e674a1e6ae Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Thu, 16 Feb 2023 12:33:45 +0100 Subject: [PATCH] rename macOS build dir to follow pEp standard; add 64bit Windows build --- .gitignore | 6 + .../pEpMIME/README.md | 0 .../pEpMIME/pEpMIME.xcodeproj/project.pbxproj | 0 .../contents.xcworkspacedata | 0 .../xcshareddata/IDEWorkspaceChecks.plist | 0 .../xcschemes/libpEpMIME.xcscheme | 0 build-win64/dllmain.cpp | 19 ++ build-win64/framework.h | 5 + build-win64/pEpMIME.vcxproj | 224 ++++++++++++++++++ build-win64/packages.config | 7 + build-win64/pch.cpp | 5 + build-win64/pch.h | 13 + 12 files changed, 279 insertions(+) rename {build_macOS => build-macOS}/pEpMIME/README.md (100%) rename {build_macOS => build-macOS}/pEpMIME/pEpMIME.xcodeproj/project.pbxproj (100%) rename {build_macOS => build-macOS}/pEpMIME/pEpMIME.xcodeproj/project.xcworkspace/contents.xcworkspacedata (100%) rename {build_macOS => build-macOS}/pEpMIME/pEpMIME.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist (100%) rename {build_macOS => build-macOS}/pEpMIME/pEpMIME.xcodeproj/xcshareddata/xcschemes/libpEpMIME.xcscheme (100%) create mode 100644 build-win64/dllmain.cpp create mode 100644 build-win64/framework.h create mode 100644 build-win64/pEpMIME.vcxproj create mode 100644 build-win64/packages.config create mode 100644 build-win64/pch.cpp create mode 100644 build-win64/pch.h diff --git a/.gitignore b/.gitignore index 0be9e08..9ecebdf 100644 --- a/.gitignore +++ b/.gitignore @@ -97,3 +97,9 @@ playground.xcworkspace ### Xcode Patch ### **/xcshareddata/WorkspaceSettings.xcsettings + +# Visual Studio + +*.filters +*.user + diff --git a/build_macOS/pEpMIME/README.md b/build-macOS/pEpMIME/README.md similarity index 100% rename from build_macOS/pEpMIME/README.md rename to build-macOS/pEpMIME/README.md diff --git a/build_macOS/pEpMIME/pEpMIME.xcodeproj/project.pbxproj b/build-macOS/pEpMIME/pEpMIME.xcodeproj/project.pbxproj similarity index 100% rename from build_macOS/pEpMIME/pEpMIME.xcodeproj/project.pbxproj rename to build-macOS/pEpMIME/pEpMIME.xcodeproj/project.pbxproj diff --git a/build_macOS/pEpMIME/pEpMIME.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/build-macOS/pEpMIME/pEpMIME.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from build_macOS/pEpMIME/pEpMIME.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to build-macOS/pEpMIME/pEpMIME.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/build_macOS/pEpMIME/pEpMIME.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/build-macOS/pEpMIME/pEpMIME.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from build_macOS/pEpMIME/pEpMIME.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to build-macOS/pEpMIME/pEpMIME.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/build_macOS/pEpMIME/pEpMIME.xcodeproj/xcshareddata/xcschemes/libpEpMIME.xcscheme b/build-macOS/pEpMIME/pEpMIME.xcodeproj/xcshareddata/xcschemes/libpEpMIME.xcscheme similarity index 100% rename from build_macOS/pEpMIME/pEpMIME.xcodeproj/xcshareddata/xcschemes/libpEpMIME.xcscheme rename to build-macOS/pEpMIME/pEpMIME.xcodeproj/xcshareddata/xcschemes/libpEpMIME.xcscheme diff --git a/build-win64/dllmain.cpp b/build-win64/dllmain.cpp new file mode 100644 index 0000000..ea27c29 --- /dev/null +++ b/build-win64/dllmain.cpp @@ -0,0 +1,19 @@ +// dllmain.cpp : Definiert den Einstiegspunkt für die DLL-Anwendung. +#include "pch.h" + +BOOL APIENTRY DllMain( HMODULE hModule, + DWORD ul_reason_for_call, + LPVOID lpReserved + ) +{ + switch (ul_reason_for_call) + { + case DLL_PROCESS_ATTACH: + case DLL_THREAD_ATTACH: + case DLL_THREAD_DETACH: + case DLL_PROCESS_DETACH: + break; + } + return TRUE; +} + diff --git a/build-win64/framework.h b/build-win64/framework.h new file mode 100644 index 0000000..74870e0 --- /dev/null +++ b/build-win64/framework.h @@ -0,0 +1,5 @@ +#pragma once + +#define WIN32_LEAN_AND_MEAN // Selten verwendete Komponenten aus Windows-Headern ausschließen +// Windows-Headerdateien +#include diff --git a/build-win64/pEpMIME.vcxproj b/build-win64/pEpMIME.vcxproj new file mode 100644 index 0000000..1588ee5 --- /dev/null +++ b/build-win64/pEpMIME.vcxproj @@ -0,0 +1,224 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {27a589c5-5045-4393-959a-d8fbbafab24c} + pEpMIME + 10.0 + + + + DynamicLibrary + true + v143 + Unicode + + + DynamicLibrary + false + v143 + true + Unicode + + + DynamicLibrary + true + v143 + Unicode + + + DynamicLibrary + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;PEPMIME_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + true + Use + pch.h + + + Windows + true + false + + + + + Level3 + true + true + true + WIN32;NDEBUG;PEPMIME_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + true + Use + pch.h + + + Windows + true + true + true + false + + + + + Level3 + true + _DEBUG;PEPMIME_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + true + NotUsing + pch.h + $(ProjectDir)..\..\pEpEngine\include;%(AdditionalIncludeDirectories) + + + Windows + true + false + + + cd $(ProjectDir)..\..\pEpEngine\src && nmake /f NMakefile install_headers + + + + + Level3 + true + true + true + NDEBUG;PEPMIME_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + true + NotUsing + pch.h + $(ProjectDir)..\..\pEpEngine\include;%(AdditionalIncludeDirectories) + + + Windows + true + true + true + false + + + cd $(ProjectDir)..\..\pEpEngine\src && nmake /f NMakefile install_headers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Create + Create + Create + Create + + + + + + + + + + + + + + + Dieses Projekt verweist auf mindestens ein NuGet-Paket, das auf diesem Computer fehlt. Verwenden Sie die Wiederherstellung von NuGet-Paketen, um die fehlenden Dateien herunterzuladen. Weitere Informationen finden Sie unter "http://go.microsoft.com/fwlink/?LinkID=322105". Die fehlende Datei ist "{0}". + + + + + + + \ No newline at end of file diff --git a/build-win64/packages.config b/build-win64/packages.config new file mode 100644 index 0000000..cf3113b --- /dev/null +++ b/build-win64/packages.config @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/build-win64/pch.cpp b/build-win64/pch.cpp new file mode 100644 index 0000000..9d59aa2 --- /dev/null +++ b/build-win64/pch.cpp @@ -0,0 +1,5 @@ +// pch.cpp: Quelldatei, die dem vorkompilierten Header entspricht + +#include "pch.h" + +// Bei der Verwendung vorkompilierter Header ist diese Quelldatei für eine erfolgreiche Kompilierung erforderlich. diff --git a/build-win64/pch.h b/build-win64/pch.h new file mode 100644 index 0000000..67b0e43 --- /dev/null +++ b/build-win64/pch.h @@ -0,0 +1,13 @@ +// pch.h: Dies ist eine vorkompilierte Headerdatei. +// Die unten aufgeführten Dateien werden nur einmal kompiliert, um die Buildleistung für zukünftige Builds zu verbessern. +// Dies wirkt sich auch auf die IntelliSense-Leistung aus, Codevervollständigung und viele Features zum Durchsuchen von Code eingeschlossen. +// Die hier aufgeführten Dateien werden jedoch ALLE neu kompiliert, wenn mindestens eine davon zwischen den Builds aktualisiert wird. +// Fügen Sie hier keine Dateien hinzu, die häufig aktualisiert werden sollen, da sich so der Leistungsvorteil ins Gegenteil verkehrt. + +#ifndef PCH_H +#define PCH_H + +// Fügen Sie hier Header hinzu, die vorkompiliert werden sollen. +#include "framework.h" + +#endif //PCH_H