Skip to content
Snippets Groups Projects
Commit dc53aa88 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

misc: change library name "jami" -> "libjami"

Bumps the daemon and adjusts the build to use the appropriate library name.

Change-Id: I4208f161c3522bb58dfc1dc55cb10910ade24eed
parent a179a9ae
No related branches found
No related tags found
No related merge requests found
......@@ -363,7 +363,7 @@ if(MSVC)
# daemon
set(JAMID_SRC_PATH ${DAEMON_DIR}/contrib/msvc/include)
set(JAMID_LIB ${DAEMON_DIR}/build/x64/ReleaseLib_win32/bin/jami.lib)
set(JAMID_LIB ${DAEMON_DIR}/build/x64/ReleaseLib_win32/bin/libjami.lib)
set(GNUTLS_LIB ${DAEMON_DIR}/contrib/msvc/lib/x64/libgnutls.lib)
# Beta config
......
......@@ -53,6 +53,11 @@ set(CMAKE_FIND_LIBRARY_SUFFIXES_orig ${CMAKE_FIND_LIBRARY_SUFFIXES})
set(CMAKE_FIND_LIBRARY_SUFFIXES ".dylib;.so;.dll")
# Add the lib prefix for Windows checks.
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
set(CMAKE_FIND_LIBRARY_PREFIXES "lib;")
endif()
if(WITH_DAEMON_SUBMODULE)
find_library(LIBJAMI_LIB NAMES jami ring
PATHS ${DAEMON_DIR}/src/.libs
......
#!/usr/bin/env python3
"""
Build, test, and package the project.
......@@ -340,9 +341,13 @@ def deploy_runtimes(qt_dir):
print("Running windeployqt (this may take a while)...")
win_deploy_qt = os.path.join(qt_dir, "bin", "windeployqt.exe")
qml_src_dir = os.path.join(repo_root_dir, "src", "app")
os.environ["VCINSTALLDIR"] = os.path.join(
get_vs_prop("installationPath"), "VC")
executable = os.path.join(runtime_dir, "Jami.exe")
installation_dir = get_vs_prop("installationPath")
if not installation_dir:
print("Visual Studio not found. Please install Visual Studio 2017 or "
"later.")
sys.exit(1)
os.environ["VCINSTALLDIR"] = os.path.join(installation_dir, "VC")
executable = os.path.join(runtime_dir.encode(), b"Jami.exe")
execute_cmd([win_deploy_qt, "--verbose", "1", "--no-compiler-runtime",
"--qmldir", qml_src_dir, "--release", executable],
False, cmd_dir=runtime_dir)
......@@ -483,7 +488,11 @@ def main():
print("These scripts will only run on a 64-bit system for now.")
sys.exit(1)
if sys.platform == "win32":
vs_version = get_vs_prop("installationVersion").split(".")[0]
vs_version = get_vs_prop("installationVersion")
if vs_version is None:
print("Visual Studio version not found.")
sys.exit(1)
vs_version = vs_version.split(".")[0]
if vs_version is None or int(vs_version) < 15:
print("Visual Studio 2017 or later is required.")
sys.exit(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment