@@ -21,7 +21,7 @@ project(
2121 ' pytn3270' ,
2222 [' c' , ' cpp' ],
2323 version : ' 5.5.0' ,
24- default_options : [' cpp_std=c++17' ],
24+ default_options : [' cpp_std=c++17' , ' buildtype=release ' ],
2525 license : ' GPL-3.0-or-later' ,
2626)
2727
@@ -87,7 +87,8 @@ app_conf.set('PACKAGE_VERSION_MAJOR', pkg_major_version)
8787app_conf.set(' PACKAGE_VERSION_MINOR' , pkg_minor_version)
8888app_conf.set(' PACKAGE_VERSION_MICRO' , pkg_micro_version)
8989
90- app_conf.set(' PRODUCT_NAME' , meson .project_name())
90+ app_conf.set(' PRODUCT_ID' ,ipc3270.get_variable (' product_id' ))
91+ app_conf.set(' PRODUCT_NAME' , ipc3270.get_variable (' product_name' ))
9192app_conf.set(' PRODUCT_VERSION' , meson .project_version())
9293
9394if cxx.compiles(' #include <unistd.h>' , name : ' unistd.h' )
@@ -155,4 +156,10 @@ shared_library(
155156 include_directories : includes_dir
156157)
157158
159+ configure_file (
160+ input : ' branding/metainfo.xml.in' ,
161+ output : ipc3270.get_variable (' product_id' ) + ' .python.metainfo.xml' ,
162+ install_dir : get_option (' datadir' ) / ' metainfo' ,
163+ configuration : app_conf
164+ )
158165
0 commit comments