Skip to content

Pixiewood: init Android build - #144

Draft
GeopJr wants to merge 5 commits into
elly-code:mainfrom
GeopJr:feat/pixiewood/init
Draft

Pixiewood: init Android build#144
GeopJr wants to merge 5 commits into
elly-code:mainfrom
GeopJr:feat/pixiewood/init

Conversation

@GeopJr

@GeopJr GeopJr commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@teamcons

Copy link
Copy Markdown
Collaborator

Sorry! Broke your PR. But added some meson plumbing for easier adding of ports, in the form of target_os as meson combo option

So you can easily insert android, define ANDROID, and get going without too much ugly

Comment thread data/jorts.metainfo.xml.in.in
@GeopJr
GeopJr force-pushed the feat/pixiewood/init branch from 887e5c6 to 5fc4dd3 Compare August 12, 2026 01:16
@GeopJr

GeopJr commented Aug 12, 2026

Copy link
Copy Markdown
Contributor Author

Bumped, I'll push my build to gtk4android.geopjr.dev later. I'll also leave some notes/TODOs as review comments here.

Let me know if you really want this as part of Jorts! I can do the CI and stuff, but as I mentioned on matrix, it's like gifting you a chore. E.g. Yesterday, Tuba's CI started failing because libadwaita started using a feature in glib 2.86 or something, and the github ci ubuntu-latest runner is on ubuntu 24 and doesn't have that, so I had to make it use ubuntu-26 explicitly...

<file compressed="true" alias="Application.css">Application.css</file>
<file compressed="true" alias="Themes.css">Themes.css</file>

<file preprocess="xml-stripblanks">icons/scalable/actions/edit-delete-symbolic.svg</file>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

maybe these icons should be conditionally bundled only for android, like I do in Tuba

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

maybe some script magic to retrieve icons from the host system into the builddir and loop-sed them into gresource like this? So we can avoid unrelated turbo cluttering the world

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

could just git clone the elementary icons repo in the ci or build script and move them to the folder + add them to this file

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<component type="desktop-application" xmlns="https://specifications.freedesktop.org/metainfo/1.0">

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

turns out that this does in fact cause issues. xgettext won't be able to use the appstream rules and will start marking everything for translation, has to be conditionally added

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

does it breaks standard builds? If standard builds are just like usual with the xmlns then it may just as well be upstreamed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

it breaks the translation string extraction from this file (to fill the .pot file). I reported it to Pixiewood and Florian fixed the issue on appstream, now we're going to have to wait and see if it will get merged.

For Tuba, I just add that line with sed before running the pixiewood commands

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Yeah i think for android there will need to be a script with some bullshit-patching in

Comment thread src/meson.build
dependencies: dependencies,
c_args: '-w', # Because of Vala we get ten thousand warnings we can do nothing about
win_subsystem: development ? 'console' : 'windows', # Show a console in windows dev builds. Seem to not bother standard builds
android_exe_type: 'application',

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ci seems to be failing because this requires meson 1.8, has to be conditionally added if the version matches

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Am fine with bumping meson requirement, once an elementary OS based on 26.04 is out. Currently everything is held back because of 24.04

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah 1.8 is too new, it's relatively straightforward to just add it conditionally (I just noticed that I never pushed that on Tuba :| )

Comment thread meson.build
host_machine_system = host_machine.system()

if build_machine_system == 'windows'
if host_machine_system == 'windows'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

no clue if it matters, the only guess I have is that it might be true if you are building for android on windows, if it uses the build_machine one

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

i dont fuck with cross-compiling, so you da boss here

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.

2 participants