forked from cromer/pamac-classic
change the pamac library to pamacclassic
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
### Do not edit
|
||||
|
||||
set (DATADIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATAROOTDIR}")
|
||||
set (PKGDATADIR "${DATADIR}/pamac")
|
||||
set (GETTEXT_PACKAGE "pamac")
|
||||
set (RELEASE_NAME "pamac")
|
||||
set (PKGDATADIR "${DATADIR}/pamac-classic")
|
||||
set (GETTEXT_PACKAGE "pamac-classic")
|
||||
set (RELEASE_NAME "pamac-classic")
|
||||
set (CMAKE_C_FLAGS "")
|
||||
set (PREFIX ${CMAKE_INSTALL_PREFIX})
|
||||
set (VERSION "6.3.5")
|
||||
@@ -15,9 +15,9 @@ configure_file (${CMAKE_SOURCE_DIR}/src/pamac-tray/Config.vala.base ${CMAKE_BINA
|
||||
add_definitions(-DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\")
|
||||
set (VERSION "6.3.5")
|
||||
add_definitions (${DEPS_CFLAGS})
|
||||
include_directories ( ${CMAKE_BINARY_DIR}/src ${CMAKE_BINARY_DIR}/src/aur )
|
||||
link_libraries ( ${DEPS_LIBRARIES} -lPamac -lAUR )
|
||||
link_directories ( ${DEPS_LIBRARY_DIRS} ${CMAKE_BINARY_DIR}/src ${CMAKE_BINARY_DIR}/src/aur )
|
||||
include_directories ( ${CMAKE_BINARY_DIR}/src )
|
||||
link_libraries ( ${DEPS_LIBRARIES} -lpamacclassic )
|
||||
link_directories ( ${DEPS_LIBRARY_DIRS} ${CMAKE_BINARY_DIR}/src )
|
||||
find_package (Vala REQUIRED)
|
||||
include (ValaVersion)
|
||||
ensure_vala_version ("0.38" MINIMUM)
|
||||
@@ -46,10 +46,7 @@ set (APP_SOURCES ${APP_SOURCES} alpm_config.vala)
|
||||
set (APP_SOURCES ${APP_SOURCES} pamac_config.vala)
|
||||
set (APP_SOURCES ${APP_SOURCES} tray.vala)
|
||||
|
||||
set (CUSTOM_VAPIS_LIST ${CUSTOM_VAPIS_LIST} ${CMAKE_BINARY_DIR}/src/Pamac.vapi)
|
||||
if (NOT DISABLE_AUR)
|
||||
set (CUSTOM_VAPIS_LIST ${CUSTOM_VAPIS_LIST} ${CMAKE_BINARY_DIR}/src/aur/AUR.vapi)
|
||||
endif ()
|
||||
set (CUSTOM_VAPIS_LIST ${CUSTOM_VAPIS_LIST} ${CMAKE_BINARY_DIR}/src/pamacclassic.vapi)
|
||||
|
||||
if (DISABLE_AUR)
|
||||
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D DISABLE_AUR)
|
||||
@@ -84,10 +81,7 @@ 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 ()
|
||||
set ( pamac-tray_DEPENDENCIES ${pamac-tray_DEPENDENCIES} pamacclassic )
|
||||
add_dependencies( pamac-tray ${pamac-tray_DEPENDENCIES} )
|
||||
|
||||
|
||||
@@ -108,6 +102,6 @@ if(HAVE_VALADOC)
|
||||
install(DIRECTORY
|
||||
${CMAKE_BINARY_DIR}/valadoc
|
||||
DESTINATION
|
||||
${CMAKE_INSTALL_DATAROOTDIR}/doc/pamac
|
||||
${CMAKE_INSTALL_DATAROOTDIR}/doc/pamac-classic
|
||||
)
|
||||
endif()
|
||||
|
@@ -1,13 +1,13 @@
|
||||
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('PKGDATADIR', join_paths(get_option('prefix'),get_option('datadir'),'pamac-classic'))
|
||||
cfg_pamac_tray.set('GETTEXT_PACKAGE', 'pamac-classic')
|
||||
cfg_pamac_tray.set('RELEASE_NAME', 'pamac-classic')
|
||||
cfg_pamac_tray.set('PREFIX', get_option('prefix'))
|
||||
cfg_pamac_tray.set('VERSION', '6.3.5')
|
||||
cfg_pamac_tray.set('TESTSRCDIR', meson.source_root())
|
||||
|
||||
cfgfile_4 = configure_file(input: 'Config.vala.base',output: 'Config.vala',configuration: cfg_pamac_tray)
|
||||
cfgfile_3 = configure_file(input: 'Config.vala.base',output: 'Config.vala',configuration: cfg_pamac_tray)
|
||||
|
||||
pamac_tray_deps = [json_glib_1_0_dep]
|
||||
pamac_tray_deps += [libalpm_dep]
|
||||
@@ -20,7 +20,7 @@ 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_4]
|
||||
pamac_tray_sources = [cfgfile_3]
|
||||
if KDE_TRAY
|
||||
pamac_tray_sources += ['tray-appindicator.vala']
|
||||
else
|
||||
@@ -31,10 +31,7 @@ pamac_tray_sources += ['pamac_config.vala']
|
||||
pamac_tray_sources += ['tray.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_dependencies = [pamacclassic_library]
|
||||
pamac_tray_c_args = []
|
||||
if DISABLE_AUR
|
||||
pamac_tray_vala_args += ['-D', 'DISABLE_AUR']
|
||||
@@ -49,7 +46,6 @@ if KDE_TRAY
|
||||
pamac_tray_c_args += ['-DKDE_TRAY']
|
||||
endif
|
||||
pamac_tray_hfolders = ['../../src']
|
||||
pamac_tray_hfolders += ['../../src/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,include_directories: include_directories(pamac_tray_hfolders),install: true)
|
||||
|
||||
|
Reference in New Issue
Block a user