Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Develop #39

Merged
merged 34 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
a0df236
Update cmake.yml
Tom1975 Apr 5, 2023
f83592a
Create ubuntu.yml (#23)
Tom1975 Apr 5, 2023
f10094c
Fix/ubuntu build (#24)
Tom1975 Apr 5, 2023
2b18e8b
Update README.md
Tom1975 Apr 5, 2023
7e09e91
Update cmake.yml (#25)
Tom1975 Apr 5, 2023
a2d6652
Merge branch 'master' into develop
Apr 5, 2023
8a37e2a
Update cmake.yml (#27)
Tom1975 Apr 5, 2023
8e93adf
Update core to latest
Apr 12, 2023
05ef54e
Rename cmake.yml to windows.yml
Tom1975 Apr 12, 2023
b6da11d
Create Releases.yml
Tom1975 Apr 12, 2023
2542f96
Update windows.yml
Tom1975 Apr 12, 2023
e880b40
Update Releases.yml
Tom1975 Apr 12, 2023
35a42fc
Update Releases.yml
Tom1975 Apr 12, 2023
945bd33
Update windows.yml
Tom1975 Apr 12, 2023
66facaa
Update windows.yml
Tom1975 Apr 12, 2023
47596ee
Update windows.yml
Tom1975 Apr 12, 2023
929b040
Update windows.yml
Tom1975 Apr 12, 2023
4f5c30d
Delete Releases.yml
Tom1975 Apr 12, 2023
0cfe3ae
Update windows.yml
Tom1975 Apr 12, 2023
8c2e00c
Update windows.yml
Tom1975 Apr 12, 2023
10bf535
Update windows.yml (#29)
Tom1975 Apr 13, 2023
d03eda8
Merge remote-tracking branch 'origin/master' into develop
Apr 13, 2023
93c71be
Feature/gui debugger (#31)
Tom1975 May 14, 2023
beb2325
Feature/status bar (#33)
Tom1975 May 26, 2023
2711808
Merge remote-tracking branch 'origin/master' into develop
Tom1975 May 26, 2023
2d4b5b6
Set version v2.0.1
Tom1975 May 26, 2023
596fe4b
Feature/moving to qt6 (#36)
Tom1975 Jun 1, 2023
2cd467b
Update README.md
Tom1975 Jun 2, 2023
36c528e
Fix : At startup, set the combo box to current loaded configuration
Jun 2, 2023
e89a4df
Merge branch 'develop' of https://github.com/Tom1975/SugarboxV2 into …
Jun 2, 2023
c50014a
add changelog
Jun 2, 2023
cece32e
Feature/tape counter edit (#37)
Tom1975 Jul 24, 2023
6f21be6
Feature/script engine (#38)
Tom1975 Nov 29, 2023
85c50e2
Merge tag 'v2.0.1' into develop
Nov 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,17 @@ jobs:
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '5.14.2'
version: '6.5.*'
modules: qtwebsockets
target: 'desktop'
arch: ${{ matrix.qt_version }}
install-deps: 'true'

- name: Install Third Party
run: |
brew install openal-soft
brew install qt5
export Qt5_DIR=$(brew --prefix)/opt/qt5
brew install qt6
export Qt6_DIR=$(brew --prefix)/opt/qt6


- name: Checkout submodules
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
- name: Prepare Environement
run: |
sudo apt-get update
sudo apt install qtbase5-dev --fix-missing
sudo apt-get install libqt5websockets5-dev --fix-missing
sudo apt install qt6-base-dev --fix-missing
sudo apt-get install libqt6websockets6-dev --fix-missing
sudo apt-get install udev build-essential libpthread-stubs0-dev libgl1-mesa-dev libx11-dev libxrandr-dev libfreetype6-dev libglew-dev libjpeg-dev libxi-dev --fix-missing
sudo apt-get install libxinerama-dev libxcursor-dev --fix-missing
sudo apt-get install libudev-dev libglu1-mesa-dev libsecret-1-dev libnotify-dev --fix-missing
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ jobs:
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '5.14.2'
version: '6.5.*'
target: 'desktop'
arch: win32_msvc2017
arch: win64_msvc2019_64
install-deps: 'true'
modules: qtwebsockets

- name: Install udev
run: ${{ matrix.other_installer }}
Expand All @@ -43,7 +44,7 @@ jobs:
- name: Configure CMake
run: |
echo 'Version : ' ${{ inputs.version }}
cmake -B ${{github.workspace}}\build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{github.workspace}}\install -AWin32 -DSUGARBOX_VERSION='${{ inputs.version }}'
cmake -B ${{github.workspace}}\build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{github.workspace}}\install -DSUGARBOX_VERSION='${{ inputs.version }}'

- name: Build
# Build your program with the given configuration
Expand All @@ -61,7 +62,7 @@ jobs:
- name: Archive zip
uses: actions/upload-artifact@v3
with:
name: SugarboxV2Win32
name: SugarboxV2
path: ${{github.workspace}}\build\*.7z


2 changes: 1 addition & 1 deletion CPCCore
Submodule CPCCore updated 69 files
+1 −6 .github/workflows/test_windows.yml
+38 −0 AmstradCore/AY8912.cpp
+39 −0 AmstradCore/AY8912.h
+43 −0 AmstradCore/BusLine.cpp
+36 −0 AmstradCore/BusLine.h
+52 −0 AmstradCore/CMakeLists.txt
+38 −0 AmstradCore/CRTC_0.cpp
+41 −0 AmstradCore/CRTC_0.h
+273 −0 AmstradCore/GateArray.cpp
+94 −0 AmstradCore/GateArray.h
+21 −0 AmstradCore/IComponent.h
+134 −0 AmstradCore/Motherboard.cpp
+105 −0 AmstradCore/Motherboard.h
+28 −0 AmstradCore/PPI8255.cpp
+52 −0 AmstradCore/PPI8255.h
+64 −0 AmstradCore/Sampler.cpp
+33 −0 AmstradCore/Sampler.h
+41 −0 AmstradCore/SingleLineSample.cpp
+20 −0 AmstradCore/SingleLineSample.h
+40 −0 AmstradCore/Z80.cpp
+158 −0 AmstradCore/Z80.h
+776 −0 AmstradCore/Z80Disassembler.cpp
+66 −0 AmstradCore/Z80Disassembler.h
+802 −0 AmstradCore/Z80_Opcodes_fetch.cpp
+70 −0 AmstradCoreTests/CMakeLists.txt
+103 −0 AmstradCoreTests/Test_GateArray.cpp
+40 −0 AmstradCoreTests/Test_Z80.cpp
+3 −0 CMakeLists.txt
+0 −1 CPCCoreEmu/BreakpointHandler.h
+1 −1 CPCCoreEmu/ClockLine.cpp
+992 −0 CPCCoreEmu/GateArray.cpp
+186 −0 CPCCoreEmu/GateArray.h
+1 −0 CPCCoreEmu/IKeyboard.h
+34 −13 CPCCoreEmu/Machine.cpp
+4 −2 CPCCoreEmu/Machine.h
+7 −0 CPCCoreEmu/Motherboard.cpp
+2 −0 CPCCoreEmu/Motherboard.h
+1 −1 CPCCoreEmu/Screen.h
+1 −1 CPCCoreEmu/Sig.h
+14 −13 CPCCoreEmu/SoundMixer.cpp
+16 −0 CPCCoreEmu/SugarboxInitialisation.h
+16 −13 CPCCoreEmu/Tape.cpp
+1 −1 CPCCoreEmu/Tape.h
+0 −23 CPCCoreEmu/VGA.cpp
+1 −1 CPCCoreEmu/VGA.h
+0 −1 CPCCoreEmu/Z80_Full.cpp
+87 −0 CPCCoreEmu/Z80_Full.h
+50 −0 ShakerGenerator/CMakeLists.txt
+203 −0 ShakerGenerator/Display.cpp
+95 −0 ShakerGenerator/Display.h
+134 −0 ShakerGenerator/TestConf.ini
+37 −0 ShakerGenerator/TestConf_0.ini
+37 −0 ShakerGenerator/TestConf_1.ini
+37 −0 ShakerGenerator/TestConf_2.ini
+37 −0 ShakerGenerator/TestConf_3.ini
+37 −0 ShakerGenerator/TestConf_4.ini
+855 −0 ShakerGenerator/TestUtils.cpp
+467 −0 ShakerGenerator/TestUtils.h
+314 −0 ShakerGenerator/Test_Shaker_generation.cpp
+6 −49 UnitTests/CMakeLists.txt
+1 −1 UnitTests/Display.h
+37 −0 UnitTests/TestConf_0.ini
+37 −0 UnitTests/TestConf_1.ini
+37 −0 UnitTests/TestConf_2.ini
+37 −0 UnitTests/TestConf_3.ini
+37 −0 UnitTests/TestConf_4.ini
+1 −1 UnitTests/Test_Dumps.cpp
+ UnitTests/res/Shaker/shaker24.dsk
+ UnitTests/res/Shaker/shaker_addon.dsk
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

![Sugarbox V2](https://raw.githubusercontent.com/Tom1975/SugarboxV2/master/SplashScreen.bmp)

[![Windows](https://github.com/Tom1975/SugarboxV2/actions/workflows/cmake.yml/badge.svg)](https://github.com/Tom1975/SugarboxV2/actions/workflows/cmake.yml)
[![Windows](https://github.com/Tom1975/SugarboxV2/actions/workflows/windows.yml/badge.svg)](https://github.com/Tom1975/SugarboxV2/actions/workflows/windows.yml)
[![Ubuntu](https://github.com/Tom1975/SugarboxV2/actions/workflows/ubuntu.yml/badge.svg)](https://github.com/Tom1975/SugarboxV2/actions/workflows/ubuntu.yml)
[![MacOS](https://github.com/Tom1975/SugarboxV2/actions/workflows/macos.yml/badge.svg)](https://github.com/Tom1975/SugarboxV2/actions/workflows/macos.yml)

Expand Down
27 changes: 15 additions & 12 deletions Sugarbox/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

set (SUGARBOX_VERSION "2.0.1" CACHE STRING "Version to build" FORCE)
set (SUGARBOX_VERSION "2.0.2" CACHE STRING "Version to build" FORCE)

MESSAGE (STATUS "Version :" ${SUGARBOX_VERSION})

Expand All @@ -32,31 +32,31 @@ set(CompilerFlags

)

find_package(Qt5 COMPONENTS Widgets WebSockets REQUIRED)
qt5_add_resources(QRCS resources.qrc)
find_package(Qt6 COMPONENTS Widgets WebSockets OpenGLWidgets OpenGL REQUIRED)
qt6_add_resources(QRCS resources.qrc)

if(Qt5_FOUND AND WIN32 AND TARGET Qt5::qmake AND NOT TARGET Qt5::windeployqt)
get_target_property(_qt5_qmake_location Qt5::qmake IMPORTED_LOCATION)
if(Qt6_FOUND AND WIN32 AND TARGET Qt6::qmake AND NOT TARGET Qt6::windeployqt)
get_target_property(_qt6_qmake_location Qt6::qmake IMPORTED_LOCATION)

execute_process(
COMMAND "${_qt5_qmake_location}" -query QT_INSTALL_PREFIX
COMMAND "${_qt6_qmake_location}" -query QT_INSTALL_PREFIX
RESULT_VARIABLE return_code
OUTPUT_VARIABLE qt5_install_prefix
OUTPUT_VARIABLE qt6_install_prefix
OUTPUT_STRIP_TRAILING_WHITESPACE
)

set(imported_location "${qt5_install_prefix}/bin/windeployqt.exe")
set(imported_location "${qt6_install_prefix}/bin/windeployqt.exe")

if(EXISTS ${imported_location})
add_executable(Qt5::windeployqt IMPORTED)
add_executable(Qt6::windeployqt IMPORTED)

set_target_properties(Qt5::windeployqt PROPERTIES
set_target_properties(Qt6::windeployqt PROPERTIES
IMPORTED_LOCATION ${imported_location}
)
endif()
endif()

get_target_property(_qmake_executable Qt5::qmake IMPORTED_LOCATION)
get_target_property(_qmake_executable Qt6::qmake IMPORTED_LOCATION)
get_filename_component(_qt_bin_dir "${_qmake_executable}" DIRECTORY)
find_program(WINDEPLOYQT_EXECUTABLE windeployqt HINTS "${_qt_bin_dir}")

Expand Down Expand Up @@ -146,8 +146,10 @@ set ( CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_INSTALL_BINDIR})
set ( SUGARBOX_OUTPUT_DEBUG ${CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG})

# Link test executable against gtest & gtest_main
target_link_libraries(Sugarbox CPCCoreEmu zlibstatic OpenAL Qt5::Core Qt5::Widgets Qt5::WebSockets ${LIB_EXT})
target_link_libraries(Sugarbox CPCCoreEmu zlibstatic OpenAL Qt6::Core Qt6::Widgets Qt6::WebSockets Qt6::OpenGLWidgets ${LIB_EXT})

set_property(TARGET Sugarbox PROPERTY VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_INSTALL_BINDIR}")
MESSAGE ( CMAKE_INSTALL_BINDIR = ${CMAKE_INSTALL_BINDIR})

if (APPLE)
target_link_libraries(Sugarbox "-framework OpenGL")
Expand All @@ -161,6 +163,7 @@ install ( DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/CART" DESTINATION .)
install ( DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/CONF" DESTINATION .)
install ( DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/Resources" DESTINATION .)

set_property(TARGET Sugarbox PROPERTY VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_INSTALL_PREFIX}")

# MSVC CPACK Qt dlls
IF(MSVC)
Expand Down
Loading