forked from cromer/pamac-classic
add meson support
This commit is contained in:
@@ -1,3 +1,2 @@
|
||||
add_dependencies(pamac-manager Pamac)
|
||||
include (InstallSymlink)
|
||||
install_symlink(pamac-manager ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}/pamac-updater)
|
||||
|
@@ -67,6 +67,8 @@ OPTIONS
|
||||
SET (VALA_C ${VALA_C} ${pamac_manager_gresource_xml_C_FILE})
|
||||
add_executable(pamac-manager ${VALA_C})
|
||||
add_dependencies (pamac-manager pamac_manager_gresource_xml)
|
||||
set ( pamac-manager_DEPENDENCIES ${pamac-manager_DEPENDENCIES} Pamac )
|
||||
add_dependencies( pamac-manager ${pamac-manager_DEPENDENCIES} )
|
||||
|
||||
|
||||
install(TARGETS
|
||||
|
44
src/pamac-manager/meson.build
Normal file
44
src/pamac-manager/meson.build
Normal file
@@ -0,0 +1,44 @@
|
||||
cfg_pamac_manager = configuration_data()
|
||||
cfg_pamac_manager.set('DATADIR', join_paths(get_option('prefix'),get_option('datadir')))
|
||||
cfg_pamac_manager.set('PKGDATADIR', join_paths(get_option('prefix'),get_option('datadir'),'pamac'))
|
||||
cfg_pamac_manager.set('GETTEXT_PACKAGE', 'pamac')
|
||||
cfg_pamac_manager.set('RELEASE_NAME', 'pamac')
|
||||
cfg_pamac_manager.set('PREFIX', get_option('prefix'))
|
||||
cfg_pamac_manager.set('VERSION', '6.0.1')
|
||||
cfg_pamac_manager.set('TESTSRCDIR', meson.current_source_dir())
|
||||
|
||||
cfgfile_4 = configure_file(input: 'Config.vala.base',output: 'Config.vala',configuration: cfg_pamac_manager)
|
||||
|
||||
pamac_manager_deps = [gtk_3_0_dep]
|
||||
pamac_manager_deps += [gio_2_0_dep]
|
||||
pamac_manager_deps += [glib_2_0_dep]
|
||||
pamac_manager_deps += [gobject_2_0_dep]
|
||||
pamac_manager_sources = [cfgfile_4]
|
||||
pamac_manager_sources += ['history_dialog.vala']
|
||||
pamac_manager_sources += ['manager.vala']
|
||||
pamac_manager_sources += ['manager_window.vala']
|
||||
if DISABLE_AUR
|
||||
pamac_manager_sources += [pamac_manager_no_aur_gresource_xml_file_c]
|
||||
else
|
||||
pamac_manager_sources += [pamac_manager_gresource_xml_file_c]
|
||||
endif
|
||||
pamac_manager_vala_args = ['--vapidir='+join_paths(meson.source_root(),'src/vapis')]
|
||||
if DISABLE_AUR
|
||||
pamac_manager_vala_args += ['--gresources='+join_paths(meson.source_root(),'data/pamac.manager_no_aur.gresource.xml')]
|
||||
else
|
||||
pamac_manager_vala_args += ['--gresources='+join_paths(meson.source_root(),'data/pamac.manager.gresource.xml')]
|
||||
endif
|
||||
pamac_manager_dependencies = [Pamac_library]
|
||||
pamac_manager_c_args = []
|
||||
if DISABLE_AUR
|
||||
pamac_manager_vala_args += ['-D', 'DISABLE_AUR']
|
||||
pamac_manager_c_args += ['-DDISABLE_AUR']
|
||||
endif
|
||||
if KDE_TRAY
|
||||
pamac_manager_vala_args += ['-D', 'KDE_TRAY']
|
||||
pamac_manager_c_args += ['-DKDE_TRAY']
|
||||
endif
|
||||
|
||||
inc = include_directories('../')
|
||||
|
||||
executable('pamac-manager',pamac_manager_sources,dependencies: pamac_manager_deps,vala_args: pamac_manager_vala_args,c_args: pamac_manager_c_args,link_with: pamac_manager_dependencies,install: true,include_directories : inc)
|
Reference in New Issue
Block a user