build: Use qrc file content as source #80

Closed
promag wants to merge 1 commit from 2021-11-makefile-qrc into main AGit
promag commented 2021-11-03 21:16:12 +00:00 (Migrated from github.com)

Use rcc --list instead of also adding files in the Makefile.

Use `rcc --list` instead of also adding files in the Makefile.
promag (Migrated from github.com) reviewed 2021-11-03 21:18:05 +00:00
promag (Migrated from github.com) left a comment

@hebasto @fanquake I have no idea if this is a good approach, but the goal is to avoid adding new files to Makefile, just add to the .qrc file.

@hebasto @fanquake I have no idea if this is a good approach, but the goal is to avoid adding new files to Makefile, just add to the .qrc file.
hebasto commented 2021-11-05 10:02:33 +00:00 (Migrated from github.com)

Rebase?

Rebase?
jarolrod (Migrated from github.com) reviewed 2021-11-24 02:03:32 +00:00
jarolrod (Migrated from github.com) left a comment

Concept ACK

This approach/idea is better than manually keeping a list of our components and pages. Rebase

Concept ACK This approach/idea is better than manually keeping a list of our components and pages. Rebase
promag commented 2022-01-05 01:22:48 +00:00 (Migrated from github.com)

I'll rebase and try to sharpen my lame makefile skillz to make it work.

I'll rebase and try to sharpen my lame makefile skillz to make it work.
hebasto (Migrated from github.com) reviewed 2022-01-05 09:56:15 +00:00
hebasto (Migrated from github.com) commented 2022-01-05 09:56:14 +00:00

Maybe

QML_RES_QML := $(shell $(RCC) --list $(QML_QRC))

?

Maybe ```suggestion QML_RES_QML := $(shell $(RCC) --list $(QML_QRC)) ``` ?
hebasto (Migrated from github.com) reviewed 2022-01-05 12:32:18 +00:00
hebasto (Migrated from github.com) commented 2022-01-05 12:32:18 +00:00

My suggestion does not work due to Automake limitations.

My suggestion does not work due to Automake [limitations](https://www.gnu.org/software/automake/manual/html_node/Conditional-Sources.html).
hebasto commented 2022-01-05 13:29:08 +00:00 (Migrated from github.com)

https://www.gnu.org/software/automake/manual/html_node/Wildcards.html -- a justification why it is better to modify the src/Makefile.qt.include when the list of *.qml files being changed.

https://www.gnu.org/software/automake/manual/html_node/Wildcards.html -- a justification why it is better to modify the `src/Makefile.qt.include` when the list of `*.qml` files being changed.
promag commented 2022-01-05 15:32:31 +00:00 (Migrated from github.com)

Closing since workarounds/hacks are needed to address limitation configure substitutions are not allowed in _SOURCES variables.

Closing since workarounds/hacks are needed to address limitation `configure substitutions are not allowed in _SOURCES variables`.
Sign in to join this conversation.
No description provided.