Graphical package manager for pacman based on pamac 5.x.x
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

108 lines
3.6KB

  1. cfg_pamac = configuration_data()
  2. cfg_pamac.set('DATADIR', join_paths(get_option('prefix'),get_option('datadir')))
  3. cfg_pamac.set('PKGDATADIR', join_paths(get_option('prefix'),get_option('datadir'),'pamac'))
  4. cfg_pamac.set('GETTEXT_PACKAGE', 'pamac')
  5. cfg_pamac.set('RELEASE_NAME', 'pamac')
  6. cfg_pamac.set('PREFIX', get_option('prefix'))
  7. cfg_pamac.set('VERSION', '7.1.1')
  8. cfg_pamac.set('TESTSRCDIR', meson.source_root())
  9. cfgfile_1 = configure_file(
  10. input: 'Config.vala.base',
  11. output: 'Config.vala',
  12. configuration: cfg_pamac)
  13. pamac_deps = [atk_dep]
  14. pamac_deps += [cairo_dep]
  15. pamac_deps += [gdk_3_0_dep]
  16. pamac_deps += [gdk_pixbuf_2_0_dep]
  17. pamac_deps += [gio_2_0_dep]
  18. pamac_deps += [glib_2_0_dep]
  19. pamac_deps += [gobject_2_0_dep]
  20. pamac_deps += [gtk_3_0_dep]
  21. pamac_deps += [json_glib_1_0_dep]
  22. pamac_deps += [libalpm_dep]
  23. pamac_deps += [libsoup_2_4_dep]
  24. pamac_deps += [pango_dep]
  25. pamac_deps += [vte_2_91_dep]
  26. pamac_deps += [x11_dep]
  27. pamac_sources = [cfgfile_1]
  28. pamac_sources += ['alpm_config.vala']
  29. pamac_sources += ['aur.vala']
  30. pamac_sources += ['choose_ignorepkgs_dialog.vala']
  31. pamac_sources += ['choose_provider_dialog.vala']
  32. pamac_sources += ['common.vala']
  33. pamac_sources += ['mirrors_config.vala']
  34. pamac_sources += ['package.vala']
  35. pamac_sources += ['pamac_config.vala']
  36. pamac_sources += ['preferences_dialog.vala']
  37. pamac_sources += ['progress_box.vala']
  38. pamac_sources += ['transaction.vala']
  39. pamac_sources += ['transaction_sum_dialog.vala']
  40. pamac_sources += [pamac_transaction_gresource_xml_file_c]
  41. pamac_vala_args = ['--pkg','posix']
  42. pamac_vala_args += ['--vapidir='+join_paths(meson.source_root(),'src/vapis')]
  43. pamac_vala_args += ['--gresources='+join_paths(meson.source_root(),'data/pamac.transaction.gresource.xml')]
  44. pamac_c_args = []
  45. if ENABLE_UPDATE_ICON
  46. pamac_vala_args += ['-D', 'ENABLE_UPDATE_ICON']
  47. pamac_c_args += ['-DENABLE_UPDATE_ICON']
  48. endif
  49. if ENABLE_HAMBURGER
  50. pamac_vala_args += ['-D', 'ENABLE_HAMBURGER']
  51. pamac_c_args += ['-DENABLE_HAMBURGER']
  52. endif
  53. if KDE_TRAY
  54. pamac_vala_args += ['-D', 'KDE_TRAY']
  55. pamac_c_args += ['-DKDE_TRAY']
  56. endif
  57. if DISABLE_AUR
  58. pamac_vala_args += ['-D', 'DISABLE_AUR']
  59. pamac_c_args += ['-DDISABLE_AUR']
  60. endif
  61. pamac_deps += [meson.get_compiler('c').find_library('m', required : false)]
  62. pamac_link_args = ['-rdynamic']
  63. Pamac_library = shared_library('Pamac', pamac_sources,
  64. vala_gir: 'Pamac-1.0.gir',
  65. dependencies: pamac_deps,
  66. vala_args: pamac_vala_args,
  67. c_args: pamac_c_args,
  68. link_args: pamac_link_args,
  69. version: '7.1.1',
  70. soversion: '7',
  71. install: true,
  72. install_dir: [true, true, true, true])
  73. g_ir_compiler = find_program('g-ir-compiler')
  74. custom_target('Pamac typelib', command: [g_ir_compiler, '--shared-library=libPamac', '--output', '@OUTPUT@', join_paths(meson.current_build_dir(), 'Pamac-1.0.gir')],
  75. output: 'Pamac-1.0.typelib',
  76. depends: Pamac_library,
  77. install: true,
  78. install_dir: join_paths(get_option('libdir'), 'girepository-1.0'))
  79. pamac_requires = []
  80. pamac_requires += ['atk']
  81. pamac_requires += ['cairo']
  82. pamac_requires += ['gdk-3.0']
  83. pamac_requires += ['gdk-pixbuf-2.0']
  84. pamac_requires += ['gio-2.0']
  85. pamac_requires += ['glib-2.0']
  86. pamac_requires += ['gobject-2.0']
  87. pamac_requires += ['gtk+-3.0']
  88. pamac_requires += ['json-glib-1.0']
  89. pamac_requires += ['libalpm']
  90. pamac_requires += ['libsoup-2.4']
  91. pamac_requires += ['pango']
  92. pamac_requires += ['vte-2.91']
  93. pamac_requires += ['x11']
  94. pkg_mod = import('pkgconfig')
  95. pkg_mod.generate(libraries : Pamac_library,
  96. version : '7.1.1',
  97. name : 'Pamac',
  98. filebase : 'Pamac',
  99. description : 'Pamac',
  100. requires : pamac_requires)
  101. install_data(join_paths(meson.current_source_dir(),'Pamac.deps'),install_dir: join_paths(get_option('prefix'),'share','vala','vapi'))