|
1 | 1 | IF (BUILD_GUI)
|
2 |
| - PYSIDE_WRAP_RC(AddonManager_QRC_SRCS Resources/AddonManager.qrc) |
3 | 2 | add_subdirectory(Widgets)
|
4 | 3 | ENDIF (BUILD_GUI)
|
5 | 4 |
|
@@ -82,6 +81,89 @@ ENDIF (BUILD_GUI)
|
82 | 81 |
|
83 | 82 | SOURCE_GROUP("" FILES ${AddonManager_SRCS})
|
84 | 83 |
|
| 84 | +SET(AddonManagerResourceFilesIcons |
| 85 | + Resources/icons/addon_manager.svg |
| 86 | + Resources/icons/addon_manager_with_warning.svg |
| 87 | + Resources/icons/button_left.svg |
| 88 | + Resources/icons/button_valid.svg |
| 89 | + Resources/icons/compact_view.svg |
| 90 | + Resources/icons/composite_view.svg |
| 91 | + Resources/icons/debug-stop.svg |
| 92 | + Resources/icons/document-package.svg |
| 93 | + Resources/icons/document-python.svg |
| 94 | + Resources/icons/expanded_view.svg |
| 95 | + Resources/icons/process-stop.svg |
| 96 | + Resources/icons/sort_ascending.svg |
| 97 | + Resources/icons/sort_descending.svg |
| 98 | + Resources/icons/view-refresh.svg |
| 99 | +) |
| 100 | + |
| 101 | +SET(AddonManagerResourceFilesTranslations |
| 102 | + Resources/translations/AddonManager_af.qm |
| 103 | + Resources/translations/AddonManager_ar.qm |
| 104 | + Resources/translations/AddonManager_be.qm |
| 105 | + Resources/translations/AddonManager_bg.qm |
| 106 | + Resources/translations/AddonManager_ca.qm |
| 107 | + Resources/translations/AddonManager_cs.qm |
| 108 | + Resources/translations/AddonManager_da.qm |
| 109 | + Resources/translations/AddonManager_de.qm |
| 110 | + Resources/translations/AddonManager_el.qm |
| 111 | + Resources/translations/AddonManager_es-AR.qm |
| 112 | + Resources/translations/AddonManager_es-ES.qm |
| 113 | + Resources/translations/AddonManager_eu.qm |
| 114 | + Resources/translations/AddonManager_fi.qm |
| 115 | + Resources/translations/AddonManager_fil.qm |
| 116 | + Resources/translations/AddonManager_fr.qm |
| 117 | + Resources/translations/AddonManager_gl.qm |
| 118 | + Resources/translations/AddonManager_hr.qm |
| 119 | + Resources/translations/AddonManager_hu.qm |
| 120 | + Resources/translations/AddonManager_id.qm |
| 121 | + Resources/translations/AddonManager_it.qm |
| 122 | + Resources/translations/AddonManager_ja.qm |
| 123 | + Resources/translations/AddonManager_ka.qm |
| 124 | + Resources/translations/AddonManager_kab.qm |
| 125 | + Resources/translations/AddonManager_ko.qm |
| 126 | + Resources/translations/AddonManager_lt.qm |
| 127 | + Resources/translations/AddonManager_nl.qm |
| 128 | + Resources/translations/AddonManager_no.qm |
| 129 | + Resources/translations/AddonManager_pl.qm |
| 130 | + Resources/translations/AddonManager_pt-BR.qm |
| 131 | + Resources/translations/AddonManager_pt-PT.qm |
| 132 | + Resources/translations/AddonManager_ro.qm |
| 133 | + Resources/translations/AddonManager_ru.qm |
| 134 | + Resources/translations/AddonManager_sk.qm |
| 135 | + Resources/translations/AddonManager_sl.qm |
| 136 | + Resources/translations/AddonManager_sr-CS.qm |
| 137 | + Resources/translations/AddonManager_sr.qm |
| 138 | + Resources/translations/AddonManager_sv-SE.qm |
| 139 | + Resources/translations/AddonManager_tr.qm |
| 140 | + Resources/translations/AddonManager_uk.qm |
| 141 | + Resources/translations/AddonManager_val-ES.qm |
| 142 | + Resources/translations/AddonManager_vi.qm |
| 143 | + Resources/translations/AddonManager_zh-CN.qm |
| 144 | + Resources/translations/AddonManager_zh-TW.qm |
| 145 | +) |
| 146 | + |
| 147 | +LIST(APPEND AddonManager_SRCS |
| 148 | + ${AddonManagerResourceFilesIcons} |
| 149 | + ${AddonManagerResourceFilesLicenses} |
| 150 | + ${AddonManagerResourceFilesTranslations} |
| 151 | +) |
| 152 | + |
| 153 | +SET(AddonManagerResourceFilesLicenses |
| 154 | + Resources/licenses/Apache-2.0.txt |
| 155 | + Resources/licenses/BSD-2-Clause.txt |
| 156 | + Resources/licenses/BSD-3-Clause.txt |
| 157 | + Resources/licenses/CC0-1.0.txt |
| 158 | + Resources/licenses/GPL-2.0-or-later.txt |
| 159 | + Resources/licenses/GPL-3.0-or-later.txt |
| 160 | + Resources/licenses/LGPL-2.1-or-later.txt |
| 161 | + Resources/licenses/LGPL-3.0-or-later.txt |
| 162 | + Resources/licenses/MIT.txt |
| 163 | + Resources/licenses/MPL-2.0.txt |
| 164 | + Resources/licenses/spdx.json |
| 165 | +) |
| 166 | + |
85 | 167 | SET(AddonManagerTests_SRCS
|
86 | 168 | AddonManagerTest/__init__.py
|
87 | 169 | AddonManagerTest/test_information.md
|
@@ -157,32 +239,17 @@ IF (BUILD_GUI)
|
157 | 239 | ENDIF (BUILD_GUI)
|
158 | 240 |
|
159 | 241 | ADD_CUSTOM_TARGET(AddonManager ALL
|
160 |
| - SOURCES ${AddonManager_SRCS} ${AddonManager_QRC_SRCS} |
| 242 | + SOURCES ${AddonManager_SRCS} |
161 | 243 | )
|
162 | 244 |
|
163 | 245 | ADD_CUSTOM_TARGET(AddonManagerTests ALL
|
164 | 246 | SOURCES ${AddonManagerTests_ALL}
|
165 | 247 | )
|
166 | 248 |
|
167 | 249 | fc_copy_sources(AddonManager "${CMAKE_BINARY_DIR}/Mod/AddonManager" ${AddonManager_SRCS})
|
168 |
| - |
169 | 250 | fc_copy_sources(AddonManagerTests "${CMAKE_BINARY_DIR}/Mod/AddonManager" ${AddonManagerTests_ALL})
|
170 | 251 |
|
171 |
| -IF (BUILD_GUI) |
172 |
| - fc_target_copy_resource(AddonManager |
173 |
| - ${CMAKE_CURRENT_BINARY_DIR} |
174 |
| - ${CMAKE_BINARY_DIR}/Mod/AddonManager |
175 |
| - AddonManager_rc.py) |
176 |
| -ENDIF (BUILD_GUI) |
177 |
| - |
178 |
| -INSTALL( |
179 |
| - FILES |
180 |
| - ${AddonManager_SRCS} |
181 |
| - ${AddonManager_QRC_SRCS} |
182 |
| - DESTINATION |
183 |
| - Mod/AddonManager |
184 |
| -) |
185 |
| - |
| 252 | +INSTALL(FILES ${AddonManager_SRCS} DESTINATION Mod/AddonManager) |
186 | 253 | INSTALL(FILES ${AddonManagerTests_SRCS} DESTINATION Mod/AddonManager/AddonManagerTest)
|
187 | 254 | INSTALL(FILES ${AddonManagerTestsApp_SRCS} DESTINATION Mod/AddonManager/AddonManagerTest/app)
|
188 | 255 | INSTALL(FILES ${AddonManagerTestsGui_SRCS} DESTINATION Mod/AddonManager/AddonManagerTest/gui)
|
|
0 commit comments