-
-
Notifications
You must be signed in to change notification settings - Fork 561
core: Add HarmonyOS platform #4315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sargunv
wants to merge
74
commits into
maplibre:main
Choose a base branch
from
sargunv:ohos-research
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 47 commits
Commits
Show all changes
74 commits
Select commit
Hold shift + click to select a range
d8297e9
vibe-slopped spike
sargunv 398422a
fix request configuration crash, demo map now works
sargunv 34272c9
compress research / status doc for readability
sargunv 967a32f
Continue HarmonyOS sample bring-up
sargunv d12f80c
Add OHOS hilog backend
sargunv d20be2e
Add HarmonyOS Vulkan window backend
sargunv d854d71
Fix HarmonyOS RCP request lifetimes
sargunv 4e1edd1
Fix HarmonyOS map density scaling
sargunv 3b01760
Use display refresh rate in HarmonyOS sample
sargunv a6d92cf
Add HarmonyOS shove pitch gesture
sargunv 1277847
Improve HarmonyOS camera interactions
sargunv af29f8d
Remove local HarmonyOS sample style
sargunv 7ed461b
Render HarmonyOS gestures from frame callbacks
sargunv 4bd71f0
Expose HarmonyOS frame timing telemetry
sargunv 15cf5d2
Tune HarmonyOS fling gestures
sargunv d5257fa
Set Bright as HarmonyOS sample default
sargunv af6dca1
Render HarmonyOS sample attribution overlay
sargunv 45ed867
Update HarmonyOS research status
sargunv e53fd51
Enable Vulkan surface transforms on OHOS
sargunv 95426f7
Prepare OHOS docs for review
sargunv 544ee3a
deslop pass 1
sargunv 37243b5
Update Vulkan debug callbacks for Vulkan-Hpp
sargunv 36c56a8
Add HarmonyOS sample renderer products
sargunv 92796f9
Update HarmonyOS sample app icon
sargunv 7a84bfc
Use shared HarmonyOS sample icon resource
sargunv 53bc2cd
Add local HarmonyOS signing override
sargunv 0157bc5
Add HarmonyOS sample clang config
sargunv 9106975
Add HarmonyOS sample signing generator
sargunv b75d610
Trim HarmonyOS platform README
sargunv 2bc87cc
deslop round 2
sargunv 8a9a9cf
Clean up HarmonyOS sample nits
sargunv 4fdbee2
Move HarmonyOS MapView into sample
sargunv 973e059
Update HarmonyOS research notes
sargunv 74ba323
Centralize OHOS compiler workarounds
sargunv e4e6f4c
mini deslop
sargunv 12fa189
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] a8d14e3
Fix Bazel source location header
sargunv 58c0a30
Document OHOS CI setup direction
sargunv 73f9b7a
CI research
sargunv bbddabe
Move OHOS window bridge into sample
sargunv 9173b3e
Remove HarmonyOS research notes
sargunv 935b898
better fix for emulator opengl
sargunv bda82fe
Merge branch 'main' into ohos-research
sargunv d09e9ee
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] ab83e69
Document OHOS RCP error code source
sargunv dda1f12
tweak readme
sargunv a6dd749
Fix end-of-file-fixer exclusions
sargunv 5edcd7b
fix pre-commit churn
sargunv a72fafe
fix clang-tidy failure
sargunv fcbbd00
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 8efb8b0
core: Update Vulkan headers
sargunv 5908c8b
core: Add source location fallback
sargunv fa802ce
core: Tolerate stencil clipping setup failures
sargunv b2c72c0
ohos: Require OpenGL ES 3 for EGL backend
sargunv 3cebd79
fix codex comment
sargunv d8a1ebd
Merge branch 'split/gl-stencil-fallback' into ohos-research
sargunv 0198f8d
Merge branch 'split/source-location' into ohos-research
sargunv d0f963e
Merge branch 'split/vulkan-headers' into ohos-research
sargunv b9bbe76
core: Enable Vulkan surface transforms by capability
sargunv 552a813
Merge branch 'split/vulkan-surface-transform' into ohos-research
sargunv 8bd53a4
ohos: use OpenHarmony HTTP file source
sargunv 577f66e
try adding CI
sargunv 967c55e
Rename source location helper
sargunv b0b28fd
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 47f4cda
core: Refine stencil clipping fallback
sargunv 29d2e5e
core: Tighten stencil fallback invariants
sargunv 6b09a13
const cleanup
sargunv a338fed
Merge remote-tracking branch 'upstream/main' into ohos-research
sargunv 7f3e396
Merge remote-tracking branch 'origin/split/gl-stencil-fallback' into …
sargunv aa4bb35
Merge remote-tracking branch 'origin/split/source-location' into ohos…
sargunv 264dc5a
Merge remote-tracking branch 'upstream/main' into ohos-research
sargunv 218a7d4
Refactor OHOS sample XComponent ownership
sargunv 47d7ad0
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] b692463
Fix OHOS image stride and GL teardown
sargunv File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,7 @@ bazel-out | |
| bazel-bin | ||
| bazel-testlogs | ||
| .cache | ||
| .pixi | ||
| .idea | ||
| .vscode | ||
| .cxx | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # HarmonyOS | ||
|
|
||
| This platform support is experimental. It targets the HarmonyOS native SDK, not | ||
| yet OpenHarmony. | ||
|
|
||
| Public OpenHarmony platform documentation is available in the | ||
| [OpenHarmony docs repository](https://github.com/openharmony/docs). | ||
|
|
||
| See [the sample readme](./sample/README.md) to build and run the NAPI/XComponent | ||
| integration example in DevEco Studio. | ||
|
|
||
| ## CMake Build | ||
|
|
||
| When invoking CMake directly from this repository root, set the native SDK paths | ||
| before using the HarmonyOS presets: | ||
|
|
||
| ```sh | ||
| export HMOS_SDK_NATIVE=/path/to/hms/native | ||
| export OHOS_SDK_NATIVE=/path/to/openharmony/native | ||
|
|
||
| cmake --preset harmonyos-opengl | ||
| cmake --build --preset harmonyos-opengl | ||
|
|
||
| cmake --preset harmonyos-vulkan | ||
| cmake --build --preset harmonyos-vulkan | ||
| ``` | ||
|
|
||
| The HarmonyOS toolchain wraps the OHOS base toolchain, so both | ||
| `HMOS_SDK_NATIVE` and `OHOS_SDK_NATIVE` are required. The presets are disabled | ||
| until both variables are set. | ||
|
|
||
| DevEco Studio and Hvigor provide these paths from the configured HarmonyOS SDK | ||
| when building `platform/ohos/sample`. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.