summaryrefslogtreecommitdiff
path: root/libbridge/CMakeLists.txt
diff options
context:
space:
mode:
authorCzarek Nakamoto <cyjan@mrcyjanek.net>2024-03-17 12:58:49 +0100
committerCzarek Nakamoto <cyjan@mrcyjanek.net>2024-03-17 12:58:49 +0100
commit5fcc3d857dc0773a7ea40cb27a59d9220a921e98 (patch)
tree52914465529a0c8208f6311cda21d16bce55fc4c /libbridge/CMakeLists.txt
parent4cf4dafe2ca683233472989c58879a7b0bc2418d (diff)
add extern
Diffstat (limited to 'libbridge/CMakeLists.txt')
-rw-r--r--libbridge/CMakeLists.txt22
1 files changed, 12 insertions, 10 deletions
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