Automatic GSchemas symlinks creation for debugging.
This commit is contained in:
parent
2c0df243a1
commit
e4e00859ce
|
@ -1,8 +1,9 @@
|
|||
SET (GSCHEMAS_INSTALL_DIR "share/glib-2.0/schemas")
|
||||
SET (GSCHEMAS_TARGET_DIR "${CMAKE_BINARY_DIR}/${GSCHEMAS_INSTALL_DIR}")
|
||||
FILE (MAKE_DIRECTORY "${GSCHEMAS_TARGET_DIR}")
|
||||
EXECUTE_PROCESS (COMMAND glib-compile-schemas "--targetdir=${GSCHEMAS_TARGET_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
INSTALL (FILES "${GSchemaFile}.gschema.xml" DESTINATION "${GSCHEMAS_INSTALL_DIR}" RENAME "${GSchemaFile}-${MAJOR}.gschema.xml")
|
||||
SET (REL_INSTALL_DIR "share/glib-2.0/schemas")
|
||||
SET (ABS_INSTALL_DIR "${CMAKE_BINARY_DIR}/${REL_INSTALL_DIR}")
|
||||
FILE (MAKE_DIRECTORY "${ABS_INSTALL_DIR}")
|
||||
EXECUTE_PROCESS (COMMAND glib-compile-schemas "--targetdir=${ABS_INSTALL_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
INSTALL (FILES "${GSchemaFile}.gschema.xml" DESTINATION "${REL_INSTALL_DIR}" RENAME "${GSchemaFile}-${MAJOR}.gschema.xml")
|
||||
EXECUTE_PROCESS (COMMAND ln "-s" "${CMAKE_CURRENT_SOURCE_DIR}/${GSchemaFile}.gschema.xml" "${ABS_INSTALL_DIR}/${GSchemaFile}-${MAJOR}.gschema.xml")
|
||||
IF (WIN32)
|
||||
INSTALL (FILES "${GSCHEMAS_TARGET_DIR}/gschemas.compiled" DESTINATION "${GSCHEMAS_INSTALL_DIR}")
|
||||
INSTALL (FILES "${ABS_INSTALL_DIR}/gschemas.compiled" DESTINATION "${REL_INSTALL_DIR}")
|
||||
ENDIF (WIN32)
|
||||
|
|
Loading…
Reference in New Issue