Skip to content

HarmonyOS/OpenHarmony Port#13152

Open
MetsukiMio wants to merge 115 commits into
libsdl-org:mainfrom
OpenMinecraft-Dev:main
Open

HarmonyOS/OpenHarmony Port#13152
MetsukiMio wants to merge 115 commits into
libsdl-org:mainfrom
OpenMinecraft-Dev:main

Conversation

@MetsukiMio

Copy link
Copy Markdown

Description

SDL support for harmonyos

Existing Issue(s)

#9837

@MetsukiMio

Copy link
Copy Markdown
Author

@slouken Request for review

@MetsukiMio

Copy link
Copy Markdown
Author

@madebr @sezero Request for review

Comment thread src/video/SDL_sysvideo.h
@madebr

madebr commented May 31, 2025

Copy link
Copy Markdown
Contributor

Can you please rebase on top of current master and remove all commits which you did not author?

git fetch https://github.com/libsdl-org/SDL main
git rebase -i FETCH_HEAD
<remove all commits which you did not author. In vim, "dd" removes the current line, "<ESC>:wq" saves and exits)>
git push git@github.com:Jack253-png/SDL HEAD:OpenMinecraft-Dev -f

Comment thread src/core/ohos/SDL_ohos.c Outdated
Comment thread src/core/ohos/SDL_ohos.c Outdated
Comment thread src/core/ohos/SDL_ohos.c Outdated
Comment thread src/core/ohos/SDL_ohos.c Outdated
Comment thread src/core/ohos/SDL_ohos.c Outdated
Comment thread src/core/ohos/SDL_ohos.c Outdated
@madebr

madebr commented May 31, 2025

Copy link
Copy Markdown
Contributor

Seeing you implemented vulkan support, does SDL_gpu work? Do the SDL_gpu_examples work?

@MetsukiMio

Copy link
Copy Markdown
Author

Seeing you implemented vulkan support, does SDL_gpu work? Do the SDL_gpu_examples work?

I will test later, because I don't have test platform, I need to find other people to do this.

@xiangjs6

Copy link
Copy Markdown

我在鸿蒙笔记本上使用cmake 目前编译会报错,暂时无法提供报错信息,我在华为店的笔记本上尝试的

@MetsukiMio

Copy link
Copy Markdown
Author

我在鸿蒙笔记本上使用cmake 目前编译会报错,暂时无法提供报错信息,我在华为店的笔记本上尝试的

你在自己的deveco studio上试试(

Comment thread CMakeLists.txt
Comment on lines +1712 to +1715
if(TARGET SDL3-shared)
target_link_options(SDL3-shared PRIVATE "-Wl,-z,max-page-size=16384")
target_link_options(SDL3-shared PRIVATE "-Wl,-z,common-page-size=16384")
endif()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these not in the elseif(OHOS) case below?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These configs are not for ohos

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bad merge then? Because you are adding those lines to the android case.

@@ -0,0 +1,21 @@
# the minimum version of CMake.
cmake_minimum_required(VERSION 3.5.0)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should read cmake_minimum_required(VERSION 3.5...4.0) in order to avoid cmake deprecation warnings.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HarmonyOS toolchain provides a old version of cmake, so I have to do this

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ...4.0 part will not force you to use a newer cmake: https://cmake.org/cmake/help/v4.0/command/cmake_minimum_required.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants