2017-10-10 16:29:22 -03:00
|
|
|
### CMakeLists automatically created with AutoVala
|
|
|
|
### Do not edit
|
|
|
|
|
|
|
|
set (DATADIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATAROOTDIR}")
|
2017-10-29 17:23:58 -03:00
|
|
|
set (PKGDATADIR "${DATADIR}/pamac-classic")
|
|
|
|
set (GETTEXT_PACKAGE "pamac-classic")
|
|
|
|
set (RELEASE_NAME "pamac-classic")
|
2017-10-10 16:29:22 -03:00
|
|
|
set (CMAKE_C_FLAGS "")
|
|
|
|
set (PREFIX ${CMAKE_INSTALL_PREFIX})
|
2017-11-01 20:02:27 -03:00
|
|
|
set (VERSION "6.5.0")
|
2017-10-10 16:29:22 -03:00
|
|
|
set (TESTSRCDIR "${CMAKE_SOURCE_DIR}")
|
|
|
|
set (DOLLAR "$")
|
|
|
|
|
|
|
|
configure_file (${CMAKE_SOURCE_DIR}/src/pamac-tray/Config.vala.base ${CMAKE_BINARY_DIR}/src/pamac-tray/Config.vala)
|
|
|
|
add_definitions(-DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\")
|
2017-11-01 20:02:27 -03:00
|
|
|
set (VERSION "6.5.0")
|
2017-10-10 16:29:22 -03:00
|
|
|
add_definitions (${DEPS_CFLAGS})
|
2017-10-29 17:23:58 -03:00
|
|
|
include_directories ( ${CMAKE_BINARY_DIR}/src )
|
|
|
|
link_libraries ( ${DEPS_LIBRARIES} -lpamacclassic )
|
|
|
|
link_directories ( ${DEPS_LIBRARY_DIRS} ${CMAKE_BINARY_DIR}/src )
|
2017-10-10 16:29:22 -03:00
|
|
|
find_package (Vala REQUIRED)
|
|
|
|
include (ValaVersion)
|
|
|
|
ensure_vala_version ("0.38" MINIMUM)
|
|
|
|
include (ValaPrecompile)
|
|
|
|
|
|
|
|
set (VALA_PACKAGES ${VALA_PACKAGES} posix)
|
|
|
|
set (VALA_PACKAGES ${VALA_PACKAGES} json-glib-1.0)
|
2017-10-26 13:45:40 -03:00
|
|
|
set (VALA_PACKAGES ${VALA_PACKAGES} libalpm)
|
2017-10-10 16:29:22 -03:00
|
|
|
set (VALA_PACKAGES ${VALA_PACKAGES} libnotify)
|
|
|
|
if (KDE_TRAY)
|
|
|
|
set (VALA_PACKAGES ${VALA_PACKAGES} appindicator3-0.1)
|
|
|
|
else ()
|
|
|
|
set (VALA_PACKAGES ${VALA_PACKAGES} gtk+-3.0)
|
|
|
|
endif ()
|
|
|
|
set (VALA_PACKAGES ${VALA_PACKAGES} gio-2.0)
|
|
|
|
set (VALA_PACKAGES ${VALA_PACKAGES} glib-2.0)
|
|
|
|
set (VALA_PACKAGES ${VALA_PACKAGES} gobject-2.0)
|
|
|
|
|
|
|
|
set (APP_SOURCES ${APP_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/Config.vala)
|
|
|
|
if (KDE_TRAY)
|
|
|
|
set (APP_SOURCES ${APP_SOURCES} tray-appindicator.vala)
|
|
|
|
else ()
|
|
|
|
set (APP_SOURCES ${APP_SOURCES} tray-gtk.vala)
|
|
|
|
endif ()
|
2017-10-26 13:45:40 -03:00
|
|
|
set (APP_SOURCES ${APP_SOURCES} alpm_config.vala)
|
2017-10-10 16:29:22 -03:00
|
|
|
set (APP_SOURCES ${APP_SOURCES} pamac_config.vala)
|
|
|
|
set (APP_SOURCES ${APP_SOURCES} tray.vala)
|
|
|
|
|
2017-10-29 17:23:58 -03:00
|
|
|
set (CUSTOM_VAPIS_LIST ${CUSTOM_VAPIS_LIST} ${CMAKE_BINARY_DIR}/src/pamacclassic.vapi)
|
2017-10-10 16:29:22 -03:00
|
|
|
|
|
|
|
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 ()
|
2017-10-29 14:28:26 -03:00
|
|
|
if (ENABLE_UPDATE_ICON)
|
|
|
|
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D ENABLE_UPDATE_ICON)
|
|
|
|
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_UPDATE_ICON " )
|
|
|
|
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DENABLE_UPDATE_ICON " )
|
|
|
|
endif ()
|
2017-11-01 20:02:27 -03:00
|
|
|
if (ENABLE_HAMBURGER)
|
|
|
|
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D ENABLE_HAMBURGER)
|
|
|
|
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_HAMBURGER " )
|
|
|
|
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DENABLE_HAMBURGER " )
|
|
|
|
endif ()
|
2017-10-10 16:29:22 -03:00
|
|
|
if (KDE_TRAY)
|
|
|
|
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D KDE_TRAY)
|
|
|
|
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKDE_TRAY " )
|
|
|
|
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DKDE_TRAY " )
|
|
|
|
endif ()
|
|
|
|
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} --vapidir=${CMAKE_SOURCE_DIR}/src/vapis )
|
|
|
|
|
|
|
|
if ((${CMAKE_BUILD_TYPE} STREQUAL "Debug") OR (${CMAKE_BUILD_TYPE} STREQUAL "RelWithDebInfo"))
|
|
|
|
set(COMPILE_OPTIONS ${COMPILE_OPTIONS} "-g")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
vala_precompile(VALA_C pamac-tray
|
|
|
|
${APP_SOURCES}
|
|
|
|
PACKAGES
|
|
|
|
${VALA_PACKAGES}
|
|
|
|
CUSTOM_VAPIS
|
|
|
|
${CUSTOM_VAPIS_LIST}
|
|
|
|
OPTIONS
|
|
|
|
${COMPILE_OPTIONS}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(pamac-tray ${VALA_C})
|
2017-10-29 17:23:58 -03:00
|
|
|
set ( pamac-tray_DEPENDENCIES ${pamac-tray_DEPENDENCIES} pamacclassic )
|
2017-10-14 23:14:53 -03:00
|
|
|
add_dependencies( pamac-tray ${pamac-tray_DEPENDENCIES} )
|
2017-10-10 16:29:22 -03:00
|
|
|
|
|
|
|
|
|
|
|
install(TARGETS
|
|
|
|
pamac-tray
|
|
|
|
RUNTIME DESTINATION
|
|
|
|
${CMAKE_INSTALL_BINDIR}
|
|
|
|
)
|
|
|
|
if(HAVE_VALADOC)
|
|
|
|
valadoc(pamac-tray
|
|
|
|
${CMAKE_BINARY_DIR}/valadoc/pamac-tray
|
|
|
|
${APP_SOURCES}
|
|
|
|
PACKAGES
|
|
|
|
${VALA_PACKAGES}
|
|
|
|
CUSTOM_VAPIS
|
|
|
|
${CUSTOM_VAPIS_LIST}
|
|
|
|
)
|
|
|
|
install(DIRECTORY
|
|
|
|
${CMAKE_BINARY_DIR}/valadoc
|
|
|
|
DESTINATION
|
2017-10-29 17:23:58 -03:00
|
|
|
${CMAKE_INSTALL_DATAROOTDIR}/doc/pamac-classic
|
2017-10-10 16:29:22 -03:00
|
|
|
)
|
|
|
|
endif()
|