Makelists 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002
  1. # List of source files for all thirdparty libraries.
  2. # --- FREETYPE2 ---
  3. FREETYPE_CFLAGS += -Ithirdparty/freetype/include
  4. FREETYPE_CFLAGS += -Iscripts/freetype
  5. FREETYPE_BUILD_CFLAGS += -DFT_CONFIG_MODULES_H=\"slimftmodules.h\"
  6. FREETYPE_BUILD_CFLAGS += -DFT_CONFIG_OPTIONS_H=\"slimftoptions.h\"
  7. FREETYPE_BUILD_CFLAGS += -DFT2_BUILD_LIBRARY
  8. FREETYPE_SRC += thirdparty/freetype/src/base/ftbase.c
  9. FREETYPE_SRC += thirdparty/freetype/src/base/ftbbox.c
  10. FREETYPE_SRC += thirdparty/freetype/src/base/ftbitmap.c
  11. FREETYPE_SRC += thirdparty/freetype/src/base/ftdebug.c
  12. FREETYPE_SRC += thirdparty/freetype/src/base/ftfstype.c
  13. FREETYPE_SRC += thirdparty/freetype/src/base/ftgasp.c
  14. FREETYPE_SRC += thirdparty/freetype/src/base/ftglyph.c
  15. FREETYPE_SRC += thirdparty/freetype/src/base/ftinit.c
  16. FREETYPE_SRC += thirdparty/freetype/src/base/ftstroke.c
  17. FREETYPE_SRC += thirdparty/freetype/src/base/ftsynth.c
  18. FREETYPE_SRC += thirdparty/freetype/src/base/ftsystem.c
  19. FREETYPE_SRC += thirdparty/freetype/src/base/fttype1.c
  20. FREETYPE_SRC += thirdparty/freetype/src/cff/cff.c
  21. FREETYPE_SRC += thirdparty/freetype/src/cid/type1cid.c
  22. FREETYPE_SRC += thirdparty/freetype/src/psaux/psaux.c
  23. FREETYPE_SRC += thirdparty/freetype/src/pshinter/pshinter.c
  24. FREETYPE_SRC += thirdparty/freetype/src/psnames/psnames.c
  25. FREETYPE_SRC += thirdparty/freetype/src/raster/raster.c
  26. FREETYPE_SRC += thirdparty/freetype/src/sfnt/sfnt.c
  27. FREETYPE_SRC += thirdparty/freetype/src/smooth/smooth.c
  28. FREETYPE_SRC += thirdparty/freetype/src/truetype/truetype.c
  29. FREETYPE_SRC += thirdparty/freetype/src/type1/type1.c
  30. # --- GUMBO ---
  31. GUMBO_CFLAGS += -Ithirdparty/gumbo-parser/src
  32. GUMBO_BUILD_CFLAGS += -std=c99
  33. GUMBO_SRC += thirdparty/gumbo-parser/src/attribute.c
  34. GUMBO_SRC += thirdparty/gumbo-parser/src/char_ref.c
  35. GUMBO_SRC += thirdparty/gumbo-parser/src/error.c
  36. GUMBO_SRC += thirdparty/gumbo-parser/src/parser.c
  37. GUMBO_SRC += thirdparty/gumbo-parser/src/string_buffer.c
  38. GUMBO_SRC += thirdparty/gumbo-parser/src/string_piece.c
  39. GUMBO_SRC += thirdparty/gumbo-parser/src/tag.c
  40. GUMBO_SRC += thirdparty/gumbo-parser/src/tokenizer.c
  41. GUMBO_SRC += thirdparty/gumbo-parser/src/utf8.c
  42. GUMBO_SRC += thirdparty/gumbo-parser/src/util.c
  43. GUMBO_SRC += thirdparty/gumbo-parser/src/vector.c
  44. # --- HARFBUZZ ---
  45. HARFBUZZ_CFLAGS += -Ithirdparty/harfbuzz/src
  46. HARFBUZZ_BUILD_CFLAGS += -Iinclude/mupdf
  47. HARFBUZZ_BUILD_CFLAGS += $(FREETYPE_CFLAGS)
  48. HARFBUZZ_BUILD_CFLAGS += -DHAVE_FALLBACK=1
  49. HARFBUZZ_BUILD_CFLAGS += -DHAVE_FREETYPE
  50. HARFBUZZ_BUILD_CFLAGS += -DHAVE_OT
  51. HARFBUZZ_BUILD_CFLAGS += -DHAVE_ROUND
  52. HARFBUZZ_BUILD_CFLAGS += -DHAVE_UCDN
  53. HARFBUZZ_BUILD_CFLAGS += -DHB_NO_MT
  54. # disable warnings
  55. HARFBUZZ_BUILD_CFLAGS += -DHB_NO_PRAGMA_GCC_DIAGNOSTIC
  56. HARFBUZZ_BUILD_CFLAGS += -w
  57. HARFBUZZ_BUILD_CFLAGS += -Dhb_malloc_impl=fz_hb_malloc
  58. HARFBUZZ_BUILD_CFLAGS += -Dhb_calloc_impl=fz_hb_calloc
  59. HARFBUZZ_BUILD_CFLAGS += -Dhb_free_impl=fz_hb_free
  60. HARFBUZZ_BUILD_CFLAGS += -Dhb_realloc_impl=fz_hb_realloc
  61. HARFBUZZ_BUILD_CFLAGS += -fno-exceptions
  62. HARFBUZZ_BUILD_CFLAGS += -fno-rtti
  63. HARFBUZZ_BUILD_CFLAGS += -fno-threadsafe-statics
  64. HARFBUZZ_BUILD_CFLAGS += -fvisibility-inlines-hidden
  65. HARFBUZZ_BUILD_CFLAGS += -std=gnu++11
  66. HARFBUZZ_SRC += thirdparty/harfbuzz/src/graph/gsubgpos-context.cc
  67. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-aat-layout.cc
  68. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-aat-map.cc
  69. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-blob.cc
  70. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-buffer.cc
  71. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-buffer-verify.cc
  72. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-buffer-serialize.cc
  73. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-common.cc
  74. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-face.cc
  75. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-fallback-shape.cc
  76. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-font.cc
  77. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ft.cc
  78. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-map.cc
  79. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-number.cc
  80. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ot-cff1-table.cc
  81. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ot-cff2-table.cc
  82. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ot-color.cc
  83. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ot-face.cc
  84. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ot-font.cc
  85. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ot-layout.cc
  86. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ot-map.cc
  87. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ot-math.cc
  88. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ot-meta.cc
  89. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ot-metrics.cc
  90. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ot-name.cc
  91. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ot-shape.cc
  92. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ot-shape-fallback.cc
  93. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ot-shape-normalize.cc
  94. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ot-shaper-arabic.cc
  95. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ot-shaper-default.cc
  96. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ot-shaper-hangul.cc
  97. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ot-shaper-hebrew.cc
  98. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ot-shaper-indic.cc
  99. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ot-shaper-indic-table.cc
  100. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ot-shaper-khmer.cc
  101. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ot-shaper-myanmar.cc
  102. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ot-shaper-syllabic.cc
  103. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ot-shaper-thai.cc
  104. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ot-shaper-use.cc
  105. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ot-shaper-vowel-constraints.cc
  106. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ot-tag.cc
  107. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ot-var.cc
  108. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-set.cc
  109. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-shape.cc
  110. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-shape-plan.cc
  111. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-shaper.cc
  112. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-static.cc
  113. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-subset.cc
  114. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-subset-cff1.cc
  115. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-subset-cff2.cc
  116. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-subset-cff-common.cc
  117. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-subset-input.cc
  118. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-subset-plan.cc
  119. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-ucd.cc
  120. HARFBUZZ_SRC += thirdparty/harfbuzz/src/hb-unicode.cc
  121. # --- JPEG-XR (optional, used by XPS) ---
  122. JPEGXR_CFLAGS += -Ithirdparty/jpegxr
  123. JPEGXR_CFLAGS += -Ithirdparty/jpegxr/Software
  124. JPEGXR_CFLAGS += -DHAVE_JPEGXR
  125. JPEGXR_BUILD_CFLAGS += -Wno-tautological-compare
  126. JPEGXR_SRC += thirdparty/jpegxr/Software/algo.c
  127. JPEGXR_SRC += thirdparty/jpegxr/Software/api.c
  128. JPEGXR_SRC += thirdparty/jpegxr/Software/cr_parse.c
  129. JPEGXR_SRC += thirdparty/jpegxr/Software/flags.c
  130. JPEGXR_SRC += thirdparty/jpegxr/Software/init.c
  131. JPEGXR_SRC += thirdparty/jpegxr/Software/io.c
  132. JPEGXR_SRC += thirdparty/jpegxr/Software/jpegxr_pixelformat.c
  133. JPEGXR_SRC += thirdparty/jpegxr/Software/r_parse.c
  134. JPEGXR_SRC += thirdparty/jpegxr/Software/r_strip.c
  135. JPEGXR_SRC += thirdparty/jpegxr/Software/r_tile_frequency.c
  136. JPEGXR_SRC += thirdparty/jpegxr/Software/r_tile_spatial.c
  137. JPEGXR_SRC += thirdparty/jpegxr/Software/x_strip.c
  138. # --- LIBJPEG ---
  139. LIBJPEG_CFLAGS += -Ithirdparty/libjpeg
  140. LIBJPEG_CFLAGS += -Iscripts/libjpeg
  141. LIBJPEG_SRC += thirdparty/libjpeg/jaricom.c
  142. LIBJPEG_SRC += thirdparty/libjpeg/jcapimin.c
  143. LIBJPEG_SRC += thirdparty/libjpeg/jcapistd.c
  144. LIBJPEG_SRC += thirdparty/libjpeg/jcarith.c
  145. LIBJPEG_SRC += thirdparty/libjpeg/jccoefct.c
  146. LIBJPEG_SRC += thirdparty/libjpeg/jccolor.c
  147. LIBJPEG_SRC += thirdparty/libjpeg/jcdctmgr.c
  148. LIBJPEG_SRC += thirdparty/libjpeg/jchuff.c
  149. LIBJPEG_SRC += thirdparty/libjpeg/jcinit.c
  150. LIBJPEG_SRC += thirdparty/libjpeg/jcmainct.c
  151. LIBJPEG_SRC += thirdparty/libjpeg/jcmarker.c
  152. LIBJPEG_SRC += thirdparty/libjpeg/jcmaster.c
  153. LIBJPEG_SRC += thirdparty/libjpeg/jcomapi.c
  154. LIBJPEG_SRC += thirdparty/libjpeg/jcparam.c
  155. LIBJPEG_SRC += thirdparty/libjpeg/jcprepct.c
  156. LIBJPEG_SRC += thirdparty/libjpeg/jcsample.c
  157. LIBJPEG_SRC += thirdparty/libjpeg/jdapimin.c
  158. LIBJPEG_SRC += thirdparty/libjpeg/jdapistd.c
  159. LIBJPEG_SRC += thirdparty/libjpeg/jdarith.c
  160. LIBJPEG_SRC += thirdparty/libjpeg/jdatadst.c
  161. LIBJPEG_SRC += thirdparty/libjpeg/jdatasrc.c
  162. LIBJPEG_SRC += thirdparty/libjpeg/jdcoefct.c
  163. LIBJPEG_SRC += thirdparty/libjpeg/jdcolor.c
  164. LIBJPEG_SRC += thirdparty/libjpeg/jddctmgr.c
  165. LIBJPEG_SRC += thirdparty/libjpeg/jdhuff.c
  166. LIBJPEG_SRC += thirdparty/libjpeg/jdinput.c
  167. LIBJPEG_SRC += thirdparty/libjpeg/jdmainct.c
  168. LIBJPEG_SRC += thirdparty/libjpeg/jdmarker.c
  169. LIBJPEG_SRC += thirdparty/libjpeg/jdmaster.c
  170. LIBJPEG_SRC += thirdparty/libjpeg/jdmerge.c
  171. LIBJPEG_SRC += thirdparty/libjpeg/jdpostct.c
  172. LIBJPEG_SRC += thirdparty/libjpeg/jdsample.c
  173. LIBJPEG_SRC += thirdparty/libjpeg/jdtrans.c
  174. LIBJPEG_SRC += thirdparty/libjpeg/jerror.c
  175. LIBJPEG_SRC += thirdparty/libjpeg/jfdctflt.c
  176. LIBJPEG_SRC += thirdparty/libjpeg/jfdctfst.c
  177. LIBJPEG_SRC += thirdparty/libjpeg/jfdctint.c
  178. LIBJPEG_SRC += thirdparty/libjpeg/jidctflt.c
  179. LIBJPEG_SRC += thirdparty/libjpeg/jidctfst.c
  180. LIBJPEG_SRC += thirdparty/libjpeg/jidctint.c
  181. LIBJPEG_SRC += thirdparty/libjpeg/jmemmgr.c
  182. LIBJPEG_SRC += thirdparty/libjpeg/jquant1.c
  183. LIBJPEG_SRC += thirdparty/libjpeg/jquant2.c
  184. LIBJPEG_SRC += thirdparty/libjpeg/jutils.c
  185. # --- LCMS2 (multi-threaded fork) ---
  186. LCMS2_CFLAGS += -Ithirdparty/lcms2/include
  187. LCMS2_CFLAGS += -DHAVE_LCMS2MT
  188. LCMS2_CFLAGS += -DLCMS2MT_PREFIX=lcms2mt_
  189. LCMS2_SRC += thirdparty/lcms2/src/cmsalpha.c
  190. LCMS2_SRC += thirdparty/lcms2/src/cmscam02.c
  191. LCMS2_SRC += thirdparty/lcms2/src/cmscgats.c
  192. LCMS2_SRC += thirdparty/lcms2/src/cmscnvrt.c
  193. LCMS2_SRC += thirdparty/lcms2/src/cmserr.c
  194. LCMS2_SRC += thirdparty/lcms2/src/cmsgamma.c
  195. LCMS2_SRC += thirdparty/lcms2/src/cmsgmt.c
  196. LCMS2_SRC += thirdparty/lcms2/src/cmshalf.c
  197. LCMS2_SRC += thirdparty/lcms2/src/cmsintrp.c
  198. LCMS2_SRC += thirdparty/lcms2/src/cmsio0.c
  199. LCMS2_SRC += thirdparty/lcms2/src/cmsio1.c
  200. LCMS2_SRC += thirdparty/lcms2/src/cmslut.c
  201. LCMS2_SRC += thirdparty/lcms2/src/cmsmd5.c
  202. LCMS2_SRC += thirdparty/lcms2/src/cmsmtrx.c
  203. LCMS2_SRC += thirdparty/lcms2/src/cmsnamed.c
  204. LCMS2_SRC += thirdparty/lcms2/src/cmsopt.c
  205. LCMS2_SRC += thirdparty/lcms2/src/cmspack.c
  206. LCMS2_SRC += thirdparty/lcms2/src/cmspcs.c
  207. LCMS2_SRC += thirdparty/lcms2/src/cmsplugin.c
  208. LCMS2_SRC += thirdparty/lcms2/src/cmsps2.c
  209. LCMS2_SRC += thirdparty/lcms2/src/cmssamp.c
  210. LCMS2_SRC += thirdparty/lcms2/src/cmssm.c
  211. LCMS2_SRC += thirdparty/lcms2/src/cmstypes.c
  212. LCMS2_SRC += thirdparty/lcms2/src/cmsvirt.c
  213. LCMS2_SRC += thirdparty/lcms2/src/cmswtpnt.c
  214. LCMS2_SRC += thirdparty/lcms2/src/cmsxform.c
  215. # --- MUJS ---
  216. MUJS_CFLAGS += -Ithirdparty/mujs
  217. MUJS_SRC += thirdparty/mujs/one.c
  218. # --- ZLIB ---
  219. ZLIB_CFLAGS += -Ithirdparty/zlib
  220. ZLIB_BUILD_CFLAGS += -DHAVE_UNISTD_H
  221. ZLIB_BUILD_CFLAGS += -DHAVE_STDARG_H
  222. ZLIB_SRC += thirdparty/zlib/adler32.c
  223. ZLIB_SRC += thirdparty/zlib/compress.c
  224. ZLIB_SRC += thirdparty/zlib/crc32.c
  225. ZLIB_SRC += thirdparty/zlib/deflate.c
  226. ZLIB_SRC += thirdparty/zlib/inffast.c
  227. ZLIB_SRC += thirdparty/zlib/inflate.c
  228. ZLIB_SRC += thirdparty/zlib/inftrees.c
  229. ZLIB_SRC += thirdparty/zlib/trees.c
  230. ZLIB_SRC += thirdparty/zlib/uncompr.c
  231. ZLIB_SRC += thirdparty/zlib/zutil.c
  232. # --- JBIG2DEC ---
  233. JBIG2DEC_CFLAGS += -Ithirdparty/jbig2dec
  234. JBIG2DEC_BUILD_CFLAGS += -Iinclude
  235. JBIG2DEC_BUILD_CFLAGS += -DHAVE_STDINT_H
  236. JBIG2DEC_BUILD_CFLAGS += -DJBIG_EXTERNAL_MEMENTO_H=\"mupdf/memento.h\"
  237. JBIG2DEC_SRC += thirdparty/jbig2dec/jbig2.c
  238. JBIG2DEC_SRC += thirdparty/jbig2dec/jbig2_arith.c
  239. JBIG2DEC_SRC += thirdparty/jbig2dec/jbig2_arith_iaid.c
  240. JBIG2DEC_SRC += thirdparty/jbig2dec/jbig2_arith_int.c
  241. JBIG2DEC_SRC += thirdparty/jbig2dec/jbig2_generic.c
  242. JBIG2DEC_SRC += thirdparty/jbig2dec/jbig2_halftone.c
  243. JBIG2DEC_SRC += thirdparty/jbig2dec/jbig2_huffman.c
  244. JBIG2DEC_SRC += thirdparty/jbig2dec/jbig2_hufftab.c
  245. JBIG2DEC_SRC += thirdparty/jbig2dec/jbig2_image.c
  246. JBIG2DEC_SRC += thirdparty/jbig2dec/jbig2_mmr.c
  247. JBIG2DEC_SRC += thirdparty/jbig2dec/jbig2_page.c
  248. JBIG2DEC_SRC += thirdparty/jbig2dec/jbig2_refinement.c
  249. JBIG2DEC_SRC += thirdparty/jbig2dec/jbig2_segment.c
  250. JBIG2DEC_SRC += thirdparty/jbig2dec/jbig2_symbol_dict.c
  251. JBIG2DEC_SRC += thirdparty/jbig2dec/jbig2_text.c
  252. # --- OPENJPEG ---
  253. OPENJPEG_CFLAGS += -Ithirdparty/openjpeg/src/lib/openjp2
  254. OPENJPEG_CFLAGS += -DOPJ_STATIC
  255. OPENJPEG_CFLAGS += -DOPJ_HAVE_INTTYPES_H
  256. OPENJPEG_CFLAGS += -DOPJ_HAVE_STDINT_H
  257. OPENJPEG_BUILD_CFLAGS += -Ithirdparty/openjpeg/src/lib/openjp2
  258. OPENJPEG_BUILD_CFLAGS += -DMUTEX_pthread=0
  259. OPENJPEG_SRC += thirdparty/openjpeg/src/lib/openjp2/bio.c
  260. OPENJPEG_SRC += thirdparty/openjpeg/src/lib/openjp2/cio.c
  261. OPENJPEG_SRC += thirdparty/openjpeg/src/lib/openjp2/dwt.c
  262. OPENJPEG_SRC += thirdparty/openjpeg/src/lib/openjp2/event.c
  263. OPENJPEG_SRC += thirdparty/openjpeg/src/lib/openjp2/function_list.c
  264. OPENJPEG_SRC += thirdparty/openjpeg/src/lib/openjp2/ht_dec.c
  265. OPENJPEG_SRC += thirdparty/openjpeg/src/lib/openjp2/image.c
  266. OPENJPEG_SRC += thirdparty/openjpeg/src/lib/openjp2/invert.c
  267. OPENJPEG_SRC += thirdparty/openjpeg/src/lib/openjp2/j2k.c
  268. OPENJPEG_SRC += thirdparty/openjpeg/src/lib/openjp2/jp2.c
  269. OPENJPEG_SRC += thirdparty/openjpeg/src/lib/openjp2/mct.c
  270. OPENJPEG_SRC += thirdparty/openjpeg/src/lib/openjp2/mqc.c
  271. OPENJPEG_SRC += thirdparty/openjpeg/src/lib/openjp2/openjpeg.c
  272. OPENJPEG_SRC += thirdparty/openjpeg/src/lib/openjp2/pi.c
  273. OPENJPEG_SRC += thirdparty/openjpeg/src/lib/openjp2/sparse_array.c
  274. OPENJPEG_SRC += thirdparty/openjpeg/src/lib/openjp2/t1.c
  275. OPENJPEG_SRC += thirdparty/openjpeg/src/lib/openjp2/t2.c
  276. OPENJPEG_SRC += thirdparty/openjpeg/src/lib/openjp2/tcd.c
  277. OPENJPEG_SRC += thirdparty/openjpeg/src/lib/openjp2/tgt.c
  278. OPENJPEG_SRC += thirdparty/openjpeg/src/lib/openjp2/thread.c
  279. # --- BROTLI ---
  280. BROTLI_CFLAGS += -Ithirdparty/brotli/c/include
  281. BROTLI_SRC += thirdparty/brotli/c/common/constants.c
  282. BROTLI_SRC += thirdparty/brotli/c/common/context.c
  283. BROTLI_SRC += thirdparty/brotli/c/common/dictionary.c
  284. BROTLI_SRC += thirdparty/brotli/c/common/platform.c
  285. BROTLI_SRC += thirdparty/brotli/c/common/shared_dictionary.c
  286. BROTLI_SRC += thirdparty/brotli/c/common/transform.c
  287. BROTLI_SRC += thirdparty/brotli/c/dec/bit_reader.c
  288. BROTLI_SRC += thirdparty/brotli/c/dec/decode.c
  289. BROTLI_SRC += thirdparty/brotli/c/dec/huffman.c
  290. BROTLI_SRC += thirdparty/brotli/c/dec/state.c
  291. BROTLI_SRC += thirdparty/brotli/c/enc/backward_references.c
  292. BROTLI_SRC += thirdparty/brotli/c/enc/backward_references_hq.c
  293. BROTLI_SRC += thirdparty/brotli/c/enc/bit_cost.c
  294. BROTLI_SRC += thirdparty/brotli/c/enc/block_splitter.c
  295. BROTLI_SRC += thirdparty/brotli/c/enc/brotli_bit_stream.c
  296. BROTLI_SRC += thirdparty/brotli/c/enc/cluster.c
  297. BROTLI_SRC += thirdparty/brotli/c/enc/command.c
  298. BROTLI_SRC += thirdparty/brotli/c/enc/compound_dictionary.c
  299. BROTLI_SRC += thirdparty/brotli/c/enc/compress_fragment.c
  300. BROTLI_SRC += thirdparty/brotli/c/enc/compress_fragment_two_pass.c
  301. BROTLI_SRC += thirdparty/brotli/c/enc/dictionary_hash.c
  302. BROTLI_SRC += thirdparty/brotli/c/enc/encode.c
  303. BROTLI_SRC += thirdparty/brotli/c/enc/encoder_dict.c
  304. BROTLI_SRC += thirdparty/brotli/c/enc/entropy_encode.c
  305. BROTLI_SRC += thirdparty/brotli/c/enc/fast_log.c
  306. BROTLI_SRC += thirdparty/brotli/c/enc/histogram.c
  307. BROTLI_SRC += thirdparty/brotli/c/enc/literal_cost.c
  308. BROTLI_SRC += thirdparty/brotli/c/enc/memory.c
  309. BROTLI_SRC += thirdparty/brotli/c/enc/metablock.c
  310. BROTLI_SRC += thirdparty/brotli/c/enc/static_dict.c
  311. BROTLI_SRC += thirdparty/brotli/c/enc/utf8_util.c
  312. # --- FREEGLUT ---
  313. GLUT_CFLAGS += -Ithirdparty/freeglut/include
  314. GLUT_BUILD_CFLAGS += -Ithirdparty/freeglut/src
  315. GLUT_BUILD_CFLAGS += -DHAVE_UNISTD_H
  316. GLUT_BUILD_CFLAGS += -DHAVE_STDINT_H
  317. GLUT_BUILD_CFLAGS += -DHAVE_X11_EXTENSIONS_XRANDR_H
  318. GLUT_BUILD_CFLAGS += $(SYS_GL_CFLAGS)
  319. GLUT_SRC += thirdparty/freeglut/src/fg_callbacks.c
  320. GLUT_SRC += thirdparty/freeglut/src/fg_cursor.c
  321. GLUT_SRC += thirdparty/freeglut/src/fg_display.c
  322. GLUT_SRC += thirdparty/freeglut/src/fg_ext.c
  323. GLUT_SRC += thirdparty/freeglut/src/fg_font.c
  324. GLUT_SRC += thirdparty/freeglut/src/fg_font_data.c
  325. GLUT_SRC += thirdparty/freeglut/src/fg_gamemode.c
  326. GLUT_SRC += thirdparty/freeglut/src/fg_geometry.c
  327. GLUT_SRC += thirdparty/freeglut/src/fg_gl2.c
  328. GLUT_SRC += thirdparty/freeglut/src/fg_init.c
  329. GLUT_SRC += thirdparty/freeglut/src/fg_input_devices.c
  330. GLUT_SRC += thirdparty/freeglut/src/fg_joystick.c
  331. GLUT_SRC += thirdparty/freeglut/src/fg_main.c
  332. GLUT_SRC += thirdparty/freeglut/src/fg_menu.c
  333. GLUT_SRC += thirdparty/freeglut/src/fg_misc.c
  334. GLUT_SRC += thirdparty/freeglut/src/fg_overlay.c
  335. GLUT_SRC += thirdparty/freeglut/src/fg_spaceball.c
  336. GLUT_SRC += thirdparty/freeglut/src/fg_state.c
  337. GLUT_SRC += thirdparty/freeglut/src/fg_stroke_mono_roman.c
  338. GLUT_SRC += thirdparty/freeglut/src/fg_stroke_roman.c
  339. GLUT_SRC += thirdparty/freeglut/src/fg_structure.c
  340. GLUT_SRC += thirdparty/freeglut/src/fg_teapot.c
  341. GLUT_SRC += thirdparty/freeglut/src/fg_videoresize.c
  342. GLUT_SRC += thirdparty/freeglut/src/fg_window.c
  343. GLUT_SRC += thirdparty/freeglut/src/x11/fg_cursor_x11.c
  344. GLUT_SRC += thirdparty/freeglut/src/x11/fg_display_x11_glx.c
  345. GLUT_SRC += thirdparty/freeglut/src/x11/fg_ext_x11.c
  346. GLUT_SRC += thirdparty/freeglut/src/x11/fg_gamemode_x11.c
  347. GLUT_SRC += thirdparty/freeglut/src/x11/fg_glutfont_definitions_x11.c
  348. GLUT_SRC += thirdparty/freeglut/src/x11/fg_init_x11.c
  349. GLUT_SRC += thirdparty/freeglut/src/x11/fg_input_devices_x11.c
  350. GLUT_SRC += thirdparty/freeglut/src/x11/fg_joystick_x11.c
  351. GLUT_SRC += thirdparty/freeglut/src/x11/fg_main_x11.c
  352. GLUT_SRC += thirdparty/freeglut/src/x11/fg_menu_x11.c
  353. GLUT_SRC += thirdparty/freeglut/src/x11/fg_spaceball_x11.c
  354. GLUT_SRC += thirdparty/freeglut/src/x11/fg_state_x11.c
  355. GLUT_SRC += thirdparty/freeglut/src/x11/fg_state_x11_glx.c
  356. GLUT_SRC += thirdparty/freeglut/src/x11/fg_structure_x11.c
  357. GLUT_SRC += thirdparty/freeglut/src/x11/fg_window_x11.c
  358. GLUT_SRC += thirdparty/freeglut/src/x11/fg_window_x11_glx.c
  359. GLUT_SRC += thirdparty/freeglut/src/x11/fg_xinput_x11.c
  360. GLUT_LIBS += $(SYS_GL_LIBS)
  361. # --- LEPTONICA (optional, used by Tesseract) ---
  362. LEPTONICA_CFLAGS += -Ithirdparty/leptonica/src
  363. LEPTONICA_CFLAGS += -Iscripts/tesseract
  364. LEPTONICA_BUILD_CFLAGS += -Iscripts/tesseract
  365. LEPTONICA_BUILD_CFLAGS += -DLEPTONICA_INTERCEPT_ALLOC=1
  366. LEPTONICA_BUILD_CFLAGS += -DHAVE_LIBPNG=0
  367. LEPTONICA_BUILD_CFLAGS += -DHAVE_LIBTIFF=0
  368. LEPTONICA_BUILD_CFLAGS += -DHAVE_LIBJPEG=0
  369. LEPTONICA_BUILD_CFLAGS += -DHAVE_LIBZ=0
  370. LEPTONICA_BUILD_CFLAGS += -DHAVE_LIBGIF=0
  371. LEPTONICA_BUILD_CFLAGS += -DHAVE_LIBUNGIF=0
  372. LEPTONICA_BUILD_CFLAGS += -DHAVE_LIBWEBP=0
  373. LEPTONICA_BUILD_CFLAGS += -DHAVE_LIBWEBP_ANIM=0
  374. LEPTONICA_BUILD_CFLAGS += -DHAVE_LIBJP2K=0
  375. LEPTONICA_BUILD_CFLAGS += -Wno-address-of-packed-member
  376. LEPTONICA_SRC += thirdparty/leptonica/src/adaptmap.c
  377. LEPTONICA_SRC += thirdparty/leptonica/src/affine.c
  378. LEPTONICA_SRC += thirdparty/leptonica/src/affinecompose.c
  379. LEPTONICA_SRC += thirdparty/leptonica/src/arrayaccess.c
  380. LEPTONICA_SRC += thirdparty/leptonica/src/baseline.c
  381. LEPTONICA_SRC += thirdparty/leptonica/src/bbuffer.c
  382. LEPTONICA_SRC += thirdparty/leptonica/src/bilateral.c
  383. LEPTONICA_SRC += thirdparty/leptonica/src/bilinear.c
  384. LEPTONICA_SRC += thirdparty/leptonica/src/binarize.c
  385. LEPTONICA_SRC += thirdparty/leptonica/src/binexpand.c
  386. LEPTONICA_SRC += thirdparty/leptonica/src/binreduce.c
  387. LEPTONICA_SRC += thirdparty/leptonica/src/blend.c
  388. LEPTONICA_SRC += thirdparty/leptonica/src/bmf.c
  389. LEPTONICA_SRC += thirdparty/leptonica/src/bmpio.c
  390. LEPTONICA_SRC += thirdparty/leptonica/src/bmpiostub.c
  391. LEPTONICA_SRC += thirdparty/leptonica/src/bootnumgen1.c
  392. LEPTONICA_SRC += thirdparty/leptonica/src/bootnumgen2.c
  393. LEPTONICA_SRC += thirdparty/leptonica/src/bootnumgen3.c
  394. LEPTONICA_SRC += thirdparty/leptonica/src/bootnumgen4.c
  395. LEPTONICA_SRC += thirdparty/leptonica/src/boxbasic.c
  396. LEPTONICA_SRC += thirdparty/leptonica/src/boxfunc1.c
  397. LEPTONICA_SRC += thirdparty/leptonica/src/boxfunc2.c
  398. LEPTONICA_SRC += thirdparty/leptonica/src/boxfunc3.c
  399. LEPTONICA_SRC += thirdparty/leptonica/src/boxfunc4.c
  400. LEPTONICA_SRC += thirdparty/leptonica/src/boxfunc5.c
  401. LEPTONICA_SRC += thirdparty/leptonica/src/bytearray.c
  402. LEPTONICA_SRC += thirdparty/leptonica/src/ccbord.c
  403. LEPTONICA_SRC += thirdparty/leptonica/src/ccthin.c
  404. LEPTONICA_SRC += thirdparty/leptonica/src/classapp.c
  405. LEPTONICA_SRC += thirdparty/leptonica/src/colorcontent.c
  406. LEPTONICA_SRC += thirdparty/leptonica/src/coloring.c
  407. LEPTONICA_SRC += thirdparty/leptonica/src/colormap.c
  408. LEPTONICA_SRC += thirdparty/leptonica/src/colormorph.c
  409. LEPTONICA_SRC += thirdparty/leptonica/src/colorquant1.c
  410. LEPTONICA_SRC += thirdparty/leptonica/src/colorquant2.c
  411. LEPTONICA_SRC += thirdparty/leptonica/src/colorseg.c
  412. LEPTONICA_SRC += thirdparty/leptonica/src/colorspace.c
  413. LEPTONICA_SRC += thirdparty/leptonica/src/compare.c
  414. LEPTONICA_SRC += thirdparty/leptonica/src/conncomp.c
  415. LEPTONICA_SRC += thirdparty/leptonica/src/convertfiles.c
  416. LEPTONICA_SRC += thirdparty/leptonica/src/convolve.c
  417. LEPTONICA_SRC += thirdparty/leptonica/src/correlscore.c
  418. LEPTONICA_SRC += thirdparty/leptonica/src/dewarp1.c
  419. LEPTONICA_SRC += thirdparty/leptonica/src/dewarp2.c
  420. LEPTONICA_SRC += thirdparty/leptonica/src/dewarp3.c
  421. LEPTONICA_SRC += thirdparty/leptonica/src/dewarp4.c
  422. LEPTONICA_SRC += thirdparty/leptonica/src/dnabasic.c
  423. LEPTONICA_SRC += thirdparty/leptonica/src/dnafunc1.c
  424. LEPTONICA_SRC += thirdparty/leptonica/src/dnahash.c
  425. LEPTONICA_SRC += thirdparty/leptonica/src/dwacomb.2.c
  426. LEPTONICA_SRC += thirdparty/leptonica/src/dwacomblow.2.c
  427. LEPTONICA_SRC += thirdparty/leptonica/src/edge.c
  428. LEPTONICA_SRC += thirdparty/leptonica/src/encoding.c
  429. LEPTONICA_SRC += thirdparty/leptonica/src/enhance.c
  430. LEPTONICA_SRC += thirdparty/leptonica/src/fhmtauto.c
  431. LEPTONICA_SRC += thirdparty/leptonica/src/fhmtgenlow.1.c
  432. LEPTONICA_SRC += thirdparty/leptonica/src/fmorphauto.c
  433. LEPTONICA_SRC += thirdparty/leptonica/src/fmorphgen.1.c
  434. LEPTONICA_SRC += thirdparty/leptonica/src/fmorphgenlow.1.c
  435. LEPTONICA_SRC += thirdparty/leptonica/src/fpix1.c
  436. LEPTONICA_SRC += thirdparty/leptonica/src/fpix2.c
  437. LEPTONICA_SRC += thirdparty/leptonica/src/gifiostub.c
  438. LEPTONICA_SRC += thirdparty/leptonica/src/gplot.c
  439. LEPTONICA_SRC += thirdparty/leptonica/src/graphics.c
  440. LEPTONICA_SRC += thirdparty/leptonica/src/graymorph.c
  441. LEPTONICA_SRC += thirdparty/leptonica/src/grayquant.c
  442. LEPTONICA_SRC += thirdparty/leptonica/src/hashmap.c
  443. LEPTONICA_SRC += thirdparty/leptonica/src/heap.c
  444. LEPTONICA_SRC += thirdparty/leptonica/src/jbclass.c
  445. LEPTONICA_SRC += thirdparty/leptonica/src/jp2kheader.c
  446. LEPTONICA_SRC += thirdparty/leptonica/src/jp2kheaderstub.c
  447. LEPTONICA_SRC += thirdparty/leptonica/src/jp2kiostub.c
  448. LEPTONICA_SRC += thirdparty/leptonica/src/jpegiostub.c
  449. LEPTONICA_SRC += thirdparty/leptonica/src/kernel.c
  450. LEPTONICA_SRC += thirdparty/leptonica/src/libversions.c
  451. LEPTONICA_SRC += thirdparty/leptonica/src/list.c
  452. LEPTONICA_SRC += thirdparty/leptonica/src/map.c
  453. LEPTONICA_SRC += thirdparty/leptonica/src/morph.c
  454. LEPTONICA_SRC += thirdparty/leptonica/src/morphapp.c
  455. LEPTONICA_SRC += thirdparty/leptonica/src/morphdwa.c
  456. LEPTONICA_SRC += thirdparty/leptonica/src/morphseq.c
  457. LEPTONICA_SRC += thirdparty/leptonica/src/numabasic.c
  458. LEPTONICA_SRC += thirdparty/leptonica/src/numafunc1.c
  459. LEPTONICA_SRC += thirdparty/leptonica/src/numafunc2.c
  460. LEPTONICA_SRC += thirdparty/leptonica/src/pageseg.c
  461. LEPTONICA_SRC += thirdparty/leptonica/src/paintcmap.c
  462. LEPTONICA_SRC += thirdparty/leptonica/src/partify.c
  463. LEPTONICA_SRC += thirdparty/leptonica/src/partition.c
  464. LEPTONICA_SRC += thirdparty/leptonica/src/pdfio1.c
  465. LEPTONICA_SRC += thirdparty/leptonica/src/pdfio1stub.c
  466. LEPTONICA_SRC += thirdparty/leptonica/src/pdfio2.c
  467. LEPTONICA_SRC += thirdparty/leptonica/src/pdfio2stub.c
  468. LEPTONICA_SRC += thirdparty/leptonica/src/pix1.c
  469. LEPTONICA_SRC += thirdparty/leptonica/src/pix2.c
  470. LEPTONICA_SRC += thirdparty/leptonica/src/pix3.c
  471. LEPTONICA_SRC += thirdparty/leptonica/src/pix4.c
  472. LEPTONICA_SRC += thirdparty/leptonica/src/pix5.c
  473. LEPTONICA_SRC += thirdparty/leptonica/src/pixabasic.c
  474. LEPTONICA_SRC += thirdparty/leptonica/src/pixacc.c
  475. LEPTONICA_SRC += thirdparty/leptonica/src/pixafunc1.c
  476. LEPTONICA_SRC += thirdparty/leptonica/src/pixafunc2.c
  477. LEPTONICA_SRC += thirdparty/leptonica/src/pixalloc.c
  478. LEPTONICA_SRC += thirdparty/leptonica/src/pixarith.c
  479. LEPTONICA_SRC += thirdparty/leptonica/src/pixcomp.c
  480. LEPTONICA_SRC += thirdparty/leptonica/src/pixconv.c
  481. LEPTONICA_SRC += thirdparty/leptonica/src/pixlabel.c
  482. LEPTONICA_SRC += thirdparty/leptonica/src/pixtiling.c
  483. LEPTONICA_SRC += thirdparty/leptonica/src/pngiostub.c
  484. LEPTONICA_SRC += thirdparty/leptonica/src/pnmio.c
  485. LEPTONICA_SRC += thirdparty/leptonica/src/projective.c
  486. LEPTONICA_SRC += thirdparty/leptonica/src/psio1.c
  487. LEPTONICA_SRC += thirdparty/leptonica/src/psio1stub.c
  488. LEPTONICA_SRC += thirdparty/leptonica/src/psio2.c
  489. LEPTONICA_SRC += thirdparty/leptonica/src/psio2stub.c
  490. LEPTONICA_SRC += thirdparty/leptonica/src/ptabasic.c
  491. LEPTONICA_SRC += thirdparty/leptonica/src/ptafunc1.c
  492. LEPTONICA_SRC += thirdparty/leptonica/src/ptafunc2.c
  493. LEPTONICA_SRC += thirdparty/leptonica/src/ptra.c
  494. LEPTONICA_SRC += thirdparty/leptonica/src/quadtree.c
  495. LEPTONICA_SRC += thirdparty/leptonica/src/queue.c
  496. LEPTONICA_SRC += thirdparty/leptonica/src/rank.c
  497. LEPTONICA_SRC += thirdparty/leptonica/src/rbtree.c
  498. LEPTONICA_SRC += thirdparty/leptonica/src/readfile.c
  499. LEPTONICA_SRC += thirdparty/leptonica/src/regutils.c
  500. LEPTONICA_SRC += thirdparty/leptonica/src/rop.c
  501. LEPTONICA_SRC += thirdparty/leptonica/src/roplow.c
  502. LEPTONICA_SRC += thirdparty/leptonica/src/rotate.c
  503. LEPTONICA_SRC += thirdparty/leptonica/src/rotateam.c
  504. LEPTONICA_SRC += thirdparty/leptonica/src/rotateorth.c
  505. LEPTONICA_SRC += thirdparty/leptonica/src/rotateshear.c
  506. LEPTONICA_SRC += thirdparty/leptonica/src/runlength.c
  507. LEPTONICA_SRC += thirdparty/leptonica/src/sarray1.c
  508. LEPTONICA_SRC += thirdparty/leptonica/src/sarray2.c
  509. LEPTONICA_SRC += thirdparty/leptonica/src/scale1.c
  510. LEPTONICA_SRC += thirdparty/leptonica/src/scale2.c
  511. LEPTONICA_SRC += thirdparty/leptonica/src/seedfill.c
  512. LEPTONICA_SRC += thirdparty/leptonica/src/sel1.c
  513. LEPTONICA_SRC += thirdparty/leptonica/src/sel2.c
  514. LEPTONICA_SRC += thirdparty/leptonica/src/selgen.c
  515. LEPTONICA_SRC += thirdparty/leptonica/src/shear.c
  516. LEPTONICA_SRC += thirdparty/leptonica/src/skew.c
  517. LEPTONICA_SRC += thirdparty/leptonica/src/spixio.c
  518. LEPTONICA_SRC += thirdparty/leptonica/src/stack.c
  519. LEPTONICA_SRC += thirdparty/leptonica/src/stringcode.c
  520. LEPTONICA_SRC += thirdparty/leptonica/src/strokes.c
  521. LEPTONICA_SRC += thirdparty/leptonica/src/textops.c
  522. LEPTONICA_SRC += thirdparty/leptonica/src/tiffiostub.c
  523. LEPTONICA_SRC += thirdparty/leptonica/src/utils1.c
  524. LEPTONICA_SRC += thirdparty/leptonica/src/utils2.c
  525. LEPTONICA_SRC += thirdparty/leptonica/src/warper.c
  526. LEPTONICA_SRC += thirdparty/leptonica/src/webpiostub.c
  527. LEPTONICA_SRC += thirdparty/leptonica/src/writefile.c
  528. LEPTONICA_SRC += thirdparty/leptonica/src/zlibmem.c
  529. LEPTONICA_SRC += thirdparty/leptonica/src/zlibmemstub.c
  530. # --- TESSERACT (optional) ---
  531. TESSERACT_LANGFLAGS = -std=c++17
  532. TESSERACT_CFLAGS += -Ithirdparty/tesseract/include
  533. TESSERACT_CFLAGS += -Iscripts/tesseract
  534. TESSERACT_DEFINES = -DTESSERACT_IMAGEDATA_AS_PIX
  535. TESSERACT_DEFINES += -DTESSERACT_DISABLE_DEBUG_FONTS
  536. TESSERACT_DEFINES += -DGRAPHICS_DISABLED
  537. TESSERACT_DEFINES += -DDISABLED_LEGACY_ENGINE
  538. TESSERACT_BUILD_CFLAGS += -Ithirdparty/tesseract/src
  539. TESSERACT_BUILD_CFLAGS += -Ithirdparty/tesseract/src/api
  540. TESSERACT_BUILD_CFLAGS += -Ithirdparty/tesseract/src/arch
  541. TESSERACT_BUILD_CFLAGS += -Ithirdparty/tesseract/src/ccmain
  542. TESSERACT_BUILD_CFLAGS += -Ithirdparty/tesseract/src/ccstruct
  543. TESSERACT_BUILD_CFLAGS += -Ithirdparty/tesseract/src/ccutil
  544. TESSERACT_BUILD_CFLAGS += -Ithirdparty/tesseract/src/classify
  545. TESSERACT_BUILD_CFLAGS += -Ithirdparty/tesseract/src/dict
  546. TESSERACT_BUILD_CFLAGS += -Ithirdparty/tesseract/src/lstm
  547. TESSERACT_BUILD_CFLAGS += -Ithirdparty/tesseract/src/textord
  548. TESSERACT_BUILD_CFLAGS += -Ithirdparty/tesseract/src/viewer
  549. TESSERACT_BUILD_CFLAGS += -Ithirdparty/tesseract/src/wordrec
  550. TESSERACT_BUILD_CFLAGS += -Ithirdparty/tesseract/src/cutil
  551. TESSERACT_BUILD_CFLAGS += $(TESSERACT_LANGFLAGS)
  552. TESSERACT_BUILD_CFLAGS += $(LEPTONICA_CFLAGS)
  553. TESSERACT_LIBS += -lpthread
  554. TESSERACT_LIBS += -lstdc++
  555. TESSERACT_SRC += thirdparty/tesseract/src/api/altorenderer.cpp
  556. TESSERACT_SRC += thirdparty/tesseract/src/api/baseapi.cpp
  557. TESSERACT_SRC += thirdparty/tesseract/src/api/capi.cpp
  558. TESSERACT_SRC += thirdparty/tesseract/src/api/hocrrenderer.cpp
  559. TESSERACT_SRC += thirdparty/tesseract/src/api/lstmboxrenderer.cpp
  560. TESSERACT_SRC += thirdparty/tesseract/src/api/pagerenderer.cpp
  561. TESSERACT_SRC += thirdparty/tesseract/src/api/pdfrenderer.cpp
  562. TESSERACT_SRC += thirdparty/tesseract/src/api/renderer.cpp
  563. TESSERACT_SRC += thirdparty/tesseract/src/api/wordstrboxrenderer.cpp
  564. TESSERACT_SRC += thirdparty/tesseract/src/arch/dotproduct.cpp
  565. TESSERACT_SRC += thirdparty/tesseract/src/arch/dotproductneon.cpp
  566. TESSERACT_SRC += thirdparty/tesseract/src/arch/intsimdmatrix.cpp
  567. TESSERACT_SRC += thirdparty/tesseract/src/arch/simddetect.cpp
  568. TESSERACT_SRC += thirdparty/tesseract/src/ccmain/applybox.cpp
  569. TESSERACT_SRC += thirdparty/tesseract/src/ccmain/control.cpp
  570. TESSERACT_SRC += thirdparty/tesseract/src/ccmain/linerec.cpp
  571. TESSERACT_SRC += thirdparty/tesseract/src/ccmain/ltrresultiterator.cpp
  572. TESSERACT_SRC += thirdparty/tesseract/src/ccmain/mutableiterator.cpp
  573. TESSERACT_SRC += thirdparty/tesseract/src/ccmain/output.cpp
  574. TESSERACT_SRC += thirdparty/tesseract/src/ccmain/pageiterator.cpp
  575. TESSERACT_SRC += thirdparty/tesseract/src/ccmain/pagesegmain.cpp
  576. TESSERACT_SRC += thirdparty/tesseract/src/ccmain/pagewalk.cpp
  577. TESSERACT_SRC += thirdparty/tesseract/src/ccmain/paragraphs.cpp
  578. TESSERACT_SRC += thirdparty/tesseract/src/ccmain/paramsd.cpp
  579. TESSERACT_SRC += thirdparty/tesseract/src/ccmain/pgedit.cpp
  580. TESSERACT_SRC += thirdparty/tesseract/src/ccmain/reject.cpp
  581. TESSERACT_SRC += thirdparty/tesseract/src/ccmain/resultiterator.cpp
  582. TESSERACT_SRC += thirdparty/tesseract/src/ccmain/tessedit.cpp
  583. TESSERACT_SRC += thirdparty/tesseract/src/ccmain/tesseractclass.cpp
  584. TESSERACT_SRC += thirdparty/tesseract/src/ccmain/tessvars.cpp
  585. TESSERACT_SRC += thirdparty/tesseract/src/ccmain/thresholder.cpp
  586. TESSERACT_SRC += thirdparty/tesseract/src/ccmain/werdit.cpp
  587. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/blamer.cpp
  588. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/blobbox.cpp
  589. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/blobs.cpp
  590. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/blread.cpp
  591. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/boxread.cpp
  592. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/boxword.cpp
  593. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/ccstruct.cpp
  594. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/coutln.cpp
  595. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/detlinefit.cpp
  596. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/dppoint.cpp
  597. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/image.cpp
  598. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/imagedata.cpp
  599. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/linlsq.cpp
  600. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/matrix.cpp
  601. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/mod128.cpp
  602. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/normalis.cpp
  603. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/ocrblock.cpp
  604. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/ocrpara.cpp
  605. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/ocrrow.cpp
  606. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/otsuthr.cpp
  607. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/pageres.cpp
  608. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/pdblock.cpp
  609. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/points.cpp
  610. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/polyaprx.cpp
  611. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/polyblk.cpp
  612. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/quadlsq.cpp
  613. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/quspline.cpp
  614. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/ratngs.cpp
  615. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/rect.cpp
  616. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/rejctmap.cpp
  617. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/seam.cpp
  618. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/split.cpp
  619. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/statistc.cpp
  620. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/stepblob.cpp
  621. TESSERACT_SRC += thirdparty/tesseract/src/ccstruct/werd.cpp
  622. TESSERACT_SRC += thirdparty/tesseract/src/ccutil/ccutil.cpp
  623. TESSERACT_SRC += thirdparty/tesseract/src/ccutil/clst.cpp
  624. TESSERACT_SRC += thirdparty/tesseract/src/ccutil/elst.cpp
  625. TESSERACT_SRC += thirdparty/tesseract/src/ccutil/elst2.cpp
  626. TESSERACT_SRC += thirdparty/tesseract/src/ccutil/errcode.cpp
  627. TESSERACT_SRC += thirdparty/tesseract/src/ccutil/params.cpp
  628. TESSERACT_SRC += thirdparty/tesseract/src/ccutil/scanutils.cpp
  629. TESSERACT_SRC += thirdparty/tesseract/src/ccutil/serialis.cpp
  630. TESSERACT_SRC += thirdparty/tesseract/src/ccutil/tessdatamanager.cpp
  631. TESSERACT_SRC += thirdparty/tesseract/src/ccutil/tprintf.cpp
  632. TESSERACT_SRC += thirdparty/tesseract/src/ccutil/unichar.cpp
  633. TESSERACT_SRC += thirdparty/tesseract/src/ccutil/unicharcompress.cpp
  634. TESSERACT_SRC += thirdparty/tesseract/src/ccutil/unicharmap.cpp
  635. TESSERACT_SRC += thirdparty/tesseract/src/ccutil/unicharset.cpp
  636. TESSERACT_SRC += thirdparty/tesseract/src/classify/classify.cpp
  637. TESSERACT_SRC += thirdparty/tesseract/src/dict/context.cpp
  638. TESSERACT_SRC += thirdparty/tesseract/src/dict/dawg.cpp
  639. TESSERACT_SRC += thirdparty/tesseract/src/dict/dawg_cache.cpp
  640. TESSERACT_SRC += thirdparty/tesseract/src/dict/dict.cpp
  641. TESSERACT_SRC += thirdparty/tesseract/src/dict/permdawg.cpp
  642. TESSERACT_SRC += thirdparty/tesseract/src/dict/stopper.cpp
  643. TESSERACT_SRC += thirdparty/tesseract/src/dict/trie.cpp
  644. TESSERACT_SRC += thirdparty/tesseract/src/lstm/convolve.cpp
  645. TESSERACT_SRC += thirdparty/tesseract/src/lstm/fullyconnected.cpp
  646. TESSERACT_SRC += thirdparty/tesseract/src/lstm/functions.cpp
  647. TESSERACT_SRC += thirdparty/tesseract/src/lstm/input.cpp
  648. TESSERACT_SRC += thirdparty/tesseract/src/lstm/lstm.cpp
  649. TESSERACT_SRC += thirdparty/tesseract/src/lstm/lstmrecognizer.cpp
  650. TESSERACT_SRC += thirdparty/tesseract/src/lstm/maxpool.cpp
  651. TESSERACT_SRC += thirdparty/tesseract/src/lstm/network.cpp
  652. TESSERACT_SRC += thirdparty/tesseract/src/lstm/networkio.cpp
  653. TESSERACT_SRC += thirdparty/tesseract/src/lstm/parallel.cpp
  654. TESSERACT_SRC += thirdparty/tesseract/src/lstm/plumbing.cpp
  655. TESSERACT_SRC += thirdparty/tesseract/src/lstm/recodebeam.cpp
  656. TESSERACT_SRC += thirdparty/tesseract/src/lstm/reconfig.cpp
  657. TESSERACT_SRC += thirdparty/tesseract/src/lstm/reversed.cpp
  658. TESSERACT_SRC += thirdparty/tesseract/src/lstm/series.cpp
  659. TESSERACT_SRC += thirdparty/tesseract/src/lstm/stridemap.cpp
  660. TESSERACT_SRC += thirdparty/tesseract/src/lstm/weightmatrix.cpp
  661. TESSERACT_SRC += thirdparty/tesseract/src/textord/alignedblob.cpp
  662. TESSERACT_SRC += thirdparty/tesseract/src/textord/baselinedetect.cpp
  663. TESSERACT_SRC += thirdparty/tesseract/src/textord/bbgrid.cpp
  664. TESSERACT_SRC += thirdparty/tesseract/src/textord/blkocc.cpp
  665. TESSERACT_SRC += thirdparty/tesseract/src/textord/blobgrid.cpp
  666. TESSERACT_SRC += thirdparty/tesseract/src/textord/ccnontextdetect.cpp
  667. TESSERACT_SRC += thirdparty/tesseract/src/textord/cjkpitch.cpp
  668. TESSERACT_SRC += thirdparty/tesseract/src/textord/colfind.cpp
  669. TESSERACT_SRC += thirdparty/tesseract/src/textord/colpartition.cpp
  670. TESSERACT_SRC += thirdparty/tesseract/src/textord/colpartitiongrid.cpp
  671. TESSERACT_SRC += thirdparty/tesseract/src/textord/colpartitionset.cpp
  672. TESSERACT_SRC += thirdparty/tesseract/src/textord/devanagari_processing.cpp
  673. TESSERACT_SRC += thirdparty/tesseract/src/textord/drawtord.cpp
  674. TESSERACT_SRC += thirdparty/tesseract/src/textord/edgblob.cpp
  675. TESSERACT_SRC += thirdparty/tesseract/src/textord/edgloop.cpp
  676. TESSERACT_SRC += thirdparty/tesseract/src/textord/fpchop.cpp
  677. TESSERACT_SRC += thirdparty/tesseract/src/textord/gap_map.cpp
  678. TESSERACT_SRC += thirdparty/tesseract/src/textord/imagefind.cpp
  679. TESSERACT_SRC += thirdparty/tesseract/src/textord/linefind.cpp
  680. TESSERACT_SRC += thirdparty/tesseract/src/textord/makerow.cpp
  681. TESSERACT_SRC += thirdparty/tesseract/src/textord/oldbasel.cpp
  682. TESSERACT_SRC += thirdparty/tesseract/src/textord/pithsync.cpp
  683. TESSERACT_SRC += thirdparty/tesseract/src/textord/pitsync1.cpp
  684. TESSERACT_SRC += thirdparty/tesseract/src/textord/scanedg.cpp
  685. TESSERACT_SRC += thirdparty/tesseract/src/textord/sortflts.cpp
  686. TESSERACT_SRC += thirdparty/tesseract/src/textord/strokewidth.cpp
  687. TESSERACT_SRC += thirdparty/tesseract/src/textord/tabfind.cpp
  688. TESSERACT_SRC += thirdparty/tesseract/src/textord/tablefind.cpp
  689. TESSERACT_SRC += thirdparty/tesseract/src/textord/tablerecog.cpp
  690. TESSERACT_SRC += thirdparty/tesseract/src/textord/tabvector.cpp
  691. TESSERACT_SRC += thirdparty/tesseract/src/textord/textlineprojection.cpp
  692. TESSERACT_SRC += thirdparty/tesseract/src/textord/textord.cpp
  693. TESSERACT_SRC += thirdparty/tesseract/src/textord/topitch.cpp
  694. TESSERACT_SRC += thirdparty/tesseract/src/textord/tordmain.cpp
  695. TESSERACT_SRC += thirdparty/tesseract/src/textord/tospace.cpp
  696. TESSERACT_SRC += thirdparty/tesseract/src/textord/tovars.cpp
  697. TESSERACT_SRC += thirdparty/tesseract/src/textord/underlin.cpp
  698. TESSERACT_SRC += thirdparty/tesseract/src/textord/wordseg.cpp
  699. TESSERACT_SRC += thirdparty/tesseract/src/textord/workingpartset.cpp
  700. TESSERACT_SRC += thirdparty/tesseract/src/viewer/scrollview.cpp
  701. TESSERACT_SRC += thirdparty/tesseract/src/viewer/svmnode.cpp
  702. TESSERACT_SRC += thirdparty/tesseract/src/viewer/svutil.cpp
  703. TESSERACT_SRC += thirdparty/tesseract/src/wordrec/tface.cpp
  704. TESSERACT_SRC += thirdparty/tesseract/src/wordrec/wordrec.cpp
  705. ifeq ($(HAVE_AVX),yes)
  706. TESSERACT_DEFINES += -DHAVE_AVX -D__AVX__
  707. TESSERACT_BUILD_CFLAGS += -mavx
  708. TESSERACT_SRC += thirdparty/tesseract/src/arch/dotproductavx.cpp
  709. endif
  710. ifeq ($(HAVE_AVX2),yes)
  711. TESSERACT_DEFINES += -DHAVE_AVX2 -D__AVX2__
  712. TESSERACT_BUILD_CFLAGS += -mavx2
  713. TESSERACT_SRC += thirdparty/tesseract/src/arch/intsimdmatrixavx2.cpp
  714. endif
  715. ifeq ($(HAVE_FMA),yes)
  716. TESSERACT_DEFINES += -DHAVE_FMA -D__FMA__
  717. TESSERACT_BUILD_CFLAGS += -mfma
  718. TESSERACT_SRC += thirdparty/tesseract/src/arch/dotproductfma.cpp
  719. endif
  720. ifeq ($(HAVE_SSE4_1),yes)
  721. TESSERACT_DEFINES += -DHAVE_SSE4_1 -D__SSE4_1__
  722. TESSERACT_BUILD_CFLAGS += -msse4.1
  723. TESSERACT_SRC += thirdparty/tesseract/src/arch/dotproductsse.cpp
  724. TESSERACT_SRC += thirdparty/tesseract/src/arch/intsimdmatrixsse.cpp
  725. endif
  726. ifeq ($(HAVE_NEON),yes)
  727. TESSERACT_DEFINES += -DHAVE_NEON
  728. TESSERACT_BUILD_CFLAGS += -mfpu=neon
  729. endif
  730. # Always include the neon code - it will compile to nothing if
  731. # neon isn't enabled. We need to always include it, because it
  732. # will be used if __aarch64__ is defined, which implies the
  733. # presence of NEON even without the HAVE_NEON flags.
  734. TESSERACT_SRC += thirdparty/tesseract/src/arch/intsimdmatrixneon.cpp
  735. TESSERACT_BUILD_CFLAGS += $(TESSERACT_DEFINES)
  736. # --- ZXINGCPP (optional) ---
  737. ZXINGCPP_LANGFLAGS = -std=c++20
  738. ZXINGCPP_CFLAGS += -Ithirdparty/zxing-cpp/core/src
  739. ZXINGCPP_CFLAGS += -DZXING_EXPERIMENTAL_API
  740. ZXINGCPP_BUILD_CFLAGS = -DZXING_USE_ZINT
  741. ZXINGCPP_BUILD_CFLAGS += -DZXING_EXPERIMENTAL_API
  742. ZXINGCPP_BUILD_CFLAGS += -DZINT_NO_PNG
  743. ZXINGCPP_BUILD_CFLAGS += -Ithirdparty/zint/backend
  744. ZXINGCPP_BUILD_CFLAGS += -Iscripts/zxing-cpp
  745. ZXINGCPP_LIBS += -lstdc++
  746. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/aztec/AZDecoder.cpp
  747. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/aztec/AZDetector.cpp
  748. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/aztec/AZEncoder.cpp
  749. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/aztec/AZHighLevelEncoder.cpp
  750. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/aztec/AZReader.cpp
  751. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/aztec/AZToken.cpp
  752. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/aztec/AZWriter.cpp
  753. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/Barcode.cpp
  754. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/BarcodeFormat.cpp
  755. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/BinaryBitmap.cpp
  756. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/BitArray.cpp
  757. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/BitMatrix.cpp
  758. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/BitMatrixIO.cpp
  759. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/BitSource.cpp
  760. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/CharacterSet.cpp
  761. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/ConcentricFinder.cpp
  762. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/Content.cpp
  763. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/datamatrix/DMBitLayout.cpp
  764. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/datamatrix/DMDataBlock.cpp
  765. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/datamatrix/DMDecoder.cpp
  766. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/datamatrix/DMDetector.cpp
  767. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/datamatrix/DMECEncoder.cpp
  768. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/datamatrix/DMHighLevelEncoder.cpp
  769. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/datamatrix/DMReader.cpp
  770. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/datamatrix/DMSymbolInfo.cpp
  771. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/datamatrix/DMVersion.cpp
  772. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/datamatrix/DMWriter.cpp
  773. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/DecodeHints.cpp
  774. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/ECI.cpp
  775. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/Error.cpp
  776. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/GenericGF.cpp
  777. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/GenericGFPoly.cpp
  778. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/GlobalHistogramBinarizer.cpp
  779. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/GridSampler.cpp
  780. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/GTIN.cpp
  781. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/HRI.cpp
  782. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/HybridBinarizer.cpp
  783. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/libzueci/zueci.c
  784. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/maxicode/MCBitMatrixParser.cpp
  785. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/maxicode/MCDecoder.cpp
  786. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/maxicode/MCReader.cpp
  787. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/MultiFormatReader.cpp
  788. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/MultiFormatWriter.cpp
  789. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/oned/ODCodabarReader.cpp
  790. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/oned/ODCodabarWriter.cpp
  791. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/oned/ODCode128Patterns.cpp
  792. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/oned/ODCode128Reader.cpp
  793. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/oned/ODCode128Writer.cpp
  794. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/oned/ODCode39Reader.cpp
  795. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/oned/ODCode39Writer.cpp
  796. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/oned/ODCode93Reader.cpp
  797. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/oned/ODCode93Writer.cpp
  798. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/oned/ODDataBarCommon.cpp
  799. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/oned/ODDataBarExpandedBitDecoder.cpp
  800. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/oned/ODDataBarExpandedReader.cpp
  801. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/oned/ODDataBarLimitedReader.cpp
  802. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/oned/ODDataBarReader.cpp
  803. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/oned/ODDXFilmEdgeReader.cpp
  804. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/oned/ODEAN13Writer.cpp
  805. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/oned/ODEAN8Writer.cpp
  806. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/oned/ODITFReader.cpp
  807. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/oned/ODITFWriter.cpp
  808. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/oned/ODMultiUPCEANReader.cpp
  809. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/oned/ODReader.cpp
  810. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/oned/ODUPCAWriter.cpp
  811. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/oned/ODUPCEANCommon.cpp
  812. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/oned/ODUPCEWriter.cpp
  813. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/oned/ODWriterHelper.cpp
  814. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/pdf417/PDFBarcodeValue.cpp
  815. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/pdf417/PDFBoundingBox.cpp
  816. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/pdf417/PDFCodewordDecoder.cpp
  817. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/pdf417/PDFDecoder.cpp
  818. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/pdf417/PDFDetectionResult.cpp
  819. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/pdf417/PDFDetectionResultColumn.cpp
  820. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/pdf417/PDFDetector.cpp
  821. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/pdf417/PDFEncoder.cpp
  822. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/pdf417/PDFHighLevelEncoder.cpp
  823. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/pdf417/PDFModulusGF.cpp
  824. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/pdf417/PDFModulusPoly.cpp
  825. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/pdf417/PDFReader.cpp
  826. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/pdf417/PDFScanningDecoder.cpp
  827. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/pdf417/PDFWriter.cpp
  828. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/pdf417/ZXBigInteger.cpp
  829. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/PerspectiveTransform.cpp
  830. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/qrcode/QRBitMatrixParser.cpp
  831. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/qrcode/QRCodecMode.cpp
  832. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/qrcode/QRDataBlock.cpp
  833. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/qrcode/QRDecoder.cpp
  834. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/qrcode/QRDetector.cpp
  835. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/qrcode/QREncoder.cpp
  836. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/qrcode/QRErrorCorrectionLevel.cpp
  837. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/qrcode/QRFormatInformation.cpp
  838. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/qrcode/QRMaskUtil.cpp
  839. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/qrcode/QRMatrixUtil.cpp
  840. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/qrcode/QRReader.cpp
  841. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/qrcode/QRVersion.cpp
  842. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/qrcode/QRWriter.cpp
  843. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/ReadBarcode.cpp
  844. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/ReedSolomonDecoder.cpp
  845. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/ReedSolomonEncoder.cpp
  846. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/ResultPoint.cpp
  847. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/TextDecoder.cpp
  848. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/TextEncoder.cpp
  849. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/TextUtfEncoding.cpp
  850. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/Utf.cpp
  851. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/WhiteRectDetector.cpp
  852. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/WriteBarcode.cpp
  853. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/ZXingC.cpp
  854. ZXINGCPP_SRC += thirdparty/zxing-cpp/core/src/ZXingCpp.cpp
  855. ZXINGCPP_SRC += thirdparty/zint/backend/2of5.c
  856. ZXINGCPP_SRC += thirdparty/zint/backend/auspost.c
  857. ZXINGCPP_SRC += thirdparty/zint/backend/aztec.c
  858. ZXINGCPP_SRC += thirdparty/zint/backend/bc412.c
  859. ZXINGCPP_SRC += thirdparty/zint/backend/bmp.c
  860. ZXINGCPP_SRC += thirdparty/zint/backend/codablock.c
  861. ZXINGCPP_SRC += thirdparty/zint/backend/code.c
  862. ZXINGCPP_SRC += thirdparty/zint/backend/code1.c
  863. ZXINGCPP_SRC += thirdparty/zint/backend/code128.c
  864. ZXINGCPP_SRC += thirdparty/zint/backend/code16k.c
  865. ZXINGCPP_SRC += thirdparty/zint/backend/code49.c
  866. ZXINGCPP_SRC += thirdparty/zint/backend/common.c
  867. ZXINGCPP_SRC += thirdparty/zint/backend/composite.c
  868. ZXINGCPP_SRC += thirdparty/zint/backend/dllversion.c
  869. ZXINGCPP_SRC += thirdparty/zint/backend/dmatrix.c
  870. ZXINGCPP_SRC += thirdparty/zint/backend/dotcode.c
  871. ZXINGCPP_SRC += thirdparty/zint/backend/dxfilmedge.c
  872. ZXINGCPP_SRC += thirdparty/zint/backend/eci.c
  873. ZXINGCPP_SRC += thirdparty/zint/backend/emf.c
  874. ZXINGCPP_SRC += thirdparty/zint/backend/filemem.c
  875. ZXINGCPP_SRC += thirdparty/zint/backend/general_field.c
  876. ZXINGCPP_SRC += thirdparty/zint/backend/gif.c
  877. ZXINGCPP_SRC += thirdparty/zint/backend/gridmtx.c
  878. ZXINGCPP_SRC += thirdparty/zint/backend/gs1.c
  879. ZXINGCPP_SRC += thirdparty/zint/backend/hanxin.c
  880. ZXINGCPP_SRC += thirdparty/zint/backend/imail.c
  881. ZXINGCPP_SRC += thirdparty/zint/backend/large.c
  882. ZXINGCPP_SRC += thirdparty/zint/backend/library.c
  883. ZXINGCPP_SRC += thirdparty/zint/backend/mailmark.c
  884. ZXINGCPP_SRC += thirdparty/zint/backend/maxicode.c
  885. ZXINGCPP_SRC += thirdparty/zint/backend/medical.c
  886. ZXINGCPP_SRC += thirdparty/zint/backend/output.c
  887. ZXINGCPP_SRC += thirdparty/zint/backend/pcx.c
  888. ZXINGCPP_SRC += thirdparty/zint/backend/pdf417.c
  889. ZXINGCPP_SRC += thirdparty/zint/backend/plessey.c
  890. ZXINGCPP_SRC += thirdparty/zint/backend/png.c
  891. ZXINGCPP_SRC += thirdparty/zint/backend/postal.c
  892. ZXINGCPP_SRC += thirdparty/zint/backend/ps.c
  893. ZXINGCPP_SRC += thirdparty/zint/backend/qr.c
  894. ZXINGCPP_SRC += thirdparty/zint/backend/raster.c
  895. ZXINGCPP_SRC += thirdparty/zint/backend/reedsol.c
  896. ZXINGCPP_SRC += thirdparty/zint/backend/rss.c
  897. ZXINGCPP_SRC += thirdparty/zint/backend/svg.c
  898. ZXINGCPP_SRC += thirdparty/zint/backend/telepen.c
  899. ZXINGCPP_SRC += thirdparty/zint/backend/tif.c
  900. ZXINGCPP_SRC += thirdparty/zint/backend/ultra.c
  901. ZXINGCPP_SRC += thirdparty/zint/backend/upcean.c
  902. ZXINGCPP_SRC += thirdparty/zint/backend/vector.c
  903. # --- EXTRACT ---
  904. EXTRACT_CFLAGS += -Ithirdparty/extract/include -Ithirdparty/extract/src
  905. EXTRACT_SRC += thirdparty/extract/src/alloc.c
  906. EXTRACT_SRC += thirdparty/extract/src/astring.c
  907. EXTRACT_SRC += thirdparty/extract/src/boxer.c
  908. EXTRACT_SRC += thirdparty/extract/src/buffer.c
  909. EXTRACT_SRC += thirdparty/extract/src/document.c
  910. EXTRACT_SRC += thirdparty/extract/src/docx.c
  911. EXTRACT_SRC += thirdparty/extract/src/docx_template.c
  912. EXTRACT_SRC += thirdparty/extract/src/extract.c
  913. EXTRACT_SRC += thirdparty/extract/src/join.c
  914. EXTRACT_SRC += thirdparty/extract/src/json.c
  915. EXTRACT_SRC += thirdparty/extract/src/mem.c
  916. EXTRACT_SRC += thirdparty/extract/src/html.c
  917. EXTRACT_SRC += thirdparty/extract/src/odt.c
  918. EXTRACT_SRC += thirdparty/extract/src/odt_template.c
  919. EXTRACT_SRC += thirdparty/extract/src/outf.c
  920. EXTRACT_SRC += thirdparty/extract/src/rect.c
  921. EXTRACT_SRC += thirdparty/extract/src/sys.c
  922. EXTRACT_SRC += thirdparty/extract/src/text.c
  923. EXTRACT_SRC += thirdparty/extract/src/xml.c
  924. EXTRACT_SRC += thirdparty/extract/src/zip.c