Skip to content

Commit

Permalink
feat(plugin): enable qmake for core22 (#4162)
Browse files Browse the repository at this point in the history
  • Loading branch information
ScarlettGatelyMoore authored Mar 12, 2024
1 parent 3e1d1b2 commit d2731f1
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/spread/extensions/kde-neon/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ summary: Build and run a basic kde snap using extensions
# available on a subset of all the architectures this testbed
# can run on.
systems:
- ubuntu-20.04
- ubuntu-20.04-64
- ubuntu-20.04-amd64
- ubuntu-22.04
- ubuntu-22.04-64
- ubuntu-22.04-amd64
Expand Down Expand Up @@ -51,7 +48,6 @@ execute: |
snap list kf5-5-113-qt-5-15-11-core22
fi
# Verify all dependencies were found.
if echo "$output" | grep -q "part is missing libraries"; then
echo "failed to find content snaps' libraries"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include <stdio.h>

int main()
{
printf("hello world\n");
return 0;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CONFIG = console release
SOURCES += hello.c
target.path = /bin/
INSTALLS += target
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: qmake-hello
version: "1.0"
summary: test the qmake plugin
description: |
This is a basic qmake snap. It just prints a hello world.
If you want to add other functionalities to this snap, please don't.
Make a new one.
grade: devel
base: core22
confinement: strict

apps:
qmake-hello:
command: bin/hello

parts:
hello:
plugin: qmake
qmake-parameters:
- -Wall
source: .
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ environment:
SNAP/colcon_ros2_wrapper: colcon-ros2-wrapper
SNAP/flutter: flutter-hello
SNAP/python: python-hello
SNAP/qmake: qmake-hello

prepare: |
#shellcheck source=tests/spread/tools/snapcraft-yaml.sh
Expand Down

0 comments on commit d2731f1

Please sign in to comment.