git-svn-id: svn://db.shs.com.ru/libs@296 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
|
||||
macro(sdk_install _DIR _TARGET _H_FILES)
|
||||
macro(sdk_install _DIR _TARGET _H_FILES _QM_FILES)
|
||||
if(LIB)
|
||||
if(WIN32)
|
||||
if(NOT _H_FILES STREQUAL "")
|
||||
if(NOT "x${_H_FILES}" STREQUAL "x")
|
||||
#message("HFILES ${_H_FILES}")
|
||||
install(FILES ${_H_FILES} DESTINATION ${MINGW_INCLUDE}/${_DIR})
|
||||
endif()
|
||||
qt_install(TARGETS ${_TARGET} DESTINATION ${MINGW_LIB})
|
||||
qt_install(TARGETS ${_TARGET} DESTINATION ${MINGW_BIN})
|
||||
qt_install(TARGETS ${_TARGET} DESTINATION QtBin)
|
||||
qt_install(FILES ${_QM_FILES} DESTINATION QtLang)
|
||||
else()
|
||||
if (NOT _H_FILES STREQUAL "")
|
||||
install(FILES ${_H_FILES} DESTINATION ${CMAKE_INSTALL_PREFIX}/include/${_DIR})
|
||||
|
||||
@@ -22,12 +22,15 @@ qt_target_link_libraries(${PROJECT_NAME} pip qad_utils qad_widgets)
|
||||
message(STATUS "Building ${PROJECT_NAME}")
|
||||
if(LIBPROJECT)
|
||||
include(SDKMacros)
|
||||
sdk_install("pip" "${PROJECT_NAME}" "${out_HDR}")
|
||||
sdk_install("pip" "${PROJECT_NAME}" "${out_HDR}" "${out_QM}")
|
||||
else()
|
||||
if(LIB)
|
||||
if(WIN32)
|
||||
set(CMAKE_INSTALL_PREFIX ${MINGW_DIR})
|
||||
install(FILES ${out_HDR} DESTINATION ${MINGW_INCLUDE}/pip)
|
||||
if(NOT "x${out_QM}" STREQUAL "x")
|
||||
qt_install(FILES ${out_QM} DESTINATION QtLang)
|
||||
endif()
|
||||
qt_install(TARGETS ${PROJECT_NAME} DESTINATION ${MINGW_LIB})
|
||||
qt_install(TARGETS ${PROJECT_NAME} DESTINATION ${MINGW_BIN})
|
||||
qt_install(TARGETS ${PROJECT_NAME} DESTINATION QtBin)
|
||||
|
||||
@@ -44,7 +44,7 @@ if (NOT DEFINED ENV{QNX_HOST})
|
||||
endif()
|
||||
|
||||
if(LIBPROJECT)
|
||||
sdk_install("pip" "${PROJECT_NAME}" "${out_HDR}")
|
||||
sdk_install("pip" "${PROJECT_NAME}" "${out_HDR}" "${out_QM}")
|
||||
else()
|
||||
if(LIB)
|
||||
if(WIN32)
|
||||
|
||||
@@ -39,19 +39,21 @@ endif()
|
||||
set(CMAKES "FindQAD.cmake" "QtWraps.cmake")
|
||||
install(FILES ${CMAKES} DESTINATION ${CMAKE_ROOT}/Modules)
|
||||
|
||||
macro(qad_install _TARGET _H_FILES)
|
||||
macro(qad_install _TARGET _H_FILES _QM_FILES)
|
||||
#message("qad_install ${_TARGET} ${_QM_FILES}")
|
||||
if (LIBPROJECT)
|
||||
sdk_install("qad" "${_TARGET}" "${_H_FILES}")
|
||||
sdk_install("qad" "${_TARGET}" "${_H_FILES}" "${_QM_FILES}")
|
||||
else()
|
||||
if (LIB)
|
||||
if (WIN32)
|
||||
if (NOT _H_FILES STREQUAL "")
|
||||
if(NOT "x${_H_FILES}" STREQUAL "x")
|
||||
#message("HFILES ${_H_FILES}")
|
||||
install(FILES ${_H_FILES} DESTINATION ${MINGW_INCLUDE}/qad)
|
||||
install(FILES ${_H_FILES} DESTINATION ${MINGW_INCLUDE}/${_DIR})
|
||||
endif()
|
||||
qt_install(TARGETS ${_TARGET} DESTINATION ${MINGW_LIB})
|
||||
qt_install(TARGETS ${_TARGET} DESTINATION ${MINGW_BIN})
|
||||
qt_install(TARGETS ${_TARGET} DESTINATION QtBin)
|
||||
qt_install(FILES ${_QM_FILES} DESTINATION QtLang)
|
||||
else()
|
||||
if(NOT _H_FILES STREQUAL "")
|
||||
install(FILES ${_H_FILES} DESTINATION ${CMAKE_INSTALL_PREFIX}/include/qad)
|
||||
@@ -84,10 +86,10 @@ macro(qad_project NAME _MODULES _LIBS)
|
||||
set(PROJ_NAME qad_${NAME})
|
||||
find_qt(${QtVersions} Core ${_MODULES})
|
||||
qt_sources(SRC)
|
||||
qt_wrap(${SRC} HDRS out_HDR CPPS out_CPP QMS out_QM)
|
||||
qt_wrap(${SRC} HDRS out_HDR CPPS out_CPP QMS ${PROJ_NAME}_QM)
|
||||
qt_add_library(${PROJ_NAME} SHARED out_CPP)
|
||||
qt_target_link_libraries(${PROJ_NAME} ${_LIBS})
|
||||
qad_install(${PROJ_NAME} "${out_HDR}")
|
||||
qad_install(${PROJ_NAME} "${out_HDR}" ${PROJ_NAME}_QM)
|
||||
message(STATUS "Building ${PROJ_NAME}")
|
||||
if (NOT DEFINED ANDROID_PLATFORM)
|
||||
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/plugin")
|
||||
|
||||
@@ -433,11 +433,19 @@ endmacro()
|
||||
# to corresponding Qt plugins directory
|
||||
macro(qt_install)
|
||||
set(_prev_inst)
|
||||
#message("command: ${ARGN}")
|
||||
foreach(_v ${_QT_VERSIONS_})
|
||||
if (LOCAL_FOUND${_v})
|
||||
set(_INST_LIST)
|
||||
set(_IS_TARGET 0)
|
||||
set(_IS_FILES 0)
|
||||
set(_IS_DEST 0)
|
||||
set(_IS_LANG 0)
|
||||
foreach(_i ${ARGN})
|
||||
if ("x${_i}" STREQUAL "xQtLang")
|
||||
set(_IS_LANG 1)
|
||||
endif()
|
||||
endforeach()
|
||||
foreach(_i ${ARGN})
|
||||
if (_IS_TARGET)
|
||||
set(_IS_TARGET 0)
|
||||
@@ -447,31 +455,48 @@ macro(qt_install)
|
||||
set(_INST_LIST ${_INST_LIST} ${_i})
|
||||
endif()
|
||||
else()
|
||||
if (_IS_DEST)
|
||||
set(_IS_DEST 0)
|
||||
if ("x${_i}" STREQUAL "xQtBin")
|
||||
set(_INST_LIST ${_INST_LIST} "${Qt${_v}_BIN}")
|
||||
else()
|
||||
if ("x${_i}" STREQUAL "xQtLang")
|
||||
set(_INST_LIST ${_INST_LIST} "${Qt${_v}_LANG_DIR}")
|
||||
if (_IS_FILES)
|
||||
set(_IS_FILES 0)
|
||||
if (_IS_LANG)
|
||||
if (("x${${_i}_Qt${_v}}" STREQUAL "x") OR ("x${_i}" STREQUAL "xDESTINATION"))
|
||||
return()
|
||||
else()
|
||||
set(_ind -1)
|
||||
string(FIND "${_i}" "QtPlugins" _ind)
|
||||
if (_ind GREATER_EQUAL 0)
|
||||
string(REPLACE "QtPlugins" "${Qt${_v}_PLUGINS_DIR}" _o "${_i}")
|
||||
set(_INST_LIST ${_INST_LIST} "${_o}")
|
||||
else()
|
||||
set(_INST_LIST ${_INST_LIST} ${_i})
|
||||
endif()
|
||||
set(_INST_LIST ${_INST_LIST} ${${_i}_Qt${_v}})
|
||||
endif()
|
||||
else()
|
||||
set(_INST_LIST ${_INST_LIST} ${_i})
|
||||
endif()
|
||||
else()
|
||||
set(_INST_LIST ${_INST_LIST} ${_i})
|
||||
if ("x${_i}" STREQUAL "xTARGETS")
|
||||
set(_IS_TARGET 1)
|
||||
if (_IS_DEST)
|
||||
set(_IS_DEST 0)
|
||||
if ("x${_i}" STREQUAL "xQtBin")
|
||||
set(_INST_LIST ${_INST_LIST} "${Qt${_v}_BIN}")
|
||||
else()
|
||||
if ("x${_i}" STREQUAL "xQtLang")
|
||||
set(_INST_LIST ${_INST_LIST} "${Qt${_v}_LANG_DIR}")
|
||||
else()
|
||||
set(_ind -1)
|
||||
string(FIND "${_i}" "QtPlugins" _ind)
|
||||
if (_ind GREATER_EQUAL 0)
|
||||
string(REPLACE "QtPlugins" "${Qt${_v}_PLUGINS_DIR}" _o "${_i}")
|
||||
set(_INST_LIST ${_INST_LIST} "${_o}")
|
||||
else()
|
||||
set(_INST_LIST ${_INST_LIST} ${_i})
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
else()
|
||||
if ("x${_i}" STREQUAL "xDESTINATION")
|
||||
set(_IS_DEST 1)
|
||||
set(_INST_LIST ${_INST_LIST} ${_i})
|
||||
if ("x${_i}" STREQUAL "xTARGETS")
|
||||
set(_IS_TARGET 1)
|
||||
else()
|
||||
if ("x${_i}" STREQUAL "xFILES")
|
||||
set(_IS_FILES 1)
|
||||
else()
|
||||
if ("x${_i}" STREQUAL "xDESTINATION")
|
||||
set(_IS_DEST 1)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
@@ -1,53 +1,52 @@
|
||||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>lang/qad_blockview_ru.qm</file>
|
||||
<file>../icons/draw-line.png</file>
|
||||
<file>../icons/align-hor.png</file>
|
||||
<file>../icons/align-ver.png</file>
|
||||
<file>../icons/dialog-close.png</file>
|
||||
<file>../icons/edit-clear.png</file>
|
||||
<file>../icons/edit-guides.png</file>
|
||||
<file>../icons/view-grid.png</file>
|
||||
<file>../icons/zoom-fit-best.png</file>
|
||||
<file>../icons/configure.png</file>
|
||||
<file>../icons/document-save.png</file>
|
||||
<file>../icons/edit-clear-locationbar-rtl.png</file>
|
||||
<file>../icons/edit-find.png</file>
|
||||
<file>../icons/list-add.png</file>
|
||||
<file>../icons/edit-delete.png</file>
|
||||
<file>../icons/item.png</file>
|
||||
<file>../icons/node-add.png</file>
|
||||
<file>../icons/node.png</file>
|
||||
<file>../icons/edit-copy.png</file>
|
||||
<file>../icons/edit-paste.png</file>
|
||||
<file>../icons/expand_s_x.png</file>
|
||||
<file>../icons/expand_s_y.png</file>
|
||||
<file>../icons/expand_x.png</file>
|
||||
<file>../icons/expand_y.png</file>
|
||||
<file>../icons/border-line.png</file>
|
||||
<file>../icons/legend.png</file>
|
||||
<file>../icons/blockview.png</file>
|
||||
<file>../icons/view-fullscreen.png</file>
|
||||
<file>../icons/draw-ellipse.png</file>
|
||||
<file>../icons/draw-rectangle.png</file>
|
||||
<file>../icons/draw-text.png</file>
|
||||
<file>../icons/view-preview.png</file>
|
||||
<file>../icons/format-fill-color.png</file>
|
||||
<file>../icons/format-stroke-color.png</file>
|
||||
<file>../icons/document-open.png</file>
|
||||
<file>../icons/document-edit-.png</file>
|
||||
<file>../icons/align-bottom-center.png</file>
|
||||
<file>../icons/align-bottom-left.png</file>
|
||||
<file>../icons/align-bottom-right.png</file>
|
||||
<file>../icons/align-center-center.png</file>
|
||||
<file>../icons/align-center-left.png</file>
|
||||
<file>../icons/align-center-right.png</file>
|
||||
<file>../icons/align-top-center.png</file>
|
||||
<file>../icons/align-top-left.png</file>
|
||||
<file>../icons/align-top-right.png</file>
|
||||
<file>../icons/z-bottom.png</file>
|
||||
<file>../icons/z-down.png</file>
|
||||
<file>../icons/z-top.png</file>
|
||||
<file>../icons/z-up.png</file>
|
||||
</qresource>
|
||||
<qresource prefix="/">
|
||||
<file>../icons/draw-line.png</file>
|
||||
<file>../icons/align-hor.png</file>
|
||||
<file>../icons/align-ver.png</file>
|
||||
<file>../icons/dialog-close.png</file>
|
||||
<file>../icons/edit-clear.png</file>
|
||||
<file>../icons/edit-guides.png</file>
|
||||
<file>../icons/view-grid.png</file>
|
||||
<file>../icons/zoom-fit-best.png</file>
|
||||
<file>../icons/configure.png</file>
|
||||
<file>../icons/document-save.png</file>
|
||||
<file>../icons/edit-clear-locationbar-rtl.png</file>
|
||||
<file>../icons/edit-find.png</file>
|
||||
<file>../icons/list-add.png</file>
|
||||
<file>../icons/edit-delete.png</file>
|
||||
<file>../icons/item.png</file>
|
||||
<file>../icons/node-add.png</file>
|
||||
<file>../icons/node.png</file>
|
||||
<file>../icons/edit-copy.png</file>
|
||||
<file>../icons/edit-paste.png</file>
|
||||
<file>../icons/expand_s_x.png</file>
|
||||
<file>../icons/expand_s_y.png</file>
|
||||
<file>../icons/expand_x.png</file>
|
||||
<file>../icons/expand_y.png</file>
|
||||
<file>../icons/border-line.png</file>
|
||||
<file>../icons/legend.png</file>
|
||||
<file>../icons/blockview.png</file>
|
||||
<file>../icons/view-fullscreen.png</file>
|
||||
<file>../icons/draw-ellipse.png</file>
|
||||
<file>../icons/draw-rectangle.png</file>
|
||||
<file>../icons/draw-text.png</file>
|
||||
<file>../icons/view-preview.png</file>
|
||||
<file>../icons/format-fill-color.png</file>
|
||||
<file>../icons/format-stroke-color.png</file>
|
||||
<file>../icons/document-open.png</file>
|
||||
<file>../icons/document-edit-.png</file>
|
||||
<file>../icons/align-bottom-center.png</file>
|
||||
<file>../icons/align-bottom-left.png</file>
|
||||
<file>../icons/align-bottom-right.png</file>
|
||||
<file>../icons/align-center-center.png</file>
|
||||
<file>../icons/align-center-left.png</file>
|
||||
<file>../icons/align-center-right.png</file>
|
||||
<file>../icons/align-top-center.png</file>
|
||||
<file>../icons/align-top-left.png</file>
|
||||
<file>../icons/align-top-right.png</file>
|
||||
<file>../icons/z-bottom.png</file>
|
||||
<file>../icons/z-down.png</file>
|
||||
<file>../icons/z-top.png</file>
|
||||
<file>../icons/z-up.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
@@ -1,32 +1,31 @@
|
||||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>lang/qad_graphic_ru.qm</file>
|
||||
<file>../icons/media-playback-pause.png</file>
|
||||
<file>../icons/dialog-close.png</file>
|
||||
<file>../icons/edit-clear.png</file>
|
||||
<file>../icons/edit-guides.png</file>
|
||||
<file>../icons/view-grid.png</file>
|
||||
<file>../icons/zoom-fit-best.png</file>
|
||||
<file>../icons/configure.png</file>
|
||||
<file>../icons/document-save.png</file>
|
||||
<file>../icons/edit-clear-locationbar-rtl.png</file>
|
||||
<file>../icons/edit-find.png</file>
|
||||
<file>../icons/list-add.png</file>
|
||||
<file>../icons/edit-delete.png</file>
|
||||
<file>../icons/item.png</file>
|
||||
<file>../icons/node-add.png</file>
|
||||
<file>../icons/node.png</file>
|
||||
<file>../icons/edit-copy.png</file>
|
||||
<file>../icons/edit-paste.png</file>
|
||||
<file>../icons/expand_s_x.png</file>
|
||||
<file>../icons/expand_s_y.png</file>
|
||||
<file>../icons/expand_x.png</file>
|
||||
<file>../icons/expand_y.png</file>
|
||||
<file>../icons/border-line.png</file>
|
||||
<file>../icons/legend.png</file>
|
||||
<file>../icons/graphic.png</file>
|
||||
<file>../icons/view-fullscreen.png</file>
|
||||
<file>../icons/pause-back.png</file>
|
||||
<file>../icons/pause-front.png</file>
|
||||
<qresource prefix="/">
|
||||
<file>../icons/media-playback-pause.png</file>
|
||||
<file>../icons/dialog-close.png</file>
|
||||
<file>../icons/edit-clear.png</file>
|
||||
<file>../icons/edit-guides.png</file>
|
||||
<file>../icons/view-grid.png</file>
|
||||
<file>../icons/zoom-fit-best.png</file>
|
||||
<file>../icons/configure.png</file>
|
||||
<file>../icons/document-save.png</file>
|
||||
<file>../icons/edit-clear-locationbar-rtl.png</file>
|
||||
<file>../icons/edit-find.png</file>
|
||||
<file>../icons/list-add.png</file>
|
||||
<file>../icons/edit-delete.png</file>
|
||||
<file>../icons/item.png</file>
|
||||
<file>../icons/node-add.png</file>
|
||||
<file>../icons/node.png</file>
|
||||
<file>../icons/edit-copy.png</file>
|
||||
<file>../icons/edit-paste.png</file>
|
||||
<file>../icons/expand_s_x.png</file>
|
||||
<file>../icons/expand_s_y.png</file>
|
||||
<file>../icons/expand_x.png</file>
|
||||
<file>../icons/expand_y.png</file>
|
||||
<file>../icons/border-line.png</file>
|
||||
<file>../icons/legend.png</file>
|
||||
<file>../icons/graphic.png</file>
|
||||
<file>../icons/view-fullscreen.png</file>
|
||||
<file>../icons/pause-back.png</file>
|
||||
<file>../icons/pause-front.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
@@ -21,7 +21,7 @@ qt_add_library(${PROJECT_NAME} SHARED out_CPP)
|
||||
qt_target_link_libraries(${PROJECT_NAME} pip qad_utils qad_widgets cd_utils piqt)
|
||||
message(STATUS "Building ${PROJECT_NAME}")
|
||||
if(LIBPROJECT)
|
||||
sdk_install("" "${PROJECT_NAME}" "${out_HDR}")
|
||||
sdk_install("" "${PROJECT_NAME}" "${out_HDR}" "${out_QM}")
|
||||
else()
|
||||
if(LIB)
|
||||
if(WIN32)
|
||||
|
||||
@@ -25,7 +25,7 @@ qt_add_library(${PROJECT_NAME} SHARED out_CPP)
|
||||
qt_target_link_libraries(${PROJECT_NAME} qad_utils qad_widgets ${OPENGL_LIBRARIES})
|
||||
message(STATUS "Building ${PROJECT_NAME}")
|
||||
if (LIBPROJECT)
|
||||
sdk_install("qad" "${PROJECT_NAME}" "${out_HDR}")
|
||||
sdk_install("qad" "${PROJECT_NAME}" "${out_HDR}" "${out_QM}")
|
||||
else()
|
||||
if (LIB)
|
||||
if (WIN32)
|
||||
|
||||
Reference in New Issue
Block a user