Use .def for function exports (#625)

Cherry-picked from primedev

Co-authored-by: F1F7Y <filip.bartos07@proton.me>
This commit is contained in:
Jack 2024-01-03 23:32:20 +00:00 committed by GitHub
parent eda88bd170
commit dcf6e1b1fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -150,8 +150,8 @@ add_library(
"util/wininfo.cpp"
"util/wininfo.h"
"dllmain.cpp"
"dllmain.h"
"ns_version.h"
"Northstar.def"
)
target_link_libraries(

4
primedev/Northstar.def Normal file
View File

@ -0,0 +1,4 @@
LIBRARY dedicated
EXPORTS
InitialiseNorthstar @1

View File

@ -1,4 +1,3 @@
#include "dllmain.h"
#include "logging/logging.h"
#include "logging/crashhandler.h"
#include "core/memalloc.h"

View File

@ -1,3 +0,0 @@
#pragma once
extern "C" __declspec(dllexport) bool InitialiseNorthstar();