windows changes
This commit is contained in:
@@ -15,18 +15,27 @@ extern "C" {
|
||||
#include <dlfcn.h>
|
||||
#endif
|
||||
|
||||
#include <iostream>
|
||||
#include "info_over_me.h"
|
||||
|
||||
void GtkLoader::loadLibraryWin64(const char *lib, void **handle)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
#define DIR "C:\\devel\\yellownotes\\gtk3\\bin"
|
||||
InfoOverMe info;
|
||||
|
||||
//#define DIR "C:\\devel\\yellownotes\\gtk3\\bin"
|
||||
HMODULE dll = nullptr;
|
||||
std::string dir = DIR;
|
||||
std::string my_dir = info.containingFolder();
|
||||
std::string dir = my_dir + "\\gtk3";
|
||||
|
||||
std::cout << "my folder = " << dir << std::endl;
|
||||
|
||||
*handle = nullptr;
|
||||
|
||||
auto mklibname = [](const char *libname) {
|
||||
auto mklibname = [dir](const char *libname) {
|
||||
std::string dll;
|
||||
dll = std::string(DIR) + "\\" + libname + ".dll";
|
||||
dll = std::string(libname) + ".dll";
|
||||
std::cout << "library: " << dll << std::endl;
|
||||
return dll;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user