split resources for faster recompile times

This commit is contained in:
papush! 2021-01-02 16:59:16 +01:00
parent 934e6b2592
commit dafdc38f16
5 changed files with 32 additions and 22 deletions

13
img/img_resources.qrc Normal file
View File

@ -0,0 +1,13 @@
<!DOCTYPE RCC>
<RCC version="1.0">
<qresource prefix="/img">
<file>dji600.jpg</file>
<file>ground.jpg</file>
<file>clouds1_up.jpg</file>
<file>clouds1_down.jpg</file>
<file>clouds1_north.jpg</file>
<file>clouds1_east.jpg</file>
<file>clouds1_south.jpg</file>
<file>clouds1_west.jpg</file>
</qresource>
</RCC>

7
mdl/mdl_resources.qrc Normal file
View File

@ -0,0 +1,7 @@
<!DOCTYPE RCC>
<RCC version="1.0">
<qresource prefix="/mdl">
<file>dji600.obj</file>
<file>dji600.mtl</file>
</qresource>
</RCC>

View File

@ -4,7 +4,9 @@ TEMPLATE = app
DEFINES += QT_DEPRECATED_WARNINGS
CONFIG += qt debug
RESOURCES += resources.qrc
RESOURCES += mdl/mdl_resources.qrc
RESOURCES += img/img_resources.qrc
RESOURCES += shaders/shaders_resources.qrc
SOURCES += src/main.cc
SOURCES += src/main_window.cc

View File

@ -1,21 +0,0 @@
<!DOCTYPE RCC>
<RCC version="1.0">
<qresource>
<file>mdl/dji600.obj</file>
<file>mdl/dji600.mtl</file>
<file>img/dji600.jpg</file>
<file>img/ground.jpg</file>
<file>img/clouds1_up.jpg</file>
<file>img/clouds1_down.jpg</file>
<file>img/clouds1_north.jpg</file>
<file>img/clouds1_east.jpg</file>
<file>img/clouds1_south.jpg</file>
<file>img/clouds1_west.jpg</file>
<file>shaders/main.vert</file>
<file>shaders/main.frag</file>
<file>shaders/skybox.vert</file>
<file>shaders/skybox.frag</file>
</qresource>
</RCC>

View File

@ -0,0 +1,9 @@
<!DOCTYPE RCC>
<RCC version="1.0">
<qresource prefix="/shaders">
<file>main.vert</file>
<file>main.frag</file>
<file>skybox.vert</file>
<file>skybox.frag</file>
</qresource>
</RCC>