From 931f09504d1f1901b060c72c1a0c87a00658d42f Mon Sep 17 00:00:00 2001 From: LAGonauta Date: Fri, 20 Nov 2020 08:58:53 -0300 Subject: [PATCH] Added 32-bit wintoast linker library --- plugins/windows-notification/CMakeLists.txt | 9 ++++++++- ...WinToastLib.lib => DinoWinToastLib_AMD64.lib} | Bin .../src/DinoWinToastLib_x86.lib | Bin 0 -> 2198 bytes 3 files changed, 8 insertions(+), 1 deletion(-) rename plugins/windows-notification/src/{DinoWinToastLib.lib => DinoWinToastLib_AMD64.lib} (100%) create mode 100644 plugins/windows-notification/src/DinoWinToastLib_x86.lib diff --git a/plugins/windows-notification/CMakeLists.txt b/plugins/windows-notification/CMakeLists.txt index ee2115c1..acaa36f0 100644 --- a/plugins/windows-notification/CMakeLists.txt +++ b/plugins/windows-notification/CMakeLists.txt @@ -31,7 +31,14 @@ COMMENT add_definitions(${VALA_CFLAGS}) add_library(windows-notification SHARED ${WINDOWS_NOTIFICATION_VALA_C} ${CMAKE_BINARY_DIR}/exports/DinoWinToastLib.h) -target_link_libraries(windows-notification libdino ${WINDOWS_NOTIFICATION_PACKAGES} "${CMAKE_CURRENT_SOURCE_DIR}/src/DinoWinToastLib.lib") + +if(CMAKE_SIZEOF_VOID_P EQUAL 8) + set(WINTOASTLIB "${CMAKE_CURRENT_SOURCE_DIR}/src/DinoWinToastLib_AMD64.lib") +elseif(CMAKE_SIZEOF_VOID_P EQUAL 4) + set(WINTOASTLIB "${CMAKE_CURRENT_SOURCE_DIR}/src/DinoWinToastLib_x86.lib") +endif() + +target_link_libraries(windows-notification libdino ${WINDOWS_NOTIFICATION_PACKAGES} ${WINTOASTLIB}) set_target_properties(windows-notification PROPERTIES PREFIX "") set_target_properties(windows-notification PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins/) diff --git a/plugins/windows-notification/src/DinoWinToastLib.lib b/plugins/windows-notification/src/DinoWinToastLib_AMD64.lib similarity index 100% rename from plugins/windows-notification/src/DinoWinToastLib.lib rename to plugins/windows-notification/src/DinoWinToastLib_AMD64.lib diff --git a/plugins/windows-notification/src/DinoWinToastLib_x86.lib b/plugins/windows-notification/src/DinoWinToastLib_x86.lib new file mode 100644 index 0000000000000000000000000000000000000000..27e6a12a3ef22250ebcee14a62a41e8b3743abcd GIT binary patch literal 2198 zcmcIlPiqrF6#wleZDOz`w9-S1utLT5U=q`8&?1s(1VcAzNm4v+^Ur3X&9+UX;KeT> z_yvOBz)Md(R`B9Y1P_A!0R09YD)qhHon(`)Nki$dJ2UUin|W`3^LsP*o|X@)jc1{# z(qA4v>X(HSb2{;rq|@690SEx{5#T=uCRc&roc#wnG}O`cY;I${P|`Cmi!TbaA9J zyN;n_p0l$}qkUv!HLiA^=%S) zA}>H`Y4yTXGX(?i@P<^?+})$tkM||%;zGFPnOrzn83KY7V1?fh8f&xc&nGkqwjl+& zHfm49`X#QM!m9&mN8(0Ch3adi!AN3;#${4mee7bAj4Acwk1tlR9I`i)YSvJ%axrN| zXqh3Oh2XTzq#I?(RnGe^1@qsFd2IBaBwXnE(E0xE&nY>u58oTTA$h0@z?h<(hwkFa z!-UYY-7g_H?Tw&(6=d&I03!)HF2c#~o6T=BC$T1d`aOTPZ0$Da{h)c>1!HGMQX~f5 W*}`-2@bp`ZJWF)b4ts&U0{92XDZ~o^ literal 0 HcmV?d00001