Skip to content

Conversation

@SeaDve
Copy link
Collaborator

@SeaDve SeaDve commented Mar 10, 2022

Related with #140

WIP since not working currently

@SeaDve SeaDve force-pushed the add-meson-building-test branch 2 times, most recently from 09faa1f to 69d5116 Compare March 10, 2022 04:19
@SeaDve SeaDve requested a review from bilelmoussaoui March 10, 2022 04:21
@SeaDve SeaDve force-pushed the add-meson-building-test branch from 69d5116 to def2421 Compare March 10, 2022 04:27
@SeaDve SeaDve force-pushed the add-meson-building-test branch from def2421 to e58e855 Compare March 10, 2022 04:27
@@ -0,0 +1,19 @@
#!/usr/bin/env python3

from os import environ, path
Copy link
Owner

Choose a reason for hiding this comment

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

Use the new meson post install, the less files we have for tests the better.

@@ -0,0 +1,41 @@
desktop_file = i18n.merge_file(
Copy link
Owner

Choose a reason for hiding this comment

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

Do you need such sophisticated thing, we can just install_data and copy the file to the right directory, handling translations and validations are imho a bit out of scope of such a test case.

)
endif

appstream_file = i18n.merge_file(
Copy link
Owner

Choose a reason for hiding this comment

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

Similarly here, do we even need an appdata file?

)
endif

install_data('some.meson.Project.gschema.xml',
Copy link
Owner

Choose a reason for hiding this comment

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

The gschema should definitely be removed




subdir('data')
Copy link
Owner

Choose a reason for hiding this comment

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

I would avoid using subdirs, just put all the necessary files for the test on the same directory.

"modules": [
{
"name": "meson",
"builddir": true,
Copy link
Owner

Choose a reason for hiding this comment

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

I don't think we actually handle the builddir argument in flatpak-vscode it is mostly used by builder to whether build stuff in current directory or do so in the cache directory.

sys.path.insert(1, pkgdatadir)

if __name__ == '__main__':
from meson import main
Copy link
Owner

Choose a reason for hiding this comment

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

just do the print call here and drop the other file?

@bilelmoussaoui
Copy link
Owner

For #129 we can only fix it if the source uses a dir as a source type, then we could get the basename of $manifestDir + $sourcePath otherwise fallback to whatever we do currently

"sources": [
{
"type": "dir",
"url": "."
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
"url": "."
"path": "."

@SeaDve SeaDve marked this pull request as draft August 2, 2022 14:59
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.

Figure out the project source entry

2 participants