-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #736 from kiwix/zim-tools_deps_windows
- Loading branch information
Showing
7 changed files
with
58 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
from .base import * | ||
from . import ( | ||
all_dependencies, | ||
boostregex, | ||
tc_android_ndk, | ||
aria2, | ||
tc_armhf, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from .base import Dependency, ReleaseDownload, Builder as BaseBuilder | ||
|
||
from kiwixbuild.utils import Remotefile, pj | ||
from shutil import copytree | ||
|
||
|
||
class BoostRegex(Dependency): | ||
name = "boostregex" | ||
|
||
class Source(ReleaseDownload): | ||
archive = Remotefile( | ||
"regex-boost-1.86.0.zip", | ||
"", | ||
"https://codeload.github.com/boostorg/regex/zip/refs/tags/boost-1.86.0", | ||
) | ||
|
||
class Builder(BaseBuilder): | ||
def build(self): | ||
self.command("copy_headers", self._copy_headers) | ||
|
||
def _copy_headers(self, context): | ||
context.try_skip(self.build_path) | ||
copytree( | ||
pj(self.source_path, "include", "boost"), | ||
pj(self.buildEnv.install_dir, "include", "boost"), | ||
dirs_exist_ok=True, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff -ur docoptcpp-0.6.2/meson.build docoptcpp-0.6.2_boostregex/meson.build | ||
--- docoptcpp-0.6.2/meson.build 2024-08-28 17:22:46.256716100 +0200 | ||
+++ docoptcpp-0.6.2_boostregex/meson.build 2024-08-28 17:02:47.932681000 +0200 | ||
@@ -8,6 +8,10 @@ | ||
add_project_arguments('-DDOCOPT_DLL', '-DDOCOPT_EXPORTS', language: 'cpp') | ||
endif | ||
|
||
+if cpp.get_id() =='msvc' | ||
+ add_project_arguments('-DDOCTOPT_USE_BOOST_REGEX', '-DBOOST_REGEX_STANDALONE', language: 'cpp') | ||
+endif | ||
+ | ||
# bug with missing dllexport. fixed in next version. | ||
if cpp.get_argument_syntax() == 'msvc' | ||
doclib = static_library('docopt', 'docopt.cpp', install: true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters