Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
HinTak committed Jan 9, 2024
0 parents commit b626444
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI

on:
push:
tags:
- BUILD-*

jobs:
mac-job:
runs-on: macos-12
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
submodules: true
- run: ./build.sh
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
*.so
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "jbig2dec"]
path = jbig2dec
url = [email protected]:ArtifexSoftware/jbig2dec.git
[submodule "caj2pdf"]
path = caj2pdf
url = [email protected]:caj2pdf/caj2pdf.git
11 changes: 11 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

pushd jbig2dec
cc -I . -Wall -fPIC -shared -o ../libjbig2codec.so ../caj2pdf/lib/decode_jbig2data_x.cc \
jbig2.c jbig2_arith.c jbig2_arith_int.c jbig2_arith_iaid.c jbig2_huffman.c jbig2_hufftab.c jbig2_segment.c \
jbig2_page.c jbig2_symbol_dict.c jbig2_text.c jbig2_generic.c jbig2_refinement.c jbig2_mmr.c jbig2_halftone.c jbig2_image.c
popd

pushd caj2pdf/lib
cc -Wall -fPIC --shared -o ../../libjbigdec.so jbigdec.cc JBigDecode.cc
popd
1 change: 1 addition & 0 deletions caj2pdf
Submodule caj2pdf added at e7bb0b
1 change: 1 addition & 0 deletions jbig2dec
Submodule jbig2dec added at ee53a7

0 comments on commit b626444

Please sign in to comment.