-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #110 from SchrodingersGat/ci-build
* Add some more basic plugins * Ensure filter plugins get loaded * Build * Build for windows * mingw on windows * Fix lib target for linuxz * Use mingw32-make * Speicfy tools for windows build * Tweak * Another go Ref: https://ddalcino.github.io/aqt-list-server/ * Add clean step * Update build.yaml Bump mingw tools version
- Loading branch information
Showing
18 changed files
with
750 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# Build lumberjack application and plugins | ||
|
||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
linux: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
- name: Install Qt | ||
uses: jurplel/install-qt-action@v4 | ||
with: | ||
version: '6.8.1' | ||
cache: true | ||
- name: Build Qwt | ||
run: | | ||
cd qwt | ||
qmake qwt.pro | ||
make | ||
sudo make install | ||
- name: Build Lumberjack | ||
run: | | ||
qmake lumberjack.pro | ||
make | ||
- name: Build Plugins | ||
run: | | ||
cd plugins | ||
qmake plugins.pro | ||
make | ||
windows: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
- name: Install Qt | ||
uses: jurplel/install-qt-action@v4 | ||
with: | ||
aqtversion: '==3.1.*' | ||
version: '6.8.1' | ||
host: 'windows' | ||
target: 'desktop' | ||
arch: 'win64_mingw' | ||
tools: 'tools_mingw1310' | ||
cache: true | ||
- name: Build Qwt | ||
run: | | ||
cd qwt | ||
qmake qwt.pro | ||
mingw32-make clean | ||
mingw32-make | ||
mingw32-make install | ||
- name: Build Lumberjack | ||
run: | | ||
qmake lumberjack.pro | ||
mingw32-make | ||
- name: Build Plugins | ||
run: | | ||
cd plugins | ||
qmake plugins.pro | ||
mingw32-make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#include "offset_filter.hpp" | ||
|
||
|
||
OffsetFilter::OffsetFilter() | ||
{ | ||
// TODO | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#ifndef LUMBERJACK_CSV_IMPORTER_HPP | ||
#define LUMBERJACK_CSV_IMPORTER_HPP | ||
|
||
#include "offset_filter_global.h" | ||
#include "plugin_filter.hpp" | ||
|
||
|
||
/** | ||
* @brief The ScaleOffsetFilter class provides simple scaling and offset functionality | ||
*/ | ||
class CUSTOM_FILTER_EXPORT OffsetFilter : public FilterPlugin | ||
{ | ||
Q_OBJECT | ||
Q_PLUGIN_METADATA(IID FilterInterface_iid) | ||
Q_INTERFACES(FilterPlugin) | ||
public: | ||
OffsetFilter(); | ||
|
||
// Base plugin functionality | ||
virtual QString pluginName(void) const override { return m_name; } | ||
virtual QString pluginDescription(void) const override { return m_description; } | ||
virtual QString pluginVersion(void) const override { return m_version; } | ||
|
||
protected: | ||
const QString m_name = "Offset Filter"; | ||
const QString m_description = "Apply custom offset to a dataset"; | ||
const QString m_version = "0.1.0"; | ||
|
||
}; | ||
|
||
#endif // LUMBERJACK_CSV_IMPORTER_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{ "Keys": [ "offset_filter" ] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
QT += gui | ||
|
||
TEMPLATE = lib | ||
DEFINES += CSV_EXPORTER_LIBRARY | ||
|
||
CONFIG += c++17 | ||
CONFIG -= debug_and_release | ||
|
||
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 | ||
|
||
INCLUDEPATH += \ | ||
../../src \ | ||
../../src/plugins | ||
|
||
HEADERS += \ | ||
offset_filter_global.h \ | ||
offset_filter.hpp \ | ||
../../src/plugins/plugin_base.hpp \ | ||
../../src/plugins/plugin_filter.hpp \ | ||
|
||
SOURCES += \ | ||
offset_filter.cpp | ||
|
||
# Default rules for deployment. | ||
unix { | ||
target.path = /usr/lib | ||
} | ||
|
||
# Specify output directory | ||
CONFIG(debug, debug|release) { | ||
CONFIG += debug | ||
DESTDIR = build/debug | ||
|
||
} else { | ||
CONFIG += release | ||
DESTDIR = build/release | ||
} | ||
|
||
RCC_DIR = $$DESDIR | ||
MOC_DIR = $$DESTDIR/moc | ||
OBJECTS_DIR = $$DESTDIR/objects | ||
|
||
#Set the location for the generated ui_xxxx.h files | ||
UI_DIR = build/ui | ||
|
||
!isEmpty(target.path): INSTALLS += target | ||
|
||
DISTFILES += \ | ||
offset_filter.json |
Oops, something went wrong.