Skip to content
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

Android build support #267

Closed
wants to merge 13 commits into from
Closed

Android build support #267

wants to merge 13 commits into from

Conversation

AJenbo
Copy link
Member

@AJenbo AJenbo commented Sep 23, 2019

This makes it possible to build DevilutionX for Android using CMake. Still missing is SDL and libsodium (a prebuild package is currently being referenced). A build system for a modified version of these can be found here:
https://github.com/diasurgical/devilutionX-android

The modified version has a few issues preventing us from merging.

  • The modifications should be brought to a minimum and well documented (if any are left).
  • The version of SDL2_mixer has a broken music implementation.
  • Several unused liberies are being included (SDL2_png, SDL2_gfx, SDL2_image and SDL2_jpeg)

@AJenbo AJenbo added the help wanted Extra attention is needed label Sep 23, 2019
@AJenbo AJenbo changed the title Android wip Android build support Sep 23, 2019
@AJenbo AJenbo mentioned this pull request Sep 23, 2019
12 tasks
@AJenbo AJenbo force-pushed the android-wip branch 3 times, most recently from acce106 to 05e1de3 Compare September 23, 2019 04:47
@AJenbo AJenbo mentioned this pull request Sep 28, 2019
CMakeLists.txt Outdated Show resolved Hide resolved
@AJenbo AJenbo force-pushed the android-wip branch 5 times, most recently from d0c81fc to 0890e37 Compare November 28, 2019 01:57
SourceX/storm/storm.cpp Outdated Show resolved Hide resolved
@AJenbo
Copy link
Member Author

AJenbo commented May 27, 2021

I have now rebased this on 1.2.1, one regression is that the font is no longer loaded correctly:
TF_OpenFont: java.io.FileNotFoundException: /usr/share/fonts/truetype/CharisSILB.ttf

CMakeLists.txt Outdated Show resolved Hide resolved
@AJenbo AJenbo force-pushed the android-wip branch 3 times, most recently from dbc0fc8 to ca8c1c1 Compare May 31, 2021 08:21
kkszysiu and others added 6 commits June 7, 2021 16:17
Use CMake as build system
Set the font path for Android

The font is located in the package resources so no path should be

Do not check for FileExists on CharisSILB.ttf for Android (#2087)

FileExists will always fail as it doesn't detect files located in the
APK

asd
SDL_audiolib should be told where to find SDL2 before this will work.
Source/init.cpp Show resolved Hide resolved
@AJenbo AJenbo closed this Jun 14, 2021
@AJenbo AJenbo deleted the android-wip branch June 15, 2021 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed platform support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants