Skip to content

Commit

Permalink
Android: Native Dialog Addon (#1520)
Browse files Browse the repository at this point in the history
Android: add native dialog addon

- Add `al_android_open_fd`
- Adapt `ex_native_filechooser`
  • Loading branch information
alemart authored Feb 18, 2024
1 parent edcc50e commit c4bc6dc
Show file tree
Hide file tree
Showing 11 changed files with 1,230 additions and 6 deletions.
6 changes: 6 additions & 0 deletions addons/native_dialog/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ if(APPLE AND IPHONE)
set(SUPPORT_NATIVE_DIALOG 1)
endif(APPLE AND IPHONE)

if(ANDROID)
list(APPEND NATIVE_DIALOG_SOURCES android_dialog.c)
set(ALLEGRO_CFG_NATIVE_DIALOG_ANDROID 1)
set(SUPPORT_NATIVE_DIALOG 1)
endif(ANDROID)

if(WIN32)
list(APPEND NATIVE_DIALOG_SOURCES win_dialog.c)
set(ALLEGRO_CFG_NATIVE_DIALOG_WINDOWS 1)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#cmakedefine ALLEGRO_CFG_NATIVE_DIALOG_GTK
#cmakedefine ALLEGRO_CFG_NATIVE_DIALOG_OSX
#cmakedefine ALLEGRO_CFG_NATIVE_DIALOG_WINDOWS
#cmakedefine ALLEGRO_CFG_NATIVE_DIALOG_ANDROID
Loading

0 comments on commit c4bc6dc

Please sign in to comment.