Skip to content

Commit

Permalink
Build lottie by passing -DLOTTIE_MODULE=OFF
Browse files Browse the repository at this point in the history
fixes #92
  • Loading branch information
ed-asriyan committed May 26, 2024
1 parent 327c653 commit 778ba49
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
run: cmake --preset conan-release

- name: Build the app
run: cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt && cmake --build . --config Release
run: cmake -DCMAKE_BUILD_TYPE=Release -DLOTTIE_MODULE=OFF CMakeLists.txt && cmake --build . --config Release

- name: Upload executable as artifact
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: cmake --preset conan-default

- name: Build the app
run: cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt && cmake --build . --config Release
run: cmake -DCMAKE_BUILD_TYPE=Release -DLOTTIE_MODULE=OFF CMakeLists.txt && cmake --build . --config Release

- name: Upload executable as artifact
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN conan install . --build=missing -s build_type=Release

COPY CMakeLists.txt .
COPY src src
RUN cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt && cmake --build . --config Release
RUN cmake -DCMAKE_BUILD_TYPE=Release -DLOTTIE_MODULE=OFF CMakeLists.txt && cmake --build . --config Release

FROM debian:buster-slim as lottie-to-gif
COPY --from=builder-gifski /usr/local/cargo/bin/gifski /usr/bin/gifski
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Results will be saved next to each source file in the same directory.
```
3. Build
```commandline
cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt && cmake --build . --config Release
cmake -DCMAKE_BUILD_TYPE=Release -DLOTTIE_MODULE=OFF CMakeLists.txt && cmake --build . --config Release
```
4. Convert!
- To convert to GIF:
Expand Down
1 change: 1 addition & 0 deletions test-files/2.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions test-files/index.json.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
},
"1.json": {
"link": "https://lottiefiles.com/18168-stay-safe-stay-home"
},
"2.json": {
"link": "https://github.com/ed-asriyan/lottie-converter/issues/92"
}
}

0 comments on commit 778ba49

Please sign in to comment.