Skip to content

Commit

Permalink
Add resources file, WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
falkTX committed Aug 7, 2020
1 parent 4d43ca5 commit abf8849
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ PYRCC ?= pyrcc5

# ---------------------------------------------------------------------------------------------------------------------

all: CPP UI
all: CPP RES UI

# ---------------------------------------------------------------------------------------------------------------------
# C++ code
Expand All @@ -26,6 +26,14 @@ jackmeter:
xycontroller:
$(MAKE) -C c++/xycontroller

# -----------------------------------------------------------------------------------------------------------------------------------------
# Resources

RES: src/resources_rc.py

src/resources_rc.py: resources/resources.qrc
$(PYRCC) $< -o $@

# ---------------------------------------------------------------------------------------------------------------------
# UI code

Expand Down
5 changes: 5 additions & 0 deletions resources/resources.qrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<RCC version="1.0">
<qresource prefix="/">
<file>scalable/cadence.svg</file>
</qresource>
</RCC>

0 comments on commit abf8849

Please sign in to comment.