-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Readme: Document the bindings we support
Signed-off-by: Jonathan Schwender <[email protected]>
- Loading branch information
Showing
3 changed files
with
165 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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 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,44 @@ | ||
#!/usr/bin/env python3 | ||
import os | ||
from pathlib import Path | ||
|
||
# Folders in the /usr/include directory of the sysroot which are not relevant for OpenHarmony bindings, | ||
# since they contain just standard headers | ||
blocklisted = [ | ||
'EGL', 'GLES2', 'GLES3', | ||
'KHR', | ||
'aarch64-linux-ohos', | ||
'arm-linux-ohos', | ||
'asm-generic', 'asm-loongarch', 'asm-mips', 'asm-riscv', | ||
'arpa', | ||
'drm', | ||
'fortify', | ||
'linux', | ||
'misc', | ||
'mtd', | ||
'net', 'netinet', 'netpacket', | ||
'rdma', | ||
'scsi', | ||
# not sure about SLES, it also has an OH specific header file. | ||
'SLES', | ||
'sound', | ||
'sys', | ||
'unicode', | ||
'uv', | ||
'video', | ||
'vk_video', | ||
'vulkan', | ||
'i686-linux-ohos', | ||
'x86_64-linux-ohos', | ||
'xen', | ||
] | ||
|
||
if __name__ == '__main__': | ||
native_path = Path(os.environ['OHOS_SDK_NATIVE']) | ||
header_root = native_path.joinpath('sysroot/usr/include') | ||
assert header_root.exists(), f"{header_root} does not exist" | ||
dirs = [x.parts[-1] for x in header_root.iterdir() if x.is_dir()] | ||
dirs.sort() | ||
filtered = list(filter(lambda name: name not in blocklisted, dirs)) | ||
|
||
print("\n".join(filtered)) |
This file contains 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,56 @@ | ||
# Helper file to compare the contents from `list_available_apis.py` over time and new SDK versions. | ||
|
||
---------------- | ||
|
||
AbilityKit | ||
BasicServicesKit | ||
ConnectivityKit | ||
CryptoArchitectureKit | ||
IPCKit | ||
LocationKit | ||
NotificationKit | ||
accesstoken | ||
ace | ||
ark_runtime | ||
arkui | ||
asset | ||
bundle | ||
database | ||
ddk | ||
ffrt | ||
filemanagement | ||
hiappevent | ||
hicollie | ||
hid | ||
hidebug | ||
hilog | ||
hitrace | ||
huks | ||
info | ||
inputmethod | ||
mindspore | ||
multimedia | ||
multimodalinput | ||
napi | ||
native_buffer | ||
native_color_space_manager | ||
native_display_soloist | ||
native_drawing | ||
native_effect | ||
native_image | ||
native_vsync | ||
native_window | ||
network | ||
neural_network_runtime | ||
ohaudio | ||
ohcamera | ||
purgeable_memory | ||
qos | ||
rawfile | ||
resourcemanager | ||
sensors | ||
telephony | ||
transient_task | ||
usb | ||
web | ||
window_manager |