Skip to content

Commit

Permalink
Makefile scripts/wrap/: also build libmupdf-threads.a with language b…
Browse files Browse the repository at this point in the history
…indings.
  • Loading branch information
julian-smith-artifex-com committed Nov 5, 2024
1 parent 6bb5110 commit 83d78f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ libs: $(LIBS_TO_INSTALL_IN_BIN) $(LIBS_TO_INSTALL_IN_LIB) $(COMMERCIAL_LIBS)
commercial-libs: $(COMMERCIAL_LIBS)
tools: $(TOOL_APPS)
apps: $(TOOL_APPS) $(VIEW_APPS)
libmupdf-threads: $(THREAD_LIB)

install-headers:
install -d $(DESTDIR)$(incdir)/mupdf
Expand Down
4 changes: 3 additions & 1 deletion scripts/wrap/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1161,6 +1161,8 @@ def _get_m_command( build_dirs, j=None, make=None, m_target=None, m_vars=None):
if m_target:
for t in m_target.split(','):
make_args += f' {t}'
else:
make_args += f' libs libmupdf-threads'
command = f'cd {build_dirs.dir_mupdf} &&'
if make_env:
command += make_env
Expand Down Expand Up @@ -1629,7 +1631,7 @@ def fn(name):
f' platform/{win32_infix}/mupdf.sln'
f' /Build "{build}"'
)
projects = ['mupdfcpp']
projects = ['mupdfcpp', 'libmuthreads']
if m_target:
projects += m_target.split(',')
for project in projects:
Expand Down

0 comments on commit 83d78f0

Please sign in to comment.