mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-06-26 10:11:27 +00:00
Build and release libzim for android on the CI
This commit is contained in:
6
.github/scripts/build_projects.py
vendored
6
.github/scripts/build_projects.py
vendored
@ -11,9 +11,9 @@ from common import (
|
||||
DESKTOP,
|
||||
)
|
||||
|
||||
if PLATFORM_TARGET.startswith("android_"):
|
||||
TARGETS = ("libkiwix",)
|
||||
elif PLATFORM_TARGET.startswith("iOS") or PLATFORM_TARGET.startswith("macOS"):
|
||||
if (PLATFORM_TARGET.startswith("android_")
|
||||
or PLATFORM_TARGET.startswith("iOS")
|
||||
or PLATFORM_TARGET.startswith("macOS")):
|
||||
TARGETS = ("libzim", "libkiwix")
|
||||
elif PLATFORM_TARGET.startswith("native_"):
|
||||
if OS_NAME == "osx":
|
||||
|
4
.github/scripts/build_release_nightly.py
vendored
4
.github/scripts/build_release_nightly.py
vendored
@ -27,9 +27,7 @@ if os.environ.get('GITHUB_EVENT_NAME') == 'schedule':
|
||||
else:
|
||||
RELEASE = True
|
||||
|
||||
if PLATFORM_TARGET.startswith("android_"):
|
||||
TARGETS = ("libkiwix",)
|
||||
elif PLATFORM_TARGET.startswith("iOS"):
|
||||
if PLATFORM_TARGET.startswith("android_") or PLATFORM_TARGET.startswith("iOS"):
|
||||
TARGETS = ("libzim", "libkiwix")
|
||||
elif PLATFORM_TARGET.startswith("native_"):
|
||||
if OS_NAME == "osx":
|
||||
|
13
.github/scripts/common.py
vendored
13
.github/scripts/common.py
vendored
@ -93,9 +93,16 @@ EXPORT_FILES = {
|
||||
"libzim": (
|
||||
INSTALL_DIR,
|
||||
(
|
||||
"lib/x86_64-linux-gnu/libzim.so.{}".format(main_project_versions["libzim"]),
|
||||
"lib/x86_64-linux-gnu/libzim.so.{}".format(
|
||||
main_project_versions["libzim"][0]
|
||||
"lib/{libprefix}/libzim.so".format(
|
||||
libprefix=LIB_PREFIX.get(PLATFORM_TARGET, "x86_64-linux-gnu"),
|
||||
),
|
||||
"lib/{libprefix}/libzim.so.{version}".format(
|
||||
libprefix=LIB_PREFIX.get(PLATFORM_TARGET, "x86_64-linux-gnu"),
|
||||
version=main_project_versions["libzim"]
|
||||
),
|
||||
"lib/{libprefix}/libzim.so.{version}".format(
|
||||
libprefix=LIB_PREFIX.get(PLATFORM_TARGET, "x86_64-linux-gnu"),
|
||||
version=main_project_versions["libzim"][0]
|
||||
),
|
||||
"lib/libzim.{}.dylib".format(
|
||||
main_project_versions["libzim"][0]
|
||||
|
4
.github/scripts/compile_all_deps.py
vendored
4
.github/scripts/compile_all_deps.py
vendored
@ -12,9 +12,7 @@ from common import (
|
||||
KIWIX_DESKTOP_ONLY,
|
||||
)
|
||||
|
||||
if PLATFORM_TARGET.startswith("android_"):
|
||||
TARGETS = ("libzim", "libkiwix")
|
||||
elif PLATFORM_TARGET.startswith("iOS"):
|
||||
if PLATFORM_TARGET.startswith("android_") or PLATFORM_TARGET.startswith("iOS"):
|
||||
TARGETS = ("libzim", "libkiwix")
|
||||
elif PLATFORM_TARGET.startswith("native_"):
|
||||
if OS_NAME == "osx":
|
||||
|
Reference in New Issue
Block a user