Skip to content

Commit 37b0c36

Browse files
committed
Add libarchive dependency to cppan and sw builds.
1 parent 5cfe4cc commit 37b0c36

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,10 @@ set_target_properties (libtesseract PROPERTIES OUTPUT_NAME tesseract)
354354
endif()
355355

356356
if (CPPAN_BUILD)
357-
target_link_libraries (libtesseract pvt.cppan.demo.danbloomberg.leptonica)
357+
target_link_libraries (libtesseract PUBLIC
358+
pvt.cppan.demo.danbloomberg.leptonica
359+
pvt.cppan.demo.libarchive.libarchive
360+
)
358361
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/TesseractTargets.cmake "include(${CMAKE_CURRENT_BINARY_DIR}/cppan.cmake)\n")
359362
export(TARGETS libtesseract APPEND FILE ${CMAKE_CURRENT_BINARY_DIR}/TesseractTargets.cmake)
360363
else()

cppan.yml

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ local_settings:
1616

1717
dependencies:
1818
pvt.cppan.demo.danbloomberg.leptonica: 1
19+
pvt.cppan.demo.libarchive.libarchive: 3
1920
pvt.cppan.demo.unicode.icu.i18n: "*"
2021

2122
root_project: pvt.cppan.demo.google.tesseract
@@ -141,6 +142,7 @@ projects:
141142
definitions:
142143
public:
143144
- HAVE_CONFIG_H
145+
- HAVE_LIBARCHIVE
144146
- _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1
145147
- WINDLLNAME="tesseract"
146148
shared:
@@ -152,6 +154,7 @@ projects:
152154

153155
dependencies:
154156
pvt.cppan.demo.danbloomberg.leptonica: 1
157+
pvt.cppan.demo.libarchive.libarchive: 3
155158

156159
tesseract:
157160
files: src/api/tesseractmain.cpp

googletest

Submodule googletest updated 190 files

sw.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,12 @@ void build(Solution &s)
7171
libtesseract.Public += "HAVE_CONFIG_H"_d;
7272
libtesseract.Public += "WINDLLNAME=\"tesseract\""_d;
7373
libtesseract.Public += "_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1"_d;
74+
libtesseract.Public += "HAVE_LIBARCHIVE"_d;
7475
libtesseract.Interface += sw::Shared, "TESS_IMPORTS"_d;
7576
libtesseract.Private += sw::Shared, "TESS_EXPORTS"_d;
7677

7778
libtesseract.Public += "org.sw.demo.danbloomberg.leptonica-master"_dep;
79+
libtesseract.Public += "org.sw.demo.libarchive.libarchive"_dep;
7880

7981
if (s.Settings.TargetOS.Type == OSType::Windows)
8082
libtesseract.Public += "ws2_32.lib"_l;

0 commit comments

Comments
 (0)