forked from cromer/pamac-classic
add meson support
This commit is contained in:
@@ -78,6 +78,11 @@ OPTIONS
|
||||
)
|
||||
|
||||
add_executable(pamac-tray ${VALA_C})
|
||||
set ( pamac-tray_DEPENDENCIES ${pamac-tray_DEPENDENCIES} Pamac )
|
||||
if (NOT DISABLE_AUR)
|
||||
set ( pamac-tray_DEPENDENCIES ${pamac-tray_DEPENDENCIES} AUR )
|
||||
endif ()
|
||||
add_dependencies( pamac-tray ${pamac-tray_DEPENDENCIES} )
|
||||
|
||||
|
||||
install(TARGETS
|
||||
@@ -103,4 +108,3 @@ endif()
|
||||
if (KDE_TRAY)
|
||||
else ()
|
||||
endif ()
|
||||
include(${CMAKE_CURRENT_SOURCE_DIR}/CMakeDepends.txt)
|
||||
|
49
src/pamac-tray/meson.build
Normal file
49
src/pamac-tray/meson.build
Normal file
@@ -0,0 +1,49 @@
|
||||
cfg_pamac_tray = configuration_data()
|
||||
cfg_pamac_tray.set('DATADIR', join_paths(get_option('prefix'),get_option('datadir')))
|
||||
cfg_pamac_tray.set('PKGDATADIR', join_paths(get_option('prefix'),get_option('datadir'),'pamac'))
|
||||
cfg_pamac_tray.set('GETTEXT_PACKAGE', 'pamac')
|
||||
cfg_pamac_tray.set('RELEASE_NAME', 'pamac')
|
||||
cfg_pamac_tray.set('PREFIX', get_option('prefix'))
|
||||
cfg_pamac_tray.set('VERSION', '6.0.1')
|
||||
cfg_pamac_tray.set('TESTSRCDIR', meson.current_source_dir())
|
||||
|
||||
cfgfile_6 = configure_file(input: 'Config.vala.base',output: 'Config.vala',configuration: cfg_pamac_tray)
|
||||
|
||||
pamac_tray_deps = [json_glib_1_0_dep]
|
||||
pamac_tray_deps += [libnotify_dep]
|
||||
if KDE_TRAY
|
||||
pamac_tray_deps += [appindicator3_0_1_dep]
|
||||
else
|
||||
pamac_tray_deps += [gtk_3_0_dep]
|
||||
endif
|
||||
pamac_tray_deps += [gio_2_0_dep]
|
||||
pamac_tray_deps += [glib_2_0_dep]
|
||||
pamac_tray_deps += [gobject_2_0_dep]
|
||||
pamac_tray_sources = [cfgfile_6]
|
||||
if KDE_TRAY
|
||||
pamac_tray_sources += ['tray-appindicator.vala']
|
||||
else
|
||||
pamac_tray_sources += ['tray-gtk.vala']
|
||||
endif
|
||||
pamac_tray_sources += ['pamac_config.vala']
|
||||
pamac_tray_sources += ['tray.vala']
|
||||
pamac_tray_sources += ['user_daemon.vala']
|
||||
pamac_tray_vala_args = ['--pkg','posix']
|
||||
pamac_tray_vala_args += ['--vapidir='+join_paths(meson.source_root(),'src/vapis')]
|
||||
pamac_tray_dependencies = [Pamac_library]
|
||||
if not DISABLE_AUR
|
||||
pamac_tray_dependencies += [AUR_library]
|
||||
endif
|
||||
pamac_tray_c_args = []
|
||||
if DISABLE_AUR
|
||||
pamac_tray_vala_args += ['-D', 'DISABLE_AUR']
|
||||
pamac_tray_c_args += ['-DDISABLE_AUR']
|
||||
endif
|
||||
if KDE_TRAY
|
||||
pamac_tray_vala_args += ['-D', 'KDE_TRAY']
|
||||
pamac_tray_c_args += ['-DKDE_TRAY']
|
||||
endif
|
||||
|
||||
inc = include_directories(['../', '../aur'])
|
||||
|
||||
executable('pamac-tray',pamac_tray_sources,dependencies: pamac_tray_deps,vala_args: pamac_tray_vala_args,c_args: pamac_tray_c_args,link_with: pamac_tray_dependencies,install: true,include_directories : inc)
|
Reference in New Issue
Block a user