gschemas translations and autovala support

This commit is contained in:
2017-11-11 11:30:47 -03:00
parent 6f15fc63c4
commit bb96e85e05
110 changed files with 9164 additions and 1286 deletions

View File

@@ -52,11 +52,6 @@ set (APP_SOURCES ${APP_SOURCES} progress_box.vala)
set (APP_SOURCES ${APP_SOURCES} transaction.vala)
set (APP_SOURCES ${APP_SOURCES} transaction_sum_dialog.vala)
if (DISABLE_AUR)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D DISABLE_AUR)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " )
endif ()
if (ENABLE_UPDATE_ICON)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D ENABLE_UPDATE_ICON)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_UPDATE_ICON " )
@@ -72,6 +67,11 @@ if (KDE_TRAY)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKDE_TRAY " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DKDE_TRAY " )
endif ()
if (DISABLE_AUR)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D DISABLE_AUR)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " )
endif ()
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} --vapidir=${CMAKE_SOURCE_DIR}/src/vapis )
if ((${CMAKE_BUILD_TYPE} STREQUAL "Debug") OR (${CMAKE_BUILD_TYPE} STREQUAL "RelWithDebInfo"))

View File

@@ -39,10 +39,6 @@ pamac_classic_vala_args = ['--pkg','posix']
pamac_classic_vala_args += ['--vapidir='+join_paths(meson.source_root(),'src/vapis')]
pamac_classic_vala_args += ['--gresources='+join_paths(meson.source_root(),'data/pamac.transaction.gresource.xml')]
pamac_classic_c_args = []
if DISABLE_AUR
pamac_classic_vala_args += ['-D', 'DISABLE_AUR']
pamac_classic_c_args += ['-DDISABLE_AUR']
endif
if ENABLE_UPDATE_ICON
pamac_classic_vala_args += ['-D', 'ENABLE_UPDATE_ICON']
pamac_classic_c_args += ['-DENABLE_UPDATE_ICON']
@@ -55,6 +51,10 @@ if KDE_TRAY
pamac_classic_vala_args += ['-D', 'KDE_TRAY']
pamac_classic_c_args += ['-DKDE_TRAY']
endif
if DISABLE_AUR
pamac_classic_vala_args += ['-D', 'DISABLE_AUR']
pamac_classic_c_args += ['-DDISABLE_AUR']
endif
pamac_classic_deps += [meson.get_compiler('c').find_library('m', required : false)]
pamac_classic_vala_args += ['--gir=pamacclassic-6.0.gir']

View File

@@ -35,11 +35,6 @@ set (APP_SOURCES ${APP_SOURCES} pamac_config.vala)
set (CUSTOM_VAPIS_LIST ${CUSTOM_VAPIS_LIST} ${CMAKE_BINARY_DIR}/src/pamacclassic.vapi)
if (DISABLE_AUR)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D DISABLE_AUR)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " )
endif ()
if (ENABLE_UPDATE_ICON)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D ENABLE_UPDATE_ICON)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_UPDATE_ICON " )
@@ -55,6 +50,11 @@ if (KDE_TRAY)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKDE_TRAY " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DKDE_TRAY " )
endif ()
if (DISABLE_AUR)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D DISABLE_AUR)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " )
endif ()
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} --vapidir=${CMAKE_SOURCE_DIR}/src/vapis )
if ((${CMAKE_BUILD_TYPE} STREQUAL "Debug") OR (${CMAKE_BUILD_TYPE} STREQUAL "RelWithDebInfo"))

View File

@@ -20,10 +20,6 @@ pamac_clean_cache_vala_args = ['--pkg','posix']
pamac_clean_cache_vala_args += ['--vapidir='+join_paths(meson.source_root(),'src/vapis')]
pamac_clean_cache_dependencies = [pamacclassic_library]
pamac_clean_cache_c_args = []
if DISABLE_AUR
pamac_clean_cache_vala_args += ['-D', 'DISABLE_AUR']
pamac_clean_cache_c_args += ['-DDISABLE_AUR']
endif
if ENABLE_UPDATE_ICON
pamac_clean_cache_vala_args += ['-D', 'ENABLE_UPDATE_ICON']
pamac_clean_cache_c_args += ['-DENABLE_UPDATE_ICON']
@@ -36,6 +32,10 @@ if KDE_TRAY
pamac_clean_cache_vala_args += ['-D', 'KDE_TRAY']
pamac_clean_cache_c_args += ['-DKDE_TRAY']
endif
if DISABLE_AUR
pamac_clean_cache_vala_args += ['-D', 'DISABLE_AUR']
pamac_clean_cache_c_args += ['-DDISABLE_AUR']
endif
pamac_clean_cache_hfolders = ['../../src']
executable('pamac-clean-cache',pamac_clean_cache_sources,dependencies: pamac_clean_cache_deps,vala_args: pamac_clean_cache_vala_args,c_args: pamac_clean_cache_c_args,link_with: pamac_clean_cache_dependencies,include_directories: include_directories(pamac_clean_cache_hfolders),install: true)

View File

@@ -35,11 +35,6 @@ set (APP_SOURCES ${APP_SOURCES} progress_dialog.vala)
set (CUSTOM_VAPIS_LIST ${CUSTOM_VAPIS_LIST} ${CMAKE_BINARY_DIR}/src/pamacclassic.vapi)
if (DISABLE_AUR)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D DISABLE_AUR)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " )
endif ()
if (ENABLE_UPDATE_ICON)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D ENABLE_UPDATE_ICON)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_UPDATE_ICON " )
@@ -55,6 +50,11 @@ if (KDE_TRAY)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKDE_TRAY " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DKDE_TRAY " )
endif ()
if (DISABLE_AUR)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D DISABLE_AUR)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " )
endif ()
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} --vapidir=${CMAKE_SOURCE_DIR}/src/vapis )
if ((${CMAKE_BUILD_TYPE} STREQUAL "Debug") OR (${CMAKE_BUILD_TYPE} STREQUAL "RelWithDebInfo"))

View File

@@ -22,10 +22,6 @@ pamac_install_vala_args = ['--vapidir='+join_paths(meson.source_root(),'src/vapi
pamac_install_vala_args += ['--gresources='+join_paths(meson.source_root(),'data/pamac.installer.gresource.xml')]
pamac_install_dependencies = [pamacclassic_library]
pamac_install_c_args = []
if DISABLE_AUR
pamac_install_vala_args += ['-D', 'DISABLE_AUR']
pamac_install_c_args += ['-DDISABLE_AUR']
endif
if ENABLE_UPDATE_ICON
pamac_install_vala_args += ['-D', 'ENABLE_UPDATE_ICON']
pamac_install_c_args += ['-DENABLE_UPDATE_ICON']
@@ -38,6 +34,10 @@ if KDE_TRAY
pamac_install_vala_args += ['-D', 'KDE_TRAY']
pamac_install_c_args += ['-DKDE_TRAY']
endif
if DISABLE_AUR
pamac_install_vala_args += ['-D', 'DISABLE_AUR']
pamac_install_c_args += ['-DDISABLE_AUR']
endif
pamac_install_hfolders = ['../../src']
executable('pamac-install',pamac_install_sources,dependencies: pamac_install_deps,vala_args: pamac_install_vala_args,c_args: pamac_install_c_args,link_with: pamac_install_dependencies,include_directories: include_directories(pamac_install_hfolders),install: true)

View File

@@ -36,11 +36,6 @@ set (APP_SOURCES ${APP_SOURCES} manager_window.vala)
set (CUSTOM_VAPIS_LIST ${CUSTOM_VAPIS_LIST} ${CMAKE_BINARY_DIR}/src/pamacclassic.vapi)
if (DISABLE_AUR)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D DISABLE_AUR)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " )
endif ()
if (ENABLE_UPDATE_ICON)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D ENABLE_UPDATE_ICON)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_UPDATE_ICON " )
@@ -56,6 +51,11 @@ if (KDE_TRAY)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKDE_TRAY " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DKDE_TRAY " )
endif ()
if (DISABLE_AUR)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D DISABLE_AUR)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " )
endif ()
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} --vapidir=${CMAKE_SOURCE_DIR}/src/vapis )
if ((${CMAKE_BUILD_TYPE} STREQUAL "Debug") OR (${CMAKE_BUILD_TYPE} STREQUAL "RelWithDebInfo"))

View File

@@ -23,10 +23,6 @@ pamac_manager_vala_args = ['--vapidir='+join_paths(meson.source_root(),'src/vapi
pamac_manager_vala_args += ['--gresources='+join_paths(meson.source_root(),'data/pamac.manager.gresource.xml')]
pamac_manager_dependencies = [pamacclassic_library]
pamac_manager_c_args = []
if DISABLE_AUR
pamac_manager_vala_args += ['-D', 'DISABLE_AUR']
pamac_manager_c_args += ['-DDISABLE_AUR']
endif
if ENABLE_UPDATE_ICON
pamac_manager_vala_args += ['-D', 'ENABLE_UPDATE_ICON']
pamac_manager_c_args += ['-DENABLE_UPDATE_ICON']
@@ -39,6 +35,10 @@ if KDE_TRAY
pamac_manager_vala_args += ['-D', 'KDE_TRAY']
pamac_manager_c_args += ['-DKDE_TRAY']
endif
if DISABLE_AUR
pamac_manager_vala_args += ['-D', 'DISABLE_AUR']
pamac_manager_c_args += ['-DDISABLE_AUR']
endif
pamac_manager_hfolders = ['../../src']
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,include_directories: include_directories(pamac_manager_hfolders),install: true)

View File

@@ -42,11 +42,6 @@ set (APP_SOURCES ${APP_SOURCES} system_daemon.vala)
set (CUSTOM_VAPIS_LIST ${CUSTOM_VAPIS_LIST} ${CMAKE_BINARY_DIR}/src/pamacclassic.vapi)
if (DISABLE_AUR)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D DISABLE_AUR)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " )
endif ()
if (ENABLE_UPDATE_ICON)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D ENABLE_UPDATE_ICON)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_UPDATE_ICON " )
@@ -62,6 +57,11 @@ if (KDE_TRAY)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKDE_TRAY " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DKDE_TRAY " )
endif ()
if (DISABLE_AUR)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D DISABLE_AUR)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " )
endif ()
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} --vapidir=${CMAKE_SOURCE_DIR}/src/vapis )
if ((${CMAKE_BUILD_TYPE} STREQUAL "Debug") OR (${CMAKE_BUILD_TYPE} STREQUAL "RelWithDebInfo"))

View File

@@ -27,10 +27,6 @@ pamac_system_daemon_vala_args = ['--pkg','posix']
pamac_system_daemon_vala_args += ['--vapidir='+join_paths(meson.source_root(),'src/vapis')]
pamac_system_daemon_dependencies = [pamacclassic_library]
pamac_system_daemon_c_args = []
if DISABLE_AUR
pamac_system_daemon_vala_args += ['-D', 'DISABLE_AUR']
pamac_system_daemon_c_args += ['-DDISABLE_AUR']
endif
if ENABLE_UPDATE_ICON
pamac_system_daemon_vala_args += ['-D', 'ENABLE_UPDATE_ICON']
pamac_system_daemon_c_args += ['-DENABLE_UPDATE_ICON']
@@ -43,6 +39,10 @@ if KDE_TRAY
pamac_system_daemon_vala_args += ['-D', 'KDE_TRAY']
pamac_system_daemon_c_args += ['-DKDE_TRAY']
endif
if DISABLE_AUR
pamac_system_daemon_vala_args += ['-D', 'DISABLE_AUR']
pamac_system_daemon_c_args += ['-DDISABLE_AUR']
endif
pamac_system_daemon_hfolders = ['../../src']
executable('pamac-system-daemon',pamac_system_daemon_sources,dependencies: pamac_system_daemon_deps,vala_args: pamac_system_daemon_vala_args,c_args: pamac_system_daemon_c_args,link_with: pamac_system_daemon_dependencies,include_directories: include_directories(pamac_system_daemon_hfolders),install: true)

View File

@@ -48,11 +48,6 @@ set (APP_SOURCES ${APP_SOURCES} tray.vala)
set (CUSTOM_VAPIS_LIST ${CUSTOM_VAPIS_LIST} ${CMAKE_BINARY_DIR}/src/pamacclassic.vapi)
if (DISABLE_AUR)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D DISABLE_AUR)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " )
endif ()
if (ENABLE_UPDATE_ICON)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D ENABLE_UPDATE_ICON)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_UPDATE_ICON " )
@@ -68,6 +63,11 @@ if (KDE_TRAY)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKDE_TRAY " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DKDE_TRAY " )
endif ()
if (DISABLE_AUR)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D DISABLE_AUR)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " )
endif ()
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} --vapidir=${CMAKE_SOURCE_DIR}/src/vapis )
if ((${CMAKE_BUILD_TYPE} STREQUAL "Debug") OR (${CMAKE_BUILD_TYPE} STREQUAL "RelWithDebInfo"))

View File

@@ -33,10 +33,6 @@ pamac_tray_vala_args = ['--pkg','posix']
pamac_tray_vala_args += ['--vapidir='+join_paths(meson.source_root(),'src/vapis')]
pamac_tray_dependencies = [pamacclassic_library]
pamac_tray_c_args = []
if DISABLE_AUR
pamac_tray_vala_args += ['-D', 'DISABLE_AUR']
pamac_tray_c_args += ['-DDISABLE_AUR']
endif
if ENABLE_UPDATE_ICON
pamac_tray_vala_args += ['-D', 'ENABLE_UPDATE_ICON']
pamac_tray_c_args += ['-DENABLE_UPDATE_ICON']
@@ -49,6 +45,10 @@ if KDE_TRAY
pamac_tray_vala_args += ['-D', 'KDE_TRAY']
pamac_tray_c_args += ['-DKDE_TRAY']
endif
if DISABLE_AUR
pamac_tray_vala_args += ['-D', 'DISABLE_AUR']
pamac_tray_c_args += ['-DDISABLE_AUR']
endif
pamac_tray_hfolders = ['../../src']
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)

View File

@@ -38,11 +38,6 @@ set (APP_SOURCES ${APP_SOURCES} user_daemon.vala)
set (CUSTOM_VAPIS_LIST ${CUSTOM_VAPIS_LIST} ${CMAKE_BINARY_DIR}/src/pamacclassic.vapi)
if (DISABLE_AUR)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D DISABLE_AUR)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " )
endif ()
if (ENABLE_UPDATE_ICON)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D ENABLE_UPDATE_ICON)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_UPDATE_ICON " )
@@ -58,6 +53,11 @@ if (KDE_TRAY)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKDE_TRAY " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DKDE_TRAY " )
endif ()
if (DISABLE_AUR)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D DISABLE_AUR)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " )
endif ()
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} --vapidir=${CMAKE_SOURCE_DIR}/src/vapis )
if ((${CMAKE_BUILD_TYPE} STREQUAL "Debug") OR (${CMAKE_BUILD_TYPE} STREQUAL "RelWithDebInfo"))

View File

@@ -23,10 +23,6 @@ pamac_user_daemon_vala_args = ['--pkg','posix']
pamac_user_daemon_vala_args += ['--vapidir='+join_paths(meson.source_root(),'src/vapis')]
pamac_user_daemon_dependencies = [pamacclassic_library]
pamac_user_daemon_c_args = []
if DISABLE_AUR
pamac_user_daemon_vala_args += ['-D', 'DISABLE_AUR']
pamac_user_daemon_c_args += ['-DDISABLE_AUR']
endif
if ENABLE_UPDATE_ICON
pamac_user_daemon_vala_args += ['-D', 'ENABLE_UPDATE_ICON']
pamac_user_daemon_c_args += ['-DENABLE_UPDATE_ICON']
@@ -39,6 +35,10 @@ if KDE_TRAY
pamac_user_daemon_vala_args += ['-D', 'KDE_TRAY']
pamac_user_daemon_c_args += ['-DKDE_TRAY']
endif
if DISABLE_AUR
pamac_user_daemon_vala_args += ['-D', 'DISABLE_AUR']
pamac_user_daemon_c_args += ['-DDISABLE_AUR']
endif
pamac_user_daemon_hfolders = ['../../src']
executable('pamac-user-daemon',pamac_user_daemon_sources,dependencies: pamac_user_daemon_deps,vala_args: pamac_user_daemon_vala_args,c_args: pamac_user_daemon_c_args,link_with: pamac_user_daemon_dependencies,include_directories: include_directories(pamac_user_daemon_hfolders),install: true)