Skip to content

Commit

Permalink
Fix debug_and_release configuration for core_lib and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
J5lx committed Sep 24, 2023
1 parent 73746ce commit f4c5da1
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:

- name: Configure build
run: mkdir build; ${{runner.os == 'Linux' && matrix.qt == 6 && 'qmake6' || 'qmake'}}
-o build PREFIX=/usr CONFIG+=release CONFIG+=GIT
-o build PREFIX=/usr CONFIG-=debug_and_release CONFIG+=release CONFIG+=GIT
CONFIG+=PENCIL2D_${{github.ref == 'refs/heads/release' && 'RELEASE' || 'NIGHTLY'}}
${{matrix.qt == 6 && 'CONFIG+=c++17 QMAKE_CXX_FLAGS+=-std=c++17' || ''}}

Expand All @@ -102,7 +102,7 @@ jobs:

- name: Run tests
env: { QT_QPA_PLATFORM: minimal }
run: build/tests/bin/tests
run: build/tests/tests

- name: Create package
id: package
Expand Down
7 changes: 1 addition & 6 deletions core_lib/core_lib.pro
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,12 @@

! include( ../util/common.pri ) { error( Could not find the common.pri file! ) }

QT += core widgets gui xml multimedia svg

TEMPLATE = lib
CONFIG += staticlib precompile_header
QT += core widgets gui xml multimedia svg

RESOURCES += data/core_lib.qrc

MOC_DIR = .moc
OBJECTS_DIR = .obj
UI_DIR = .ui

INCLUDEPATH += src \
src/graphics \
src/graphics/bitmap \
Expand Down
10 changes: 2 additions & 8 deletions tests/tests.pro
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,12 @@

! include( ../util/common.pri ) { error( Could not find the common.pri file! ) }

QT += core widgets gui xml multimedia svg testlib

TEMPLATE = app

TARGET = tests

CONFIG += console
CONFIG -= app_bundle
QT += core widgets gui xml multimedia svg testlib

MOC_DIR = .moc
OBJECTS_DIR = .obj
DESTDIR = bin
TARGET = tests

RESOURCES += data/tests.qrc

Expand Down
2 changes: 1 addition & 1 deletion util/appveyor-mingw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ after_build:

test_script:
- echo "Running tests"
- cd "%APPVEYOR_BUILD_FOLDER%\build\tests\bin"
- cd "%APPVEYOR_BUILD_FOLDER%\build\tests\release"
- tests.exe

for:
Expand Down
2 changes: 1 addition & 1 deletion util/appveyor-msvc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ after_build:

test_script:
- echo "Running tests"
- tests\bin\tests.exe
- tests\release\tests.exe

for:
- matrix:
Expand Down
1 change: 0 additions & 1 deletion util/common.pri
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

VERSION = 0.6.6
DEFINES += APP_VERSION=\\\"$$VERSION\\\"

Expand Down

0 comments on commit f4c5da1

Please sign in to comment.