1# Copyright (c) 2024 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//base/print/print_fwk/print.gni") 15import("//build/ohos.gni") 16 17if (print_fwk_feature_bsuni_driver) { 18 ohos_prebuilt_shared_library("bsuni_driver_sdk") { 19 source = "${bsuni_binary_path}/lib64/libbsUniDiscovery.so" 20 part_name = "print_fwk" 21 subsystem_name = "print" 22 module_install_dir = "${bsuni_binary_install_path}/lib64" 23 install_enable = true 24 } 25 26 ohos_prebuilt_executable("bsuni_driver_filter") { 27 source = "${bsuni_binary_path}/filter/bsUniFilter" 28 part_name = "print_fwk" 29 subsystem_name = "print" 30 module_install_dir = "${bsuni_binary_install_path}/filter" 31 install_enable = true 32 } 33 34 ohos_prebuilt_executable("bsuni_driver_backend_lpd") { 35 source = "${bsuni_binary_path}/backend/lpd" 36 part_name = "print_fwk" 37 subsystem_name = "print" 38 module_install_dir = "${bsuni_binary_install_path}/backend" 39 install_enable = true 40 } 41 42 ohos_prebuilt_executable("bsuni_driver_backend_socket") { 43 source = "${bsuni_binary_path}/backend/socket" 44 part_name = "print_fwk" 45 subsystem_name = "print" 46 module_install_dir = "${bsuni_binary_install_path}/backend" 47 install_enable = true 48 } 49 50 ohos_prebuilt_executable("bsuni_driver_backend_bsuni") { 51 source = "${bsuni_binary_path}/backend/bsUniBackend" 52 part_name = "print_fwk" 53 subsystem_name = "print" 54 module_install_dir = "${bsuni_binary_install_path}/backend" 55 install_enable = true 56 } 57 58 ohos_copy("bsuni_driver_ghostscript_bin") { 59 sources = [ 60 "${bsuni_gsbin_path}/dvipdf", 61 "${bsuni_gsbin_path}/eps2eps", 62 "${bsuni_gsbin_path}/gs", 63 "${bsuni_gsbin_path}/gsbj", 64 "${bsuni_gsbin_path}/gsdj", 65 "${bsuni_gsbin_path}/gsdj500", 66 "${bsuni_gsbin_path}/gslj", 67 "${bsuni_gsbin_path}/gslp", 68 "${bsuni_gsbin_path}/gsnd", 69 "${bsuni_gsbin_path}/lprsetup.sh", 70 "${bsuni_gsbin_path}/pdf2dsc", 71 "${bsuni_gsbin_path}/pdf2ps", 72 "${bsuni_gsbin_path}/pf2afm", 73 "${bsuni_gsbin_path}/pfbtopfa", 74 "${bsuni_gsbin_path}/pphs", 75 "${bsuni_gsbin_path}/printafm", 76 "${bsuni_gsbin_path}/ps2ascii", 77 "${bsuni_gsbin_path}/ps2epsi", 78 "${bsuni_gsbin_path}/ps2pdf", 79 "${bsuni_gsbin_path}/ps2pdf12", 80 "${bsuni_gsbin_path}/ps2pdf13", 81 "${bsuni_gsbin_path}/ps2pdf14", 82 "${bsuni_gsbin_path}/ps2pdfwr", 83 "${bsuni_gsbin_path}/ps2ps", 84 "${bsuni_gsbin_path}/ps2ps2", 85 "${bsuni_gsbin_path}/unix-lpr.sh", 86 ] 87 outputs = [ "${target_out_dir}/$target_name/{{source_file_part}}" ] 88 part_name = "print_fwk" 89 subsystem_name = "print" 90 module_type = "bin" 91 prebuilt = true 92 module_source_dir = target_out_dir 93 module_install_name = "" 94 module_install_dir = "${bsuni_gsbin_install_path}" 95 install_enable = true 96 } 97 98 ohos_copy("bsuni_driver_ghostscript_lib") { 99 sources = [ 100 "${bsuni_gslib_path}/PDFA_def.ps", 101 "${bsuni_gslib_path}/PDFX_def.ps", 102 "${bsuni_gslib_path}/acctest.ps", 103 "${bsuni_gslib_path}/align.ps", 104 "${bsuni_gslib_path}/bj8.rpd", 105 "${bsuni_gslib_path}/bj8gc12f.upp", 106 "${bsuni_gslib_path}/bj8hg12f.upp", 107 "${bsuni_gslib_path}/bj8oh06n.upp", 108 "${bsuni_gslib_path}/bj8pa06n.upp", 109 "${bsuni_gslib_path}/bj8pp12f.upp", 110 "${bsuni_gslib_path}/bj8ts06n.upp", 111 "${bsuni_gslib_path}/bjc610a0.upp", 112 "${bsuni_gslib_path}/bjc610a1.upp", 113 "${bsuni_gslib_path}/bjc610a2.upp", 114 "${bsuni_gslib_path}/bjc610a3.upp", 115 "${bsuni_gslib_path}/bjc610a4.upp", 116 "${bsuni_gslib_path}/bjc610a5.upp", 117 "${bsuni_gslib_path}/bjc610a6.upp", 118 "${bsuni_gslib_path}/bjc610a7.upp", 119 "${bsuni_gslib_path}/bjc610a8.upp", 120 "${bsuni_gslib_path}/bjc610b1.upp", 121 "${bsuni_gslib_path}/bjc610b2.upp", 122 "${bsuni_gslib_path}/bjc610b3.upp", 123 "${bsuni_gslib_path}/bjc610b4.upp", 124 "${bsuni_gslib_path}/bjc610b6.upp", 125 "${bsuni_gslib_path}/bjc610b7.upp", 126 "${bsuni_gslib_path}/bjc610b8.upp", 127 "${bsuni_gslib_path}/caption.ps", 128 "${bsuni_gslib_path}/cbjc600.ppd", 129 "${bsuni_gslib_path}/cbjc800.ppd", 130 "${bsuni_gslib_path}/cdj550.upp", 131 "${bsuni_gslib_path}/cdj690.upp", 132 "${bsuni_gslib_path}/cdj690ec.upp", 133 "${bsuni_gslib_path}/cid2code.ps", 134 "${bsuni_gslib_path}/dnj750c.upp", 135 "${bsuni_gslib_path}/dnj750m.upp", 136 "${bsuni_gslib_path}/docie.ps", 137 "${bsuni_gslib_path}/font2pcl.ps", 138 "${bsuni_gslib_path}/ghostpdf.ppd", 139 "${bsuni_gslib_path}/gs_ce_e.ps", 140 "${bsuni_gslib_path}/gs_css_e.ps", 141 "${bsuni_gslib_path}/gs_il2_e.ps", 142 "${bsuni_gslib_path}/gs_kanji.ps", 143 "${bsuni_gslib_path}/gs_ksb_e.ps", 144 "${bsuni_gslib_path}/gs_l.xbm", 145 "${bsuni_gslib_path}/gs_l.xpm", 146 "${bsuni_gslib_path}/gs_l_m.xbm", 147 "${bsuni_gslib_path}/gs_lgo_e.ps", 148 "${bsuni_gslib_path}/gs_lgx_e.ps", 149 "${bsuni_gslib_path}/gs_m.xbm", 150 "${bsuni_gslib_path}/gs_m.xpm", 151 "${bsuni_gslib_path}/gs_m_m.xbm", 152 "${bsuni_gslib_path}/gs_s.xbm", 153 "${bsuni_gslib_path}/gs_s.xpm", 154 "${bsuni_gslib_path}/gs_s_m.xbm", 155 "${bsuni_gslib_path}/gs_t.xbm", 156 "${bsuni_gslib_path}/gs_t.xpm", 157 "${bsuni_gslib_path}/gs_t_m.xbm", 158 "${bsuni_gslib_path}/gs_wl1_e.ps", 159 "${bsuni_gslib_path}/gs_wl2_e.ps", 160 "${bsuni_gslib_path}/gs_wl5_e.ps", 161 "${bsuni_gslib_path}/gslp.ps", 162 "${bsuni_gslib_path}/gsnup.ps", 163 "${bsuni_gslib_path}/ht_ccsto.ps", 164 "${bsuni_gslib_path}/image-qa.ps", 165 "${bsuni_gslib_path}/jispaper.ps", 166 "${bsuni_gslib_path}/landscap.ps", 167 "${bsuni_gslib_path}/lines.ps", 168 "${bsuni_gslib_path}/mkcidfm.ps", 169 "${bsuni_gslib_path}/necp2x.upp", 170 "${bsuni_gslib_path}/necp2x6.upp", 171 "${bsuni_gslib_path}/pdf2dsc.ps", 172 "${bsuni_gslib_path}/pdf_info.ps", 173 "${bsuni_gslib_path}/pf2afm.ps", 174 "${bsuni_gslib_path}/pfbtopfa.ps", 175 "${bsuni_gslib_path}/ppath.ps", 176 "${bsuni_gslib_path}/pphs.ps", 177 "${bsuni_gslib_path}/prfont.ps", 178 "${bsuni_gslib_path}/printafm.ps", 179 "${bsuni_gslib_path}/ps2ai.ps", 180 "${bsuni_gslib_path}/ps2epsi.ps", 181 "${bsuni_gslib_path}/ras1.upp", 182 "${bsuni_gslib_path}/ras24.upp", 183 "${bsuni_gslib_path}/ras3.upp", 184 "${bsuni_gslib_path}/ras32.upp", 185 "${bsuni_gslib_path}/ras4.upp", 186 "${bsuni_gslib_path}/ras8m.upp", 187 "${bsuni_gslib_path}/rollconv.ps", 188 "${bsuni_gslib_path}/st640ih.upp", 189 "${bsuni_gslib_path}/st640ihg.upp", 190 "${bsuni_gslib_path}/st640p.upp", 191 "${bsuni_gslib_path}/st640pg.upp", 192 "${bsuni_gslib_path}/st640pl.upp", 193 "${bsuni_gslib_path}/st640plg.upp", 194 "${bsuni_gslib_path}/stc.upp", 195 "${bsuni_gslib_path}/stc1520h.upp", 196 "${bsuni_gslib_path}/stc2.upp", 197 "${bsuni_gslib_path}/stc200_h.upp", 198 "${bsuni_gslib_path}/stc2_h.upp", 199 "${bsuni_gslib_path}/stc2s_h.upp", 200 "${bsuni_gslib_path}/stc300.upp", 201 "${bsuni_gslib_path}/stc300bl.upp", 202 "${bsuni_gslib_path}/stc300bm.upp", 203 "${bsuni_gslib_path}/stc500p.upp", 204 "${bsuni_gslib_path}/stc500ph.upp", 205 "${bsuni_gslib_path}/stc600ih.upp", 206 "${bsuni_gslib_path}/stc600p.upp", 207 "${bsuni_gslib_path}/stc600pl.upp", 208 "${bsuni_gslib_path}/stc640p.upp", 209 "${bsuni_gslib_path}/stc800ih.upp", 210 "${bsuni_gslib_path}/stc800p.upp", 211 "${bsuni_gslib_path}/stc800pl.upp", 212 "${bsuni_gslib_path}/stc_h.upp", 213 "${bsuni_gslib_path}/stc_l.upp", 214 "${bsuni_gslib_path}/stcany.upp", 215 "${bsuni_gslib_path}/stcany_h.upp", 216 "${bsuni_gslib_path}/stcinfo.ps", 217 "${bsuni_gslib_path}/stcolor.ps", 218 "${bsuni_gslib_path}/stocht.ps", 219 "${bsuni_gslib_path}/traceimg.ps", 220 "${bsuni_gslib_path}/traceop.ps", 221 "${bsuni_gslib_path}/uninfo.ps", 222 "${bsuni_gslib_path}/viewcmyk.ps", 223 "${bsuni_gslib_path}/viewgif.ps", 224 "${bsuni_gslib_path}/viewjpeg.ps", 225 "${bsuni_gslib_path}/viewmiff.ps", 226 "${bsuni_gslib_path}/viewpbm.ps", 227 "${bsuni_gslib_path}/viewpcx.ps", 228 "${bsuni_gslib_path}/viewps2a.ps", 229 "${bsuni_gslib_path}/winmaps.ps", 230 "${bsuni_gslib_path}/zeroline.ps", 231 ] 232 outputs = [ "${target_out_dir}/$target_name/{{source_file_part}}" ] 233 part_name = "print_fwk" 234 subsystem_name = "print" 235 module_type = "etc" 236 prebuilt = true 237 module_source_dir = target_out_dir 238 module_install_name = "" 239 module_install_dir = "${bsuni_gslib_install_path}" 240 install_enable = true 241 } 242 243 ohos_copy("bsuni_driver_ghostscript_res_cidfsubst") { 244 sources = [ "${bsuni_gsres_path}/CIDFSubst/DroidSansFallback.ttf" ] 245 outputs = [ "${target_out_dir}/$target_name/{{source_file_part}}" ] 246 part_name = "print_fwk" 247 subsystem_name = "print" 248 module_type = "etc" 249 prebuilt = true 250 module_source_dir = target_out_dir 251 module_install_name = "" 252 module_install_dir = "${bsuni_gsres_install_path}/CIDFSubst" 253 install_enable = true 254 } 255 256 ohos_copy("bsuni_driver_ghostscript_res_cidfont") { 257 sources = [ "${bsuni_gsres_path}/CIDFont/ArtifexBullet" ] 258 outputs = [ "${target_out_dir}/$target_name/{{source_file_part}}" ] 259 part_name = "print_fwk" 260 subsystem_name = "print" 261 module_type = "etc" 262 prebuilt = true 263 module_source_dir = target_out_dir 264 module_install_name = "" 265 module_install_dir = "${bsuni_gsres_install_path}/CIDFont" 266 install_enable = true 267 } 268 269 ohos_copy("bsuni_driver_ghostscript_res_cmap") { 270 sources = [ 271 "${bsuni_gsres_path}/CMap/78-EUC-H", 272 "${bsuni_gsres_path}/CMap/78-EUC-V", 273 "${bsuni_gsres_path}/CMap/78-H", 274 "${bsuni_gsres_path}/CMap/78-RKSJ-H", 275 "${bsuni_gsres_path}/CMap/78-RKSJ-V", 276 "${bsuni_gsres_path}/CMap/78-V", 277 "${bsuni_gsres_path}/CMap/78ms-RKSJ-H", 278 "${bsuni_gsres_path}/CMap/78ms-RKSJ-V", 279 "${bsuni_gsres_path}/CMap/83pv-RKSJ-H", 280 "${bsuni_gsres_path}/CMap/90ms-RKSJ-H", 281 "${bsuni_gsres_path}/CMap/90ms-RKSJ-V", 282 "${bsuni_gsres_path}/CMap/90msp-RKSJ-H", 283 "${bsuni_gsres_path}/CMap/90msp-RKSJ-V", 284 "${bsuni_gsres_path}/CMap/90pv-RKSJ-H", 285 "${bsuni_gsres_path}/CMap/90pv-RKSJ-V", 286 "${bsuni_gsres_path}/CMap/Add-H", 287 "${bsuni_gsres_path}/CMap/Add-RKSJ-H", 288 "${bsuni_gsres_path}/CMap/Add-RKSJ-V", 289 "${bsuni_gsres_path}/CMap/Add-V", 290 "${bsuni_gsres_path}/CMap/Adobe-CNS1-0", 291 "${bsuni_gsres_path}/CMap/Adobe-CNS1-1", 292 "${bsuni_gsres_path}/CMap/Adobe-CNS1-2", 293 "${bsuni_gsres_path}/CMap/Adobe-CNS1-3", 294 "${bsuni_gsres_path}/CMap/Adobe-CNS1-4", 295 "${bsuni_gsres_path}/CMap/Adobe-CNS1-5", 296 "${bsuni_gsres_path}/CMap/Adobe-CNS1-6", 297 "${bsuni_gsres_path}/CMap/Adobe-CNS1-7", 298 "${bsuni_gsres_path}/CMap/Adobe-GB1-0", 299 "${bsuni_gsres_path}/CMap/Adobe-GB1-1", 300 "${bsuni_gsres_path}/CMap/Adobe-GB1-2", 301 "${bsuni_gsres_path}/CMap/Adobe-GB1-3", 302 "${bsuni_gsres_path}/CMap/Adobe-GB1-4", 303 "${bsuni_gsres_path}/CMap/Adobe-GB1-5", 304 "${bsuni_gsres_path}/CMap/Adobe-Japan1-0", 305 "${bsuni_gsres_path}/CMap/Adobe-Japan1-1", 306 "${bsuni_gsres_path}/CMap/Adobe-Japan1-2", 307 "${bsuni_gsres_path}/CMap/Adobe-Japan1-3", 308 "${bsuni_gsres_path}/CMap/Adobe-Japan1-4", 309 "${bsuni_gsres_path}/CMap/Adobe-Japan1-5", 310 "${bsuni_gsres_path}/CMap/Adobe-Japan1-6", 311 "${bsuni_gsres_path}/CMap/Adobe-Japan2-0", 312 "${bsuni_gsres_path}/CMap/Adobe-Korea1-0", 313 "${bsuni_gsres_path}/CMap/Adobe-Korea1-1", 314 "${bsuni_gsres_path}/CMap/Adobe-Korea1-2", 315 "${bsuni_gsres_path}/CMap/B5-H", 316 "${bsuni_gsres_path}/CMap/B5-V", 317 "${bsuni_gsres_path}/CMap/B5pc-H", 318 "${bsuni_gsres_path}/CMap/B5pc-V", 319 "${bsuni_gsres_path}/CMap/CNS-EUC-H", 320 "${bsuni_gsres_path}/CMap/CNS-EUC-V", 321 "${bsuni_gsres_path}/CMap/CNS1-H", 322 "${bsuni_gsres_path}/CMap/CNS1-V", 323 "${bsuni_gsres_path}/CMap/CNS2-H", 324 "${bsuni_gsres_path}/CMap/CNS2-V", 325 "${bsuni_gsres_path}/CMap/ETHK-B5-H", 326 "${bsuni_gsres_path}/CMap/ETHK-B5-V", 327 "${bsuni_gsres_path}/CMap/ETen-B5-H", 328 "${bsuni_gsres_path}/CMap/ETen-B5-V", 329 "${bsuni_gsres_path}/CMap/ETenms-B5-H", 330 "${bsuni_gsres_path}/CMap/ETenms-B5-V", 331 "${bsuni_gsres_path}/CMap/EUC-H", 332 "${bsuni_gsres_path}/CMap/EUC-V", 333 "${bsuni_gsres_path}/CMap/Ext-H", 334 "${bsuni_gsres_path}/CMap/Ext-RKSJ-H", 335 "${bsuni_gsres_path}/CMap/Ext-RKSJ-V", 336 "${bsuni_gsres_path}/CMap/Ext-V", 337 "${bsuni_gsres_path}/CMap/GB-EUC-H", 338 "${bsuni_gsres_path}/CMap/GB-EUC-V", 339 "${bsuni_gsres_path}/CMap/GB-H", 340 "${bsuni_gsres_path}/CMap/GB-V", 341 "${bsuni_gsres_path}/CMap/GBK-EUC-H", 342 "${bsuni_gsres_path}/CMap/GBK-EUC-V", 343 "${bsuni_gsres_path}/CMap/GBK2K-H", 344 "${bsuni_gsres_path}/CMap/GBK2K-V", 345 "${bsuni_gsres_path}/CMap/GBKp-EUC-H", 346 "${bsuni_gsres_path}/CMap/GBKp-EUC-V", 347 "${bsuni_gsres_path}/CMap/GBT-EUC-H", 348 "${bsuni_gsres_path}/CMap/GBT-EUC-V", 349 "${bsuni_gsres_path}/CMap/GBT-H", 350 "${bsuni_gsres_path}/CMap/GBT-V", 351 "${bsuni_gsres_path}/CMap/GBTpc-EUC-H", 352 "${bsuni_gsres_path}/CMap/GBTpc-EUC-V", 353 "${bsuni_gsres_path}/CMap/GBpc-EUC-H", 354 "${bsuni_gsres_path}/CMap/GBpc-EUC-V", 355 "${bsuni_gsres_path}/CMap/H", 356 "${bsuni_gsres_path}/CMap/HKdla-B5-H", 357 "${bsuni_gsres_path}/CMap/HKdla-B5-V", 358 "${bsuni_gsres_path}/CMap/HKdlb-B5-H", 359 "${bsuni_gsres_path}/CMap/HKdlb-B5-V", 360 "${bsuni_gsres_path}/CMap/HKgccs-B5-H", 361 "${bsuni_gsres_path}/CMap/HKgccs-B5-V", 362 "${bsuni_gsres_path}/CMap/HKm314-B5-H", 363 "${bsuni_gsres_path}/CMap/HKm314-B5-V", 364 "${bsuni_gsres_path}/CMap/HKm471-B5-H", 365 "${bsuni_gsres_path}/CMap/HKm471-B5-V", 366 "${bsuni_gsres_path}/CMap/HKscs-B5-H", 367 "${bsuni_gsres_path}/CMap/HKscs-B5-V", 368 "${bsuni_gsres_path}/CMap/Hankaku", 369 "${bsuni_gsres_path}/CMap/Hiragana", 370 "${bsuni_gsres_path}/CMap/Hojo-EUC-H", 371 "${bsuni_gsres_path}/CMap/Hojo-EUC-V", 372 "${bsuni_gsres_path}/CMap/Hojo-H", 373 "${bsuni_gsres_path}/CMap/Hojo-V", 374 "${bsuni_gsres_path}/CMap/Identity-H", 375 "${bsuni_gsres_path}/CMap/Identity-UTF16-H", 376 "${bsuni_gsres_path}/CMap/Identity-V", 377 "${bsuni_gsres_path}/CMap/KSC-EUC-H", 378 "${bsuni_gsres_path}/CMap/KSC-EUC-V", 379 "${bsuni_gsres_path}/CMap/KSC-H", 380 "${bsuni_gsres_path}/CMap/KSC-Johab-H", 381 "${bsuni_gsres_path}/CMap/KSC-Johab-V", 382 "${bsuni_gsres_path}/CMap/KSC-V", 383 "${bsuni_gsres_path}/CMap/KSCms-UHC-H", 384 "${bsuni_gsres_path}/CMap/KSCms-UHC-HW-H", 385 "${bsuni_gsres_path}/CMap/KSCms-UHC-HW-V", 386 "${bsuni_gsres_path}/CMap/KSCms-UHC-V", 387 "${bsuni_gsres_path}/CMap/KSCpc-EUC-H", 388 "${bsuni_gsres_path}/CMap/KSCpc-EUC-V", 389 "${bsuni_gsres_path}/CMap/Katakana", 390 "${bsuni_gsres_path}/CMap/NWP-H", 391 "${bsuni_gsres_path}/CMap/NWP-V", 392 "${bsuni_gsres_path}/CMap/RKSJ-H", 393 "${bsuni_gsres_path}/CMap/RKSJ-V", 394 "${bsuni_gsres_path}/CMap/Roman", 395 "${bsuni_gsres_path}/CMap/UniCNS-UCS2-H", 396 "${bsuni_gsres_path}/CMap/UniCNS-UCS2-V", 397 "${bsuni_gsres_path}/CMap/UniCNS-UTF16-H", 398 "${bsuni_gsres_path}/CMap/UniCNS-UTF16-V", 399 "${bsuni_gsres_path}/CMap/UniCNS-UTF32-H", 400 "${bsuni_gsres_path}/CMap/UniCNS-UTF32-V", 401 "${bsuni_gsres_path}/CMap/UniCNS-UTF8-H", 402 "${bsuni_gsres_path}/CMap/UniCNS-UTF8-V", 403 "${bsuni_gsres_path}/CMap/UniGB-UCS2-H", 404 "${bsuni_gsres_path}/CMap/UniGB-UCS2-V", 405 "${bsuni_gsres_path}/CMap/UniGB-UTF16-H", 406 "${bsuni_gsres_path}/CMap/UniGB-UTF16-V", 407 "${bsuni_gsres_path}/CMap/UniGB-UTF32-H", 408 "${bsuni_gsres_path}/CMap/UniGB-UTF32-V", 409 "${bsuni_gsres_path}/CMap/UniGB-UTF8-H", 410 "${bsuni_gsres_path}/CMap/UniGB-UTF8-V", 411 "${bsuni_gsres_path}/CMap/UniHojo-UCS2-H", 412 "${bsuni_gsres_path}/CMap/UniHojo-UCS2-V", 413 "${bsuni_gsres_path}/CMap/UniHojo-UTF16-H", 414 "${bsuni_gsres_path}/CMap/UniHojo-UTF16-V", 415 "${bsuni_gsres_path}/CMap/UniHojo-UTF32-H", 416 "${bsuni_gsres_path}/CMap/UniHojo-UTF32-V", 417 "${bsuni_gsres_path}/CMap/UniHojo-UTF8-H", 418 "${bsuni_gsres_path}/CMap/UniHojo-UTF8-V", 419 "${bsuni_gsres_path}/CMap/UniJIS-UCS2-H", 420 "${bsuni_gsres_path}/CMap/UniJIS-UCS2-HW-H", 421 "${bsuni_gsres_path}/CMap/UniJIS-UCS2-HW-V", 422 "${bsuni_gsres_path}/CMap/UniJIS-UCS2-V", 423 "${bsuni_gsres_path}/CMap/UniJIS-UTF16-H", 424 "${bsuni_gsres_path}/CMap/UniJIS-UTF16-V", 425 "${bsuni_gsres_path}/CMap/UniJIS-UTF32-H", 426 "${bsuni_gsres_path}/CMap/UniJIS-UTF32-V", 427 "${bsuni_gsres_path}/CMap/UniJIS-UTF8-H", 428 "${bsuni_gsres_path}/CMap/UniJIS-UTF8-V", 429 "${bsuni_gsres_path}/CMap/UniJIS2004-UTF16-H", 430 "${bsuni_gsres_path}/CMap/UniJIS2004-UTF16-V", 431 "${bsuni_gsres_path}/CMap/UniJIS2004-UTF32-H", 432 "${bsuni_gsres_path}/CMap/UniJIS2004-UTF32-V", 433 "${bsuni_gsres_path}/CMap/UniJIS2004-UTF8-H", 434 "${bsuni_gsres_path}/CMap/UniJIS2004-UTF8-V", 435 "${bsuni_gsres_path}/CMap/UniJISPro-UCS2-HW-V", 436 "${bsuni_gsres_path}/CMap/UniJISPro-UCS2-V", 437 "${bsuni_gsres_path}/CMap/UniJISPro-UTF8-V", 438 "${bsuni_gsres_path}/CMap/UniJISX0213-UTF32-H", 439 "${bsuni_gsres_path}/CMap/UniJISX0213-UTF32-V", 440 "${bsuni_gsres_path}/CMap/UniJISX02132004-UTF32-H", 441 "${bsuni_gsres_path}/CMap/UniJISX02132004-UTF32-V", 442 "${bsuni_gsres_path}/CMap/UniKS-UCS2-H", 443 "${bsuni_gsres_path}/CMap/UniKS-UCS2-V", 444 "${bsuni_gsres_path}/CMap/UniKS-UTF16-H", 445 "${bsuni_gsres_path}/CMap/UniKS-UTF16-V", 446 "${bsuni_gsres_path}/CMap/UniKS-UTF32-H", 447 "${bsuni_gsres_path}/CMap/UniKS-UTF32-V", 448 "${bsuni_gsres_path}/CMap/UniKS-UTF8-H", 449 "${bsuni_gsres_path}/CMap/UniKS-UTF8-V", 450 "${bsuni_gsres_path}/CMap/V", 451 "${bsuni_gsres_path}/CMap/WP-Symbol", 452 ] 453 outputs = [ "${target_out_dir}/$target_name/{{source_file_part}}" ] 454 part_name = "print_fwk" 455 subsystem_name = "print" 456 module_type = "etc" 457 prebuilt = true 458 module_source_dir = target_out_dir 459 module_install_name = "" 460 module_install_dir = "${bsuni_gsres_install_path}/CMap" 461 install_enable = true 462 } 463 464 ohos_copy("bsuni_driver_ghostscript_res_colorspace") { 465 sources = [ 466 "${bsuni_gsres_path}/ColorSpace/DefaultCMYK", 467 "${bsuni_gsres_path}/ColorSpace/DefaultGray", 468 "${bsuni_gsres_path}/ColorSpace/DefaultRGB", 469 "${bsuni_gsres_path}/ColorSpace/TrivialCMYK", 470 "${bsuni_gsres_path}/ColorSpace/sGray", 471 "${bsuni_gsres_path}/ColorSpace/sRGB", 472 ] 473 outputs = [ "${target_out_dir}/$target_name/{{source_file_part}}" ] 474 part_name = "print_fwk" 475 subsystem_name = "print" 476 module_type = "etc" 477 prebuilt = true 478 module_source_dir = target_out_dir 479 module_install_name = "" 480 module_install_dir = "${bsuni_gsres_install_path}/ColorSpace" 481 install_enable = true 482 } 483 484 ohos_copy("bsuni_driver_ghostscript_res_decoding") { 485 sources = [ 486 "${bsuni_gsres_path}/Decoding/FCO_Dingbats", 487 "${bsuni_gsres_path}/Decoding/FCO_Symbol", 488 "${bsuni_gsres_path}/Decoding/FCO_Unicode", 489 "${bsuni_gsres_path}/Decoding/FCO_Wingdings", 490 "${bsuni_gsres_path}/Decoding/Latin1", 491 "${bsuni_gsres_path}/Decoding/StandardEncoding", 492 "${bsuni_gsres_path}/Decoding/Unicode", 493 ] 494 outputs = [ "${target_out_dir}/$target_name/{{source_file_part}}" ] 495 part_name = "print_fwk" 496 subsystem_name = "print" 497 module_type = "etc" 498 prebuilt = true 499 module_source_dir = target_out_dir 500 module_install_name = "" 501 module_install_dir = "${bsuni_gsres_install_path}/Decoding" 502 install_enable = true 503 } 504 505 ohos_copy("bsuni_driver_ghostscript_res_encoding") { 506 sources = [ 507 "${bsuni_gsres_path}/Encoding/CEEncoding", 508 "${bsuni_gsres_path}/Encoding/ExpertEncoding", 509 "${bsuni_gsres_path}/Encoding/ExpertSubsetEncoding", 510 "${bsuni_gsres_path}/Encoding/NotDefEncoding", 511 "${bsuni_gsres_path}/Encoding/Wingdings", 512 ] 513 outputs = [ "${target_out_dir}/$target_name/{{source_file_part}}" ] 514 part_name = "print_fwk" 515 subsystem_name = "print" 516 module_type = "etc" 517 prebuilt = true 518 module_source_dir = target_out_dir 519 module_install_name = "" 520 module_install_dir = "${bsuni_gsres_install_path}/Encoding" 521 install_enable = true 522 } 523 524 ohos_copy("bsuni_driver_ghostscript_res_font") { 525 sources = [ 526 "${bsuni_gsres_path}/Font/C059-BdIta", 527 "${bsuni_gsres_path}/Font/C059-Bold", 528 "${bsuni_gsres_path}/Font/C059-Italic", 529 "${bsuni_gsres_path}/Font/C059-Roman", 530 "${bsuni_gsres_path}/Font/D050000L", 531 "${bsuni_gsres_path}/Font/NimbusMonoPS-Bold", 532 "${bsuni_gsres_path}/Font/NimbusMonoPS-BoldItalic", 533 "${bsuni_gsres_path}/Font/NimbusMonoPS-Italic", 534 "${bsuni_gsres_path}/Font/NimbusMonoPS-Regular", 535 "${bsuni_gsres_path}/Font/NimbusRoman-Bold", 536 "${bsuni_gsres_path}/Font/NimbusRoman-BoldItalic", 537 "${bsuni_gsres_path}/Font/NimbusRoman-Italic", 538 "${bsuni_gsres_path}/Font/NimbusRoman-Regular", 539 "${bsuni_gsres_path}/Font/NimbusSans-Bold", 540 "${bsuni_gsres_path}/Font/NimbusSans-BoldItalic", 541 "${bsuni_gsres_path}/Font/NimbusSans-Italic", 542 "${bsuni_gsres_path}/Font/NimbusSans-Regular", 543 "${bsuni_gsres_path}/Font/NimbusSansNarrow-Bold", 544 "${bsuni_gsres_path}/Font/NimbusSansNarrow-BoldOblique", 545 "${bsuni_gsres_path}/Font/NimbusSansNarrow-Oblique", 546 "${bsuni_gsres_path}/Font/NimbusSansNarrow-Regular", 547 "${bsuni_gsres_path}/Font/P052-Bold", 548 "${bsuni_gsres_path}/Font/P052-BoldItalic", 549 "${bsuni_gsres_path}/Font/P052-Italic", 550 "${bsuni_gsres_path}/Font/P052-Roman", 551 "${bsuni_gsres_path}/Font/StandardSymbolsPS", 552 "${bsuni_gsres_path}/Font/URWBookman-Demi", 553 "${bsuni_gsres_path}/Font/URWBookman-DemiItalic", 554 "${bsuni_gsres_path}/Font/URWBookman-Light", 555 "${bsuni_gsres_path}/Font/URWBookman-LightItalic", 556 "${bsuni_gsres_path}/Font/URWGothic-Book", 557 "${bsuni_gsres_path}/Font/URWGothic-BookOblique", 558 "${bsuni_gsres_path}/Font/URWGothic-Demi", 559 "${bsuni_gsres_path}/Font/URWGothic-DemiOblique", 560 "${bsuni_gsres_path}/Font/Z003-MediumItalic", 561 ] 562 outputs = [ "${target_out_dir}/$target_name/{{source_file_part}}" ] 563 part_name = "print_fwk" 564 subsystem_name = "print" 565 module_type = "etc" 566 prebuilt = true 567 module_source_dir = target_out_dir 568 module_install_name = "" 569 module_install_dir = "${bsuni_gsres_install_path}/Font" 570 install_enable = true 571 } 572 573 ohos_copy("bsuni_driver_ghostscript_res_idiomSet") { 574 sources = [ 575 "${bsuni_gsres_path}/IdiomSet/PPI_CUtils", 576 "${bsuni_gsres_path}/IdiomSet/Pscript5Idiom", 577 ] 578 outputs = [ "${target_out_dir}/$target_name/{{source_file_part}}" ] 579 part_name = "print_fwk" 580 subsystem_name = "print" 581 module_type = "etc" 582 prebuilt = true 583 module_source_dir = target_out_dir 584 module_install_name = "" 585 module_install_dir = "${bsuni_gsres_install_path}/IdiomSet" 586 install_enable = true 587 } 588 589 ohos_copy("bsuni_driver_ghostscript_res_init") { 590 sources = [ 591 "${bsuni_gsres_path}/Init/FAPIcidfmap", 592 "${bsuni_gsres_path}/Init/FAPIconfig", 593 "${bsuni_gsres_path}/Init/FAPIfontmap", 594 "${bsuni_gsres_path}/Init/FCOfontmap-PCLPS2", 595 "${bsuni_gsres_path}/Init/Fontmap", 596 "${bsuni_gsres_path}/Init/Fontmap.GS", 597 "${bsuni_gsres_path}/Init/cidfmap", 598 "${bsuni_gsres_path}/Init/gs_agl.ps", 599 "${bsuni_gsres_path}/Init/gs_btokn.ps", 600 "${bsuni_gsres_path}/Init/gs_cet.ps", 601 "${bsuni_gsres_path}/Init/gs_cff.ps", 602 "${bsuni_gsres_path}/Init/gs_cidcm.ps", 603 "${bsuni_gsres_path}/Init/gs_ciddc.ps", 604 "${bsuni_gsres_path}/Init/gs_cidfm.ps", 605 "${bsuni_gsres_path}/Init/gs_cidfn.ps", 606 "${bsuni_gsres_path}/Init/gs_cidtt.ps", 607 "${bsuni_gsres_path}/Init/gs_cmap.ps", 608 "${bsuni_gsres_path}/Init/gs_cspace.ps", 609 "${bsuni_gsres_path}/Init/gs_dbt_e.ps", 610 "${bsuni_gsres_path}/Init/gs_diskn.ps", 611 "${bsuni_gsres_path}/Init/gs_dps1.ps", 612 "${bsuni_gsres_path}/Init/gs_dps2.ps", 613 "${bsuni_gsres_path}/Init/gs_dscp.ps", 614 "${bsuni_gsres_path}/Init/gs_epsf.ps", 615 "${bsuni_gsres_path}/Init/gs_fapi.ps", 616 "${bsuni_gsres_path}/Init/gs_fntem.ps", 617 "${bsuni_gsres_path}/Init/gs_fonts.ps", 618 "${bsuni_gsres_path}/Init/gs_frsd.ps", 619 "${bsuni_gsres_path}/Init/gs_icc.ps", 620 "${bsuni_gsres_path}/Init/gs_il1_e.ps", 621 "${bsuni_gsres_path}/Init/gs_img.ps", 622 "${bsuni_gsres_path}/Init/gs_init.ps", 623 "${bsuni_gsres_path}/Init/gs_lev2.ps", 624 "${bsuni_gsres_path}/Init/gs_ll3.ps", 625 "${bsuni_gsres_path}/Init/gs_mex_e.ps", 626 "${bsuni_gsres_path}/Init/gs_mgl_e.ps", 627 "${bsuni_gsres_path}/Init/gs_mro_e.ps", 628 "${bsuni_gsres_path}/Init/gs_pdf_e.ps", 629 "${bsuni_gsres_path}/Init/gs_pdfwr.ps", 630 "${bsuni_gsres_path}/Init/gs_res.ps", 631 "${bsuni_gsres_path}/Init/gs_resmp.ps", 632 "${bsuni_gsres_path}/Init/gs_setpd.ps", 633 "${bsuni_gsres_path}/Init/gs_statd.ps", 634 "${bsuni_gsres_path}/Init/gs_std_e.ps", 635 "${bsuni_gsres_path}/Init/gs_sym_e.ps", 636 "${bsuni_gsres_path}/Init/gs_trap.ps", 637 "${bsuni_gsres_path}/Init/gs_ttf.ps", 638 "${bsuni_gsres_path}/Init/gs_typ32.ps", 639 "${bsuni_gsres_path}/Init/gs_typ42.ps", 640 "${bsuni_gsres_path}/Init/gs_type1.ps", 641 "${bsuni_gsres_path}/Init/gs_wan_e.ps", 642 "${bsuni_gsres_path}/Init/pdf_main.ps", 643 "${bsuni_gsres_path}/Init/xlatmap", 644 ] 645 outputs = [ "${target_out_dir}/$target_name/{{source_file_part}}" ] 646 part_name = "print_fwk" 647 subsystem_name = "print" 648 module_type = "etc" 649 prebuilt = true 650 module_source_dir = target_out_dir 651 module_install_name = "" 652 module_install_dir = "${bsuni_gsres_install_path}/Init" 653 install_enable = true 654 } 655 656 ohos_copy("bsuni_driver_ghostscript_res_substcid") { 657 sources = [ 658 "${bsuni_gsres_path}/SubstCID/CNS1-WMode", 659 "${bsuni_gsres_path}/SubstCID/GB1-WMode", 660 "${bsuni_gsres_path}/SubstCID/Japan1-WMode", 661 "${bsuni_gsres_path}/SubstCID/Korea1-WMode", 662 ] 663 outputs = [ "${target_out_dir}/$target_name/{{source_file_part}}" ] 664 part_name = "print_fwk" 665 subsystem_name = "print" 666 module_type = "etc" 667 prebuilt = true 668 module_source_dir = target_out_dir 669 module_install_name = "" 670 module_install_dir = "${bsuni_gsres_install_path}/SubstCID" 671 install_enable = true 672 } 673} 674 675group("bsuni_driver_group") { 676 deps = [] 677 if (print_fwk_feature_bsuni_driver) { 678 deps += [ 679 ":bsuni_driver_backend_bsuni", 680 ":bsuni_driver_backend_lpd", 681 ":bsuni_driver_backend_socket", 682 ":bsuni_driver_filter", 683 ":bsuni_driver_ghostscript_bin", 684 ":bsuni_driver_ghostscript_lib", 685 ":bsuni_driver_ghostscript_res_cidfont", 686 ":bsuni_driver_ghostscript_res_cidfsubst", 687 ":bsuni_driver_ghostscript_res_cmap", 688 ":bsuni_driver_ghostscript_res_colorspace", 689 ":bsuni_driver_ghostscript_res_decoding", 690 ":bsuni_driver_ghostscript_res_encoding", 691 ":bsuni_driver_ghostscript_res_font", 692 ":bsuni_driver_ghostscript_res_idiomSet", 693 ":bsuni_driver_ghostscript_res_init", 694 ":bsuni_driver_ghostscript_res_substcid", 695 ":bsuni_driver_sdk", 696 ] 697 } 698} 699