diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2022-03-15 11:02:55 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2022-03-15 11:02:55 +0100 |
commit | 2e1c040908f33c7ed1bc3192b98d72c3d179d87d (patch) | |
tree | 99048b852839bd27c98c7ef705f46e63b9458914 /src | |
parent | d87cc10393cdc8b88141c6ce3245b0f9b9b217f0 (diff) | |
download | ayatana-ido-2e1c040908f33c7ed1bc3192b98d72c3d179d87d.tar.gz ayatana-ido-2e1c040908f33c7ed1bc3192b98d72c3d179d87d.tar.bz2 ayatana-ido-2e1c040908f33c7ed1bc3192b98d72c3d179d87d.zip |
vala: The name of the vapi should match the pkg-config name
Add reference to an existing header to gir which should be a single include
header.
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index eea4b0a..1f03954 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -106,7 +106,7 @@ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libayatana-ido3-0.4.so" DESTINATION " install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libayatana-ido3-0.4.so.0" DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}") install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libayatana-ido3-0.4.so.0.0.0" DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}") -# ayatana-ido3-0.4.gir +# AyatanaIdo3-0.4.gir find_package(GObjectIntrospection REQUIRED QUIET) @@ -136,6 +136,7 @@ if (INTROSPECTION_FOUND) --pkg=gtk+-3.0 --warn-all --include=Gtk-3.0 + --c-include="libayatana-ido/libayatana-ido.h" --library="ayatana-ido3-0.4" --library-path=${CMAKE_CURRENT_BINARY_DIR} --output "${CMAKE_CURRENT_BINARY_DIR}/AyatanaIdo3-0.4.gir" @@ -143,7 +144,7 @@ if (INTROSPECTION_FOUND) install(FILES "${CMAKE_CURRENT_BINARY_DIR}/AyatanaIdo3-0.4.gir" DESTINATION "${CMAKE_INSTALL_FULL_DATADIR}/gir-1.0") - # ayatana-ido3-0.4.typelib + # AyatanaIdo3-0.4.typelib add_custom_command( OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/AyatanaIdo3-0.4.typelib" @@ -158,27 +159,26 @@ if (INTROSPECTION_FOUND) install(FILES "${CMAKE_CURRENT_BINARY_DIR}/AyatanaIdo3-0.4.typelib" DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}/girepository-1.0") - - # ayatana-ido3-0.4.vapi + # libayatana-ido3-0.4.vapi find_package(Vala REQUIRED QUIET) if (VALA_FOUND) add_custom_command( - OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/AyatanaIdo3-0.4.vapi" + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/libayatana-ido3-0.4.vapi" DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/AyatanaIdo3-0.4.typelib" WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMAND ${VAPI_GEN} - --library=AyatanaIdo3-0.4 + --library=libayatana-ido3-0.4 --pkg gtk+-3.0 AyatanaIdo3-0.4.gir ) - install(FILES "${CMAKE_CURRENT_BINARY_DIR}/AyatanaIdo3-0.4.vapi" DESTINATION "${CMAKE_INSTALL_FULL_DATADIR}/vala/vapi") + install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libayatana-ido3-0.4.vapi" DESTINATION "${CMAKE_INSTALL_FULL_DATADIR}/vala/vapi") - add_custom_target("src" ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/AyatanaIdo3-0.4.vapi") + add_custom_target("src" ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/libayatana-ido3-0.4.vapi") endif () |