blob: 6d0aa5d46bc315aa6e525f37beb9dfc8e891b876 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# ayatana-appindicator3-0.1.deps
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/ayatana-appindicator3-0.1.deps" DESTINATION "${CMAKE_INSTALL_FULL_DATADIR}/vala/vapi")
# AyatanaAppIndicator3-0.1.vala
find_package(Vala REQUIRED QUIET)
add_custom_command(
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/AyatanaAppIndicator3-0.1.vala"
DEPENDS "src" "${CMAKE_BINARY_DIR}/src/AyatanaAppIndicator3-0.1.typelib"
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMAND
${VAPI_GEN}
--library=ayatana-appindicator3-0.1
--pkg gtk+-3.0
--girdir="${CMAKE_SOURCE_DIR}/src"
--metadatadir "${CMAKE_SOURCE_DIR}/src"
"${CMAKE_BINARY_DIR}/src/AyatanaAppIndicator3-0.1.gir"
"${CMAKE_CURRENT_SOURCE_DIR}/ayatana-appindicator-0.1-custom.vala"
)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/ayatana-appindicator3-0.1.vapi" DESTINATION "${CMAKE_INSTALL_FULL_DATADIR}/vala/vapi")
add_custom_target("bindings-vala" ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/AyatanaAppIndicator3-0.1.vala")
if (ENABLE_TESTS)
add_subdirectory(examples)
endif()
|