Showing
5 changed files
with
19 additions
and
2 deletions
| @@ -7,7 +7,7 @@ on: | @@ -7,7 +7,7 @@ on: | ||
| 7 | branches: [master] | 7 | branches: [master] |
| 8 | 8 | ||
| 9 | jobs: | 9 | jobs: |
| 10 | - build: | 10 | + linux: |
| 11 | runs-on: ubuntu-latest | 11 | runs-on: ubuntu-latest |
| 12 | 12 | ||
| 13 | steps: | 13 | steps: |
| @@ -15,8 +15,10 @@ jobs: | @@ -15,8 +15,10 @@ jobs: | ||
| 15 | - uses: subosito/flutter-action@v1 | 15 | - uses: subosito/flutter-action@v1 |
| 16 | with: | 16 | with: |
| 17 | channel: stable | 17 | channel: stable |
| 18 | + - name: Enable Linux for flutter | ||
| 19 | + run: flutter config --enable-linux-desktop | ||
| 18 | - name: Install utils | 20 | - name: Install utils |
| 19 | - run: sudo apt install poppler-utils imagemagick | 21 | + run: sudo apt install poppler-utils imagemagick clang cmake ninja-build pkg-config libgtk-3-dev |
| 20 | - name: Run analysis | 22 | - name: Run analysis |
| 21 | run: make analyze | 23 | run: make analyze |
| 22 | - name: Run tests | 24 | - name: Run tests |
| @@ -27,3 +29,11 @@ jobs: | @@ -27,3 +29,11 @@ jobs: | ||
| 27 | run: test -z "$(git status --porcelain)" | 29 | run: test -z "$(git status --porcelain)" |
| 28 | - name: Push to codecov | 30 | - name: Push to codecov |
| 29 | run: bash <(curl -s https://codecov.io/bash) | 31 | run: bash <(curl -s https://codecov.io/bash) |
| 32 | + - name: Prepare build | ||
| 33 | + run: cd printing/example; flutter create -t app --no-overwrite --org net.nfet --project-name example . | ||
| 34 | + - name: Build example for Linux | ||
| 35 | + run: cd printing/example; flutter build -v linux | ||
| 36 | + - name: Build example for Android | ||
| 37 | + run: cd printing/example; flutter build -v apk | ||
| 38 | + - name: Build demo for Web | ||
| 39 | + run: cd demo; flutter build -v web |
| @@ -20,6 +20,7 @@ | @@ -20,6 +20,7 @@ | ||
| 20 | #include <sys/mman.h> | 20 | #include <sys/mman.h> |
| 21 | #include <sys/types.h> | 21 | #include <sys/types.h> |
| 22 | #include <sys/wait.h> | 22 | #include <sys/wait.h> |
| 23 | +#include <cstring> | ||
| 23 | #include <string> | 24 | #include <string> |
| 24 | 25 | ||
| 25 | #include <fpdfview.h> | 26 | #include <fpdfview.h> |
| @@ -17,6 +17,10 @@ | @@ -17,6 +17,10 @@ | ||
| 17 | #ifndef PRINTING_PLUGIN_PRINT_JOB_H_ | 17 | #ifndef PRINTING_PLUGIN_PRINT_JOB_H_ |
| 18 | #define PRINTING_PLUGIN_PRINT_JOB_H_ | 18 | #define PRINTING_PLUGIN_PRINT_JOB_H_ |
| 19 | 19 | ||
| 20 | +#ifndef _GNU_SOURCE | ||
| 21 | +#define _GNU_SOURCE 1 | ||
| 22 | +#endif | ||
| 23 | + | ||
| 20 | #include <flutter_linux/flutter_linux.h> | 24 | #include <flutter_linux/flutter_linux.h> |
| 21 | #include <gtk/gtk.h> | 25 | #include <gtk/gtk.h> |
| 22 | #include <gtk/gtkunixprint.h> | 26 | #include <gtk/gtkunixprint.h> |
| @@ -16,6 +16,7 @@ | @@ -16,6 +16,7 @@ | ||
| 16 | 16 | ||
| 17 | #include "include/printing/printing_plugin.h" | 17 | #include "include/printing/printing_plugin.h" |
| 18 | 18 | ||
| 19 | +#include <cstring> | ||
| 19 | #include <memory> | 20 | #include <memory> |
| 20 | 21 | ||
| 21 | #include <flutter_linux/flutter_linux.h> | 22 | #include <flutter_linux/flutter_linux.h> |
-
Please register or login to post a comment