Graphical package manager for pacman based on pamac 5.x.x
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. ### CMakeLists automatically created with AutoVala
  2. ### Do not edit
  3. set (DATADIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATAROOTDIR}")
  4. set (PKGDATADIR "${DATADIR}/pamac")
  5. set (GETTEXT_PACKAGE "pamac")
  6. set (RELEASE_NAME "pamac")
  7. set (CMAKE_C_FLAGS "")
  8. set (PREFIX ${CMAKE_INSTALL_PREFIX})
  9. set (VERSION "6.7.0")
  10. set (TESTSRCDIR "${CMAKE_SOURCE_DIR}")
  11. set (DOLLAR "$")
  12. configure_file (${CMAKE_SOURCE_DIR}/src/pamac-tray/Config.vala.base ${CMAKE_BINARY_DIR}/src/pamac-tray/Config.vala)
  13. add_definitions(-DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\")
  14. set (VERSION "6.7.0")
  15. add_definitions (${DEPS_CFLAGS})
  16. include_directories ( ${CMAKE_BINARY_DIR}/src )
  17. link_libraries ( ${DEPS_LIBRARIES} -lpamacclassic )
  18. link_directories ( ${DEPS_LIBRARY_DIRS} ${CMAKE_BINARY_DIR}/src )
  19. find_package (Vala REQUIRED)
  20. include (ValaVersion)
  21. ensure_vala_version ("0.38" MINIMUM)
  22. include (ValaPrecompile)
  23. set (VALA_PACKAGES ${VALA_PACKAGES} posix)
  24. set (VALA_PACKAGES ${VALA_PACKAGES} json-glib-1.0)
  25. set (VALA_PACKAGES ${VALA_PACKAGES} libalpm)
  26. set (VALA_PACKAGES ${VALA_PACKAGES} libnotify)
  27. if (KDE_TRAY)
  28. set (VALA_PACKAGES ${VALA_PACKAGES} appindicator3-0.1)
  29. else ()
  30. set (VALA_PACKAGES ${VALA_PACKAGES} gtk+-3.0)
  31. endif ()
  32. set (VALA_PACKAGES ${VALA_PACKAGES} gio-2.0)
  33. set (VALA_PACKAGES ${VALA_PACKAGES} glib-2.0)
  34. set (VALA_PACKAGES ${VALA_PACKAGES} gobject-2.0)
  35. set (APP_SOURCES ${APP_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/Config.vala)
  36. if (KDE_TRAY)
  37. set (APP_SOURCES ${APP_SOURCES} tray-appindicator.vala)
  38. else ()
  39. set (APP_SOURCES ${APP_SOURCES} tray-gtk.vala)
  40. endif ()
  41. set (APP_SOURCES ${APP_SOURCES} alpm_config.vala)
  42. set (APP_SOURCES ${APP_SOURCES} pamac_config.vala)
  43. set (APP_SOURCES ${APP_SOURCES} tray.vala)
  44. set (CUSTOM_VAPIS_LIST ${CUSTOM_VAPIS_LIST} ${CMAKE_BINARY_DIR}/src/pamacclassic.vapi)
  45. if (ENABLE_UPDATE_ICON)
  46. set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D ENABLE_UPDATE_ICON)
  47. set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_UPDATE_ICON " )
  48. set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DENABLE_UPDATE_ICON " )
  49. endif ()
  50. if (ENABLE_HAMBURGER)
  51. set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D ENABLE_HAMBURGER)
  52. set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_HAMBURGER " )
  53. set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DENABLE_HAMBURGER " )
  54. endif ()
  55. if (KDE_TRAY)
  56. set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D KDE_TRAY)
  57. set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKDE_TRAY " )
  58. set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DKDE_TRAY " )
  59. endif ()
  60. if (DISABLE_AUR)
  61. set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D DISABLE_AUR)
  62. set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " )
  63. set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " )
  64. endif ()
  65. set (COMPILE_OPTIONS ${COMPILE_OPTIONS} --vapidir=${CMAKE_SOURCE_DIR}/src/vapis )
  66. if ((${CMAKE_BUILD_TYPE} STREQUAL "Debug") OR (${CMAKE_BUILD_TYPE} STREQUAL "RelWithDebInfo"))
  67. set(COMPILE_OPTIONS ${COMPILE_OPTIONS} "-g")
  68. endif()
  69. vala_precompile(VALA_C pamac-tray
  70. ${APP_SOURCES}
  71. PACKAGES
  72. ${VALA_PACKAGES}
  73. CUSTOM_VAPIS
  74. ${CUSTOM_VAPIS_LIST}
  75. OPTIONS
  76. ${COMPILE_OPTIONS}
  77. )
  78. add_executable(pamac-tray ${VALA_C})
  79. set ( pamac-tray_DEPENDENCIES ${pamac-tray_DEPENDENCIES} pamacclassic )
  80. add_dependencies( pamac-tray ${pamac-tray_DEPENDENCIES} )
  81. install(TARGETS
  82. pamac-tray
  83. RUNTIME DESTINATION
  84. ${CMAKE_INSTALL_BINDIR}
  85. )
  86. if(HAVE_VALADOC)
  87. valadoc(pamac-tray
  88. ${CMAKE_BINARY_DIR}/valadoc/pamac-tray
  89. ${APP_SOURCES}
  90. PACKAGES
  91. ${VALA_PACKAGES}
  92. CUSTOM_VAPIS
  93. ${CUSTOM_VAPIS_LIST}
  94. )
  95. install(DIRECTORY
  96. ${CMAKE_BINARY_DIR}/valadoc
  97. DESTINATION
  98. ${CMAKE_INSTALL_DATAROOTDIR}/doc/pamac
  99. )
  100. endif()