diff options
author | Danila Poyarkov <dannotemail@gmail.com> | 2015-07-06 16:45:45 -0400 |
---|---|---|
committer | Christian Dywan <christian.dywan@canonical.com> | 2015-07-06 16:45:45 -0400 |
commit | 1517da8cbdc23bc0a08d34bc8650910ce3ddbb6c (patch) | |
tree | 73bffd07fae95021d7f13d5330a2d07151cf9b93 /cmake | |
parent | 548ab2e54eb8b171d47c8e60ae419ee7b10204d8 (diff) | |
download | midori-1517da8cbdc23bc0a08d34bc8650910ce3ddbb6c.tar.gz |
Compile typelib from gir
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/GIR.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/GIR.cmake b/cmake/GIR.cmake index 659e865d..0fda5c8b 100644 --- a/cmake/GIR.cmake +++ b/cmake/GIR.cmake @@ -19,6 +19,11 @@ if (GIR_SCANNER_BIN AND GIR_COMPILER_BIN) -o ${CMAKE_CURRENT_BINARY_DIR}/${namespace}-${GIR_VERSION}.gir WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" DEPENDS ${CMAKE_PROJECT_NAME}) + add_custom_target ("g-ir-compiler_${module}" ALL + ${GIR_COMPILER_BIN} ${CMAKE_CURRENT_BINARY_DIR}/${namespace}-${GIR_VERSION}.gir + --output ${CMAKE_CURRENT_BINARY_DIR}/${namespace}-${GIR_VERSION}.typelib + WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" + DEPENDS g-ir-scanner_${module}) endmacro (gir_build module namespace) @@ -27,5 +32,7 @@ if (GIR_SCANNER_BIN AND GIR_COMPILER_BIN) install (FILES "${CMAKE_CURRENT_BINARY_DIR}/${namespace}-${GIR_VERSION}.gir" DESTINATION "${CMAKE_INSTALL_DATADIR}/gir-1.0/") + install (FILES "${CMAKE_CURRENT_BINARY_DIR}/${namespace}-${GIR_VERSION}.typelib" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/girepository-1.0/") endmacro (gir module) endif () |