Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ubruhin committed Mar 17, 2024
1 parent b9adcfc commit 06815bb
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 21 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ jobs:
tools: "tools_mingw,qt.tools.win32_mingw810"
compiler_path: "D:/a/funq/Qt/Tools/mingw810_32/bin"
nosetests: 0 # Nosetest not working anymore
- qt: 6
qt_full: "6.7.0"
arch: "win64_mingw"
tools: "tools_mingw1310"
compiler_path: "D:/a/funq/Qt/Tools/mingw1310_64/bin"
nosetests: 0 # Nosetest not working anymore
#- qt: 6
# qt_full: "6.7.0"
# arch: "win64_mingw"
# tools: "tools_mingw1310"
# compiler_path: "D:/a/funq/Qt/Tools/mingw1310_64/bin"
# nosetests: 0 # Nosetest not working anymore
env:
CMAKE_GENERATOR: "MinGW Makefiles"
CC: "${{ matrix.compiler_path }}/gcc.exe"
Expand All @@ -176,12 +176,10 @@ jobs:
cd build
cmake ../server -DBUILD_TESTS=1 -DBUILD_DISALLOW_WARNINGS=1
make
# Note: The executables don't run yet, don't know why :-/
# - name: Run libFunq tests
# run: build/tests/libFunq/testLibFunq.exe
# - name: Run protocole tests
# run: build/tests/protocole/testProtocole.exe
- name: Run libFunq tests
run: build\tests\libFunq\testLibFunq.exe
- name: Run protocole tests
run: build\tests\protocole\testProtocole.exe

# Server
- name: Install server
Expand All @@ -196,7 +194,11 @@ jobs:

# Functional tests
- name: Build test app
run: cd tests-functionnal/funq-test-app && cmake . && make
run: |
cp build\libFunq.dll tests-functionnal\
cd tests-functionnal/funq-test-app
cmake .
make
- name: Test functional
run: cd tests-functionnal && nosetests
if: ${{ matrix.nosetests != 0}}
19 changes: 13 additions & 6 deletions server/libFunq/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC OFF)
set(CMAKE_AUTORCC OFF)

add_library(
Funq SHARED
set(
FUNQ_SOURCES
delayedresponse.cpp
delayedresponse.h
dragndropresponse.cpp
Expand All @@ -25,16 +25,23 @@ add_library(
shortcutresponse.h
)
if(WIN32)
target_sources(Funq PRIVATE WindowsInjector.cpp WindowsInjector.h)
list(APPEND FUNQ_SOURCES WindowsInjector.cpp WindowsInjector.h)
else()
target_sources(Funq PRIVATE ldPreloadInjector.cpp)
list(APPEND FUNQ_SOURCES ldPreloadInjector.cpp)
endif()
target_link_libraries(
Funq PUBLIC

set(
FUNQ_DEPENDENCIES
${QT}::Core
${QT}::Gui
${QT}::Network
${QT}::Widgets
${QT}::Test
$<$<BOOL:${WITH_QTQUICK}>:${QT}::Quick>
)

add_library(FunqStatic STATIC ${FUNQ_SOURCES})
target_link_libraries(FunqStatic PUBLIC ${FUNQ_DEPENDENCIES})

add_library(Funq SHARED ${FUNQ_SOURCES})
target_link_libraries(Funq PUBLIC ${FUNQ_DEPENDENCIES})
2 changes: 1 addition & 1 deletion server/tests/libFunq/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ target_compile_options(
)
target_link_libraries(
testLibFunq PUBLIC
Funq
FunqStatic
${QT}::Core
${QT}::Gui
${QT}::Widgets
Expand Down
2 changes: 1 addition & 1 deletion server/tests/protocole/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ target_include_directories(
)
target_link_libraries(
testProtocole PUBLIC
Funq
FunqStatic
${QT}::Core
)

0 comments on commit 06815bb

Please sign in to comment.