Skip to content

Conversation

@Xenoamor
Copy link
Contributor

@Xenoamor Xenoamor commented Oct 2, 2019

To close #179

@python ./gen_lookup.py -f $(METER_FONT_FILE) -s $(METER_FONT_MEDIUM_SIZE) -o meter_medium
@python ./gen_lookup.py -f $(METER_FONT_FILE) -s $(METER_FONT_LARGE_SIZE) -o meter_large

graphics:
Copy link
Contributor

Choose a reason for hiding this comment

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

If we renamed the logos to have a postfix cc.gfx.png, logo.gfx.png we might be able to do something like:

%.gfx.o: %.gfx.png
    @python ./gen_lookup.py -i $< -o $@

Not sure if Makefiles let you do this with a prefix.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess the only downside to this is it means the end user must have python and Pillow installed to compile the firmware

Copy link
Contributor

Choose a reason for hiding this comment

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

Unless we check-in the .gfx.o files. Then the makefile should not create them unless the user performed a clean / cleanall.

If they use the docker image it should not matter. (Reminder to update that too). If you are going to be building this manually rather than use the releases, I think it could be expected that you have these tools installed.

Copy link
Owner

Choose a reason for hiding this comment

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

It would of course be handy to have the graphics rebuild when a png is modified but I could live with a manual step for doing that and not require Pillow to be installed for firmware compilation.

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.

Bring back the "make graphics" target

3 participants