Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into original
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Oct 3, 2024
2 parents 8837d71 + 7c12281 commit 14161ef
Show file tree
Hide file tree
Showing 51 changed files with 901 additions and 1,440 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/windows-premake-msvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Windows-premake-msvc
on: [push, pull_request]
jobs:
Build-Guisan:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: install premake5
uses: Jarod42/install-premake5@v1

- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2

- name: run premake5
run: premake5.exe vs2022 --to=solution/vs2022

- name: build
run: |
cd solution/vs2022
nuget install packages.config -OutputDirectory packages
msbuild.exe /property:Configuration=Release Guisan.sln
- name: artifact
uses: actions/upload-artifact@v4
with:
name: guisan-msvc
path: |
solution/vs2022/bin/Release/**.*
14 changes: 7 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ INCLUDE_DIRECTORIES("${PROJECT_SOURCE_DIR}/include")
ADD_COMPILE_DEFINITIONS(GUICHAN_BUILD GUICHAN_EXTENSION_BUILD)

# The Guisan core library
FILE(GLOB GUISAN_HEADER include/guisan.hpp)
FILE(GLOB GUISAN_HEADERS
SET(GUISAN_HEADER include/guisan.hpp)
SET(GUISAN_HEADERS
include/guisan/actionevent.hpp
include/guisan/actionlistener.hpp
include/guisan/cliprectangle.hpp
Expand Down Expand Up @@ -53,7 +53,7 @@ FILE(GLOB GUISAN_HEADERS
include/guisan/rectangle.hpp
include/guisan/selectionevent.hpp
include/guisan/selectionlistener.hpp
include/guisan.text.hpp
include/guisan/text.hpp
include/guisan/widget.hpp
include/guisan/widgetlistener.hpp
)
Expand All @@ -76,11 +76,11 @@ ELSE(BUILD_GUISAN_SHARED)
ENDIF(BUILD_GUISAN_SHARED)

ADD_LIBRARY(${PROJECT_NAME} ${GUISAN_LIBRARY_TYPE}
${GUISAN_HEADER}
${GUISAN_HEADERS}
${GUISAN_WIDGET_HEADERS}
${GUISAN_HEADER}
${GUISAN_HEADERS}
${GUISAN_WIDGET_HEADERS}
${GUISAN_CONTRIB_WIDGET_HEADERS}
${GUISAN_SRC}
${GUISAN_SRC}
${GUISAN_WIDGET_SRC})

ADD_CUSTOM_TARGET(lib DEPENDS ${PROJECT_NAME}) # Create symlink
Expand Down
44 changes: 0 additions & 44 deletions Guisan.sln

This file was deleted.

268 changes: 0 additions & 268 deletions Guisan.vcxproj

This file was deleted.

2 changes: 1 addition & 1 deletion demo/ff/src/ffdemo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ void FFDemo::input()
{
Mix_PlayChannel(-1, mEscapeSound, 0);

action(gcn::ActionEvent(NULL, "escape"));
action(gcn::ActionEvent(nullptr, "escape"));
}
else if (mEvent.key.keysym.sym == SDLK_RETURN
|| mEvent.key.keysym.sym == SDLK_UP
Expand Down
2 changes: 1 addition & 1 deletion demo/ff/src/fflistbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ FFListBox::~FFListBox()

void FFListBox::draw(gcn::Graphics* graphics)
{
if (mListModel == NULL)
if (mListModel == nullptr)
{
return;
}
Expand Down
Loading

0 comments on commit 14161ef

Please sign in to comment.