Skip to content

Commit

Permalink
Name ppc64le directory in the form expected by JNA. (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanLennox committed Apr 1, 2024
1 parent a19c05a commit 7fbe7e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ endif ()

if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64")
set(JITSI_SYSTEM_PROCESSOR "x86-64")
set(JNA_SYSTEM_PROCESSOR "x86-64")
elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "ppc64el")
set(JNA_SYSTEM_PROCESSOR "ppc64le")
else ()
set(JITSI_SYSTEM_PROCESSOR ${CMAKE_SYSTEM_PROCESSOR})
set(JNA_SYSTEM_PROCESSOR ${CMAKE_SYSTEM_PROCESSOR})
endif ()
set(CMAKE_INSTALL_PREFIX "${CMAKE_CURRENT_LIST_DIR}/src/main/resources/${CMAKE_SYSTEM_NAME}-${JITSI_SYSTEM_PROCESSOR}" CACHE PATH "default install path" FORCE)
set(CMAKE_INSTALL_PREFIX "${CMAKE_CURRENT_LIST_DIR}/src/main/resources/${CMAKE_SYSTEM_NAME}-${JNA_SYSTEM_PROCESSOR}" CACHE PATH "default install path" FORCE)
string(TOLOWER ${CMAKE_INSTALL_PREFIX} CMAKE_INSTALL_PREFIX)
message(STATUS "CMAKE_INSTALL_PREFIX not set, defaulting to >${CMAKE_INSTALL_PREFIX}<")
endif ()
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
linux-x86-64/libjitsisrtp_3.so;osname=Linux;processor=x86-64,
linux-aarch64/libjitsisrtp_1.1.so;
linux-aarch64/libjitsisrtp_3.so;osname=Linux;processor=AArch64,
linux-ppc64el/libjitsisrtp_1.1.so;
linux-ppc64el/libjitsisrtp_3.so;osname=Linux;processor=PowerPC-64-LE,
linux-ppc64le/libjitsisrtp_1.1.so;
linux-ppc64le/libjitsisrtp_3.so;osname=Linux;processor=PowerPC-64-LE,
darwin-x86-64/libjitsisrtp_1.1.dylib;
darwin-x86-64/libjitsisrtp_3.dylib;osname=Mac OS X;processor=x86-64,
darwin-aarch64/libjitsisrtp_1.1.dylib;
Expand Down

0 comments on commit 7fbe7e3

Please sign in to comment.