Skip to content

Commit

Permalink
Merge pull request #32 from Im-Rises/develop
Browse files Browse the repository at this point in the history
wip
  • Loading branch information
Im-Rises authored Apr 12, 2024
2 parents 5af0c81 + eae3d26 commit e7354e5
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/cmake-vcpkg-emscripten-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ jobs:
# run: emmake make -C build

- name: Configure and build with CMake
run: ./build-wasm.sh buildWasm
run: |
chmod +x build-wasm.sh
./build-wasm.sh buildWasm
- name: Copy artefacts to web folder
run: |
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/cmake-vcpkg-emscripten.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,6 @@ jobs:
# run: emmake make -C build

- name: Configure and build with CMake
run: ./build-wasm.sh buildWasm
run: |
chmod +x build-wasm.sh
./build-wasm.sh buildWasm
8 changes: 7 additions & 1 deletion Chip8topia/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ target_include_directories(${PROJECT_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/u
set_target_properties(${PROJECT_NAME} PROPERTIES WIN32_EXECUTABLE $<CONFIG:Release>)

if (NOT EMSCRIPTEN)
find_package(sdl2 CONFIG REQUIRED)
find_package(SDL2 CONFIG REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE SDL2::SDL2 SDL2::SDL2main)

find_package(glad CONFIG REQUIRED)
Expand All @@ -42,6 +42,12 @@ if (NOT EMSCRIPTEN)
target_link_libraries(${PROJECT_NAME} PUBLIC Pdh.lib) # For RAM usage
target_link_libraries(${PROJECT_NAME} PUBLIC psapi.lib) # For CPU usage
endif ()

if (UNIX AND NOT APPLE)
find_package(X11 REQUIRED)
target_include_directories(${PROJECT_NAME} PRIVATE ${X11_INCLUDE_DIR})
target_link_libraries(${PROJECT_NAME} PRIVATE ${X11_LIBRARIES})
endif ()
else ()
target_link_libraries(${PROJECT_NAME} PRIVATE SDL2::SDL2 SDL2::SDL2main)
endif ()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "Chip8SoundEmulation.h"

#include <sdl.h>
#include <SDL.h>

#include "../Chip8CoreBase/Chip8CoreBase.h"

void Chip8SoundEmulation::update(Chip8CoreBase* chip8Core)
Expand Down
4 changes: 2 additions & 2 deletions imgui.ini
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ Size=640,360
Collapsed=0

[Window][##TOAST0]
Pos=1045,643
Size=215,57
Pos=1059,643
Size=201,57
Collapsed=0

[Window][##TOAST3]
Expand Down

0 comments on commit e7354e5

Please sign in to comment.