From 5fcc3d857dc0773a7ea40cb27a59d9220a921e98 Mon Sep 17 00:00:00 2001 From: Czarek Nakamoto Date: Sun, 17 Mar 2024 12:58:49 +0100 Subject: add extern --- libbridge/CMakeLists.txt | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'libbridge/CMakeLists.txt') diff --git a/libbridge/CMakeLists.txt b/libbridge/CMakeLists.txt index a227c49..3d87455 100644 --- a/libbridge/CMakeLists.txt +++ b/libbridge/CMakeLists.txt @@ -4,6 +4,18 @@ message(STATUS ABI_INFO = ${HOST_ABI}) set (CMAKE_CXX_STANDARD 11) +if(${HOST_ABI} STREQUAL "x86_64-w64-mingw32") + set(CMAKE_SYSTEM_NAME Windows) + set(CMAKE_LINKER "x86_64-w64-mingw32-ld") + set(TARGET "x86_64-w64-mingw32") + # set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) +elseif(${HOST_ABI} STREQUAL "i686-w64-mingw32") + set(CMAKE_SYSTEM_NAME Windows) + set(CMAKE_LINKER "i686-w64-mingw32-ld") + set(TARGET "i686-w64-mingw32") + # set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) +endif() + add_library( wallet2_api_c SHARED src/main/cpp/helpers.cpp @@ -48,16 +60,6 @@ else() set(BOOST_WTF_PART "") endif() -if(${HOST_ABI} STREQUAL "x86_64-w64-mingw32") - set(CMAKE_SYSTEM_NAME Windows) - set(CMAKE_LINKER "x86_64-w64-mingw32-ld") - set(TARGET "x86_64-w64-mingw32") -elseif(${HOST_ABI} STREQUAL "i686-w64-mingw32") - set(CMAKE_SYSTEM_NAME Windows) - set(CMAKE_LINKER "i686-w64-mingw32-ld") - set(TARGET "i686-w64-mingw32") -endif() - add_library(boost_chrono STATIC IMPORTED) set_target_properties(boost_chrono PROPERTIES IMPORTED_LOCATION -- cgit v1.2.3