Verified Commit 895d2593 authored by Zander's avatar Zander 💥

Bundle alias icons as resources

parent aa9d87bc
Pipeline #84062 passed with stage
in 11 minutes and 30 seconds
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/org/gnome/Dia/ER">
<file>weakentity.png</file>
</gresource>
</gresources>
......@@ -6,6 +6,10 @@ sources = files(
'er.c'
)
sources += gnome.compile_resources('dia-er-resources', 'dia-er.gresource.xml',
source_dir : '.',
c_name : 'dia_er')
dia_object_desc += {
'name': 'er_objects',
'sources': sources,
......
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/org/gnome/Dia/GRAFCET">
<file>etapei.png</file>
<file>etapemc.png</file>
<file>etapeme.png</file>
<file>etapems.png</file>
<file>etapesp.png</file>
<file>vergent_and.png</file>
</gresource>
</gresources>
......@@ -10,6 +10,10 @@ sources = files(
'vector.c'
)
sources += gnome.compile_resources('dia-grafcet-resources', 'dia-grafcet.gresource.xml',
source_dir : '.',
c_name : 'dia_grafcet')
dia_object_desc += {
'name': 'grafcet_objects',
'sources': sources,
......
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/org/gnome/Dia/Istar">
<file>agent.png</file>
<file>dependency.png</file>
<file>means_ends.png</file>
<file>pos_contrib.png</file>
<file>role.png</file>
<file>decomposition.png</file>
<file>goal.png</file>
<file>neg_contrib.png</file>
<file>position.png</file>
<file>task.png</file>
</gresource>
</gresources>
......@@ -6,6 +6,10 @@ sources = files(
'link.c'
)
sources += gnome.compile_resources('dia-istar-resources', 'dia-istar.gresource.xml',
source_dir : '.',
c_name : 'dia_istar')
dia_object_desc += {
'name': 'istar_objects',
'sources': sources,
......
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/org/gnome/Dia/Jackson">
<file>designed_domain.png</file>
<file>machine_domain.png</file>
<file>req_phen.png</file>
</gresource>
</gresources>
......@@ -5,6 +5,10 @@ sources = files(
'phenomenon.c'
)
sources += gnome.compile_resources('dia-jackson-resources', 'dia-jackson.gresource.xml',
source_dir : '.',
c_name : 'dia_jackson')
dia_object_desc += {
'name': 'jackson_objects',
'sources': sources,
......
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/org/gnome/Dia/KAOS">
<file>and-complete-ref.png</file>
<file>controls.png</file>
<file>op-ref.png</file>
<file>requirement.png</file>
<file>and-ref.png</file>
<file>input.png</file>
<file>or-complete-ref.png</file>
<file>responsibility.png</file>
<file>assumption.png</file>
<file>monitors.png</file>
<file>or-ref.png</file>
<file>softgoal.png</file>
<file>capable-of.png</file>
<file>obstacle.png</file>
<file>output.png</file>
<file>conflicts.png</file>
<file>obstructs.png</file>
<file>performs.png</file>
</gresource>
</gresources>
......@@ -6,6 +6,10 @@ sources = files(
'metaandorrel.c'
)
sources += gnome.compile_resources('dia-kaos-resources', 'dia-kaos.gresource.xml',
source_dir : '.',
c_name : 'dia_kaos')
dia_object_desc += {
'name': 'kaos_objects',
'sources': sources,
......
......@@ -8,7 +8,7 @@
</object>
<object name="ER - Entity" intdata="1">
<_description>Weak entity</_description>
<icon>ER/weakentity.png</icon>
<icon>res:/org/gnome/Dia/ER/weakentity.png</icon>
</object>
<object name="ER - Relationship">
<_description>Relationship</_description>
......
......@@ -8,23 +8,23 @@
</object>
<object name="GRAFCET - Step" intdata="1">
<_description>Initial step</_description>
<icon>GRAFCET/etapei.png</icon>
<icon>res:/org/gnome/Dia/GRAFCET/etapei.png</icon>
</object>
<object name="GRAFCET - Step" intdata="2">
<_description>Macro entry step</_description>
<icon>GRAFCET/etapeme.png</icon>
<icon>res:/org/gnome/Dia/GRAFCET/etapeme.png</icon>
</object>
<object name="GRAFCET - Step" intdata="3">
<_description>Macro exit step</_description>
<icon>GRAFCET/etapems.png</icon>
<icon>res:/org/gnome/Dia/GRAFCET/etapems.png</icon>
</object>
<object name="GRAFCET - Step" intdata="4">
<_description>Macro call step</_description>
<icon>GRAFCET/etapemc.png</icon>
<icon>res:/org/gnome/Dia/GRAFCET/etapemc.png</icon>
</object>
<object name="GRAFCET - Step" intdata="5">
<_description>Macro sub-program call step</_description>
<icon>GRAFCET/etapesp.png</icon>
<icon>res:/org/gnome/Dia/GRAFCET/etapesp.png</icon>
</object>
<br/>
<object name="GRAFCET - Action">
......@@ -42,7 +42,7 @@
</object>
<object name="GRAFCET - Vergent" intdata="1">
<_description>AND vergent</_description>
<icon>GRAFCET/vergent_and.png</icon>
<icon>res:/org/gnome/Dia/GRAFCET/vergent_and.png</icon>
</object>
<br/>
<object name="GRAFCET - Arc">
......
......@@ -8,52 +8,52 @@
</object>
<object name="Istar - goal" intdata="2">
<_description>An i* goal</_description>
<icon>Istar/goal.png</icon>
<icon>res:/org/gnome/Dia/Istar/goal.png</icon>
</object>
<object name="Istar - other" intdata="1">
<_description>An i* resource</_description>
</object>
<object name="Istar - other" intdata="2">
<_description>An i* task</_description>
<icon>Istar/task.png</icon>
<icon>res:/org/gnome/Dia/Istar/task.png</icon>
</object>
<object name="Istar - actor" intdata="1">
<_description>An i* unspecified actor</_description>
</object>
<object name="Istar - actor" intdata="2">
<_description>An i* agent</_description>
<icon>Istar/agent.png</icon>
<icon>res:/org/gnome/Dia/Istar/agent.png</icon>
</object>
<object name="Istar - actor" intdata="3">
<_description>An i* position</_description>
<icon>Istar/position.png</icon>
<icon>res:/org/gnome/Dia/Istar/position.png</icon>
</object>
<object name="Istar - actor" intdata="4">
<_description>An i* role</_description>
<icon>Istar/role.png</icon>
<icon>res:/org/gnome/Dia/Istar/role.png</icon>
</object>
<object name="Istar - link" intdata="1">
<_description>An i* unspecified link</_description>
</object>
<object name="Istar - link" intdata="2">
<_description>An i* positive contribution</_description>
<icon>Istar/pos_contrib.png</icon>
<icon>res:/org/gnome/Dia/Istar/pos_contrib.png</icon>
</object>
<object name="Istar - link" intdata="3">
<_description>An i* negative contribution</_description>
<icon>Istar/neg_contrib.png</icon>
<icon>res:/org/gnome/Dia/Istar/neg_contrib.png</icon>
</object>
<object name="Istar - link" intdata="4">
<_description>An i* dependency link</_description>
<icon>Istar/dependency.png</icon>
<icon>res:/org/gnome/Dia/Istar/dependency.png</icon>
</object>
<object name="Istar - link" intdata="5">
<_description>An i* decomposition link</_description>
<icon>Istar/decomposition.png</icon>
<icon>res:/org/gnome/Dia/Istar/decomposition.png</icon>
</object>
<object name="Istar - link" intdata="6">
<_description>An i* means-ends link</_description>
<icon>Istar/means_ends.png</icon>
<icon>res:/org/gnome/Dia/Istar/means_ends.png</icon>
</object>
</contents>
</sheet>
......@@ -8,11 +8,11 @@
</object>
<object name="Jackson - domain" intdata="2">
<_description>A Jackson designed domain</_description>
<icon>Jackson/designed_domain.png</icon>
<icon>res:/org/gnome/Dia/Jackson/designed_domain.png</icon>
</object>
<object name="Jackson - domain" intdata="3">
<_description>A Jackson machine domain</_description>
<icon>Jackson/machine_domain.png</icon>
<icon>res:/org/gnome/Dia/Jackson/machine_domain.png</icon>
</object>
<object name="Jackson - requirement" intdata="1">
<_description>A Jackson requirement</_description>
......@@ -22,7 +22,7 @@
</object>
<object name="Jackson - phenomenon" intdata="2">
<_description>A Jackson requirement phenomenon</_description>
<icon>Jackson/req_phen.png</icon>
<icon>res:/org/gnome/Dia/Jackson/req_phen.png</icon>
</object>
</contents>
</sheet>
......@@ -5,84 +5,84 @@
<contents>
<object name="KAOS - goal" intdata="2">
<_description>A KAOS softgoal</_description>
<icon>KAOS/softgoal.png</icon>
<icon>res:/org/gnome/Dia/KAOS/softgoal.png</icon>
</object>
<object name="KAOS - goal" intdata="1">
<_description>A KAOS goal</_description>
</object>
<object name="KAOS - goal" intdata="3">
<_description>A KAOS requirement</_description>
<icon>KAOS/requirement.png</icon>
<icon>res:/org/gnome/Dia/KAOS/requirement.png</icon>
</object>
<object name="KAOS - goal" intdata="4">
<_description>A KAOS assumption</_description>
<icon>KAOS/assumption.png</icon>
<icon>res:/org/gnome/Dia/KAOS/assumption.png</icon>
</object>
<object name="KAOS - goal" intdata="5">
<_description>A KAOS obstacle</_description>
<icon>KAOS/obstacle.png</icon>
<icon>res:/org/gnome/Dia/KAOS/obstacle.png</icon>
</object>
<object name="KAOS - maor" intdata="1">
<_description>A KAOS AND refinement</_description>
<icon>KAOS/and-ref.png</icon>
<icon>res:/org/gnome/Dia/KAOS/and-ref.png</icon>
</object>
<object name="KAOS - maor" intdata="2">
<_description>A KAOS complete AND refinement</_description>
<icon>KAOS/and-complete-ref.png</icon>
<icon>res:/org/gnome/Dia/KAOS/and-complete-ref.png</icon>
</object>
<object name="KAOS - maor" intdata="3">
<_description>A KAOS OR refinement</_description>
<icon>KAOS/or-ref.png</icon>
<icon>res:/org/gnome/Dia/KAOS/or-ref.png</icon>
</object>
<object name="KAOS - maor" intdata="4">
<_description>A KAOS complete OR refinement</_description>
<icon>KAOS/or-complete-ref.png</icon>
<icon>res:/org/gnome/Dia/KAOS/or-complete-ref.png</icon>
</object>
<object name="KAOS - maor" intdata="5">
<_description>A KAOS operationalization</_description>
<icon>KAOS/op-ref.png</icon>
<icon>res:/org/gnome/Dia/KAOS/op-ref.png</icon>
</object>
<object name="KAOS - mbr" intdata="1">
<_description>A KAOS contribution</_description>
</object>
<object name="KAOS - mbr" intdata="2">
<_description>A KAOS obstruction</_description>
<icon>KAOS/obstructs.png</icon>
<icon>res:/org/gnome/Dia/KAOS/obstructs.png</icon>
</object>
<object name="KAOS - mbr" intdata="3">
<_description>A KAOS binary conflict</_description>
<icon>KAOS/conflicts.png</icon>
<icon>res:/org/gnome/Dia/KAOS/conflicts.png</icon>
</object>
<object name="KAOS - other" intdata="1">
<_description>A KAOS agent</_description>
</object>
<object name="KAOS - mbr" intdata="4">
<_description>A KAOS responsibility</_description>
<icon>KAOS/responsibility.png</icon>
<icon>res:/org/gnome/Dia/KAOS/responsibility.png</icon>
</object>
<object name="KAOS - mbr" intdata="5">
<_description>A KAOS monitor link</_description>
<icon>KAOS/monitors.png</icon>
<icon>res:/org/gnome/Dia/KAOS/monitors.png</icon>
</object>
<object name="KAOS - mbr" intdata="6">
<_description>A KAOS control link</_description>
<icon>KAOS/controls.png</icon>
<icon>res:/org/gnome/Dia/KAOS/controls.png</icon>
</object>
<object name="KAOS - mbr" intdata="7">
<_description>A KAOS capable-of</_description>
<icon>KAOS/capable-of.png</icon>
<icon>res:/org/gnome/Dia/KAOS/capable-of.png</icon>
</object>
<object name="KAOS - mbr" intdata="8">
<_description>A KAOS performs</_description>
<icon>KAOS/performs.png</icon>
<icon>res:/org/gnome/Dia/KAOS/performs.png</icon>
</object>
<object name="KAOS - mbr" intdata="9">
<_description>A KAOS input</_description>
<icon>KAOS/input.png</icon>
<icon>res:/org/gnome/Dia/KAOS/input.png</icon>
</object>
<object name="KAOS - mbr" intdata="10">
<_description>A KAOS output</_description>
<icon>KAOS/output.png</icon>
<icon>res:/org/gnome/Dia/KAOS/output.png</icon>
</object>
</contents>
</sheet>
sheetsdir = join_paths(pkgdatadir, 'sheets')
sheet_icons_sources = [
'ER/weakentity.png',
'GRAFCET/etapei.png',
'GRAFCET/etapems.png',
'GRAFCET/etapeme.png',
'GRAFCET/etapemc.png',
'GRAFCET/etapesp.png',
'GRAFCET/vergent_and.png',
'Jackson/designed_domain.png',
'Jackson/machine_domain.png',
'Jackson/req_phen.png',
'Istar/agent.png',
'Istar/decomposition.png',
'Istar/dependency.png',
'Istar/goal.png',
'Istar/means_ends.png',
'Istar/neg_contrib.png',
'Istar/pos_contrib.png',
'Istar/position.png',
'Istar/role.png',
'Istar/task.png',
'KAOS/and-complete-ref.png',
'KAOS/and-ref.png',
'KAOS/assumption.png',
'KAOS/capable-of.png',
'KAOS/conflicts.png',
'KAOS/controls.png',
'KAOS/input.png',
'KAOS/monitors.png',
'KAOS/obstacle.png',
'KAOS/obstructs.png',
'KAOS/op-ref.png',
'KAOS/or-complete-ref.png',
'KAOS/or-ref.png',
'KAOS/output.png',
'KAOS/performs.png',
'KAOS/requirement.png',
'KAOS/responsibility.png',
'KAOS/softgoal.png'
]
foreach icon : sheet_icons_sources
rel_path = icon.split('/')
install_data(icon, install_dir: join_paths(sheetsdir, rel_path[0]))
endforeach
sheet_files = [
'UML.sheet',
'ER.sheet',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment