git-svn-id: svn://db.shs.com.ru/libs@586 a8b55f48-bf90-11e4-a774-851b48703e85
70
test/piqt_utils/CMakeLists.txt
Normal file
@@ -0,0 +1,70 @@
|
||||
project(piqt_utils)
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
if (POLICY CMP0017)
|
||||
cmake_policy(SET CMP0017 NEW)
|
||||
endif()
|
||||
set(PIQT_UTILS_UTILS 1)
|
||||
if(LIBPROJECT)
|
||||
include(PIPMacros)
|
||||
include(SDKMacros)
|
||||
set(PIQT_UTILS_UTILS ${UTILS})
|
||||
else()
|
||||
find_package(PIP REQUIRED)
|
||||
option(LIB "System install" 0)
|
||||
option(DEBUG "Build with -g3" 0)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -Wall")
|
||||
if(DEBUG)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g3")
|
||||
endif()
|
||||
endif()
|
||||
set(LIBTYPE SHARED)
|
||||
if(DEFINED ENV{QNX_HOST})
|
||||
set(LIBTYPE STATIC)
|
||||
endif()
|
||||
find_package(QAD REQUIRED)
|
||||
list(APPEND QT_MULTILIB_LIST ${PROJECT_NAME})
|
||||
set(QT_MULTILIB_LIST ${QT_MULTILIB_LIST} PARENT_SCOPE)
|
||||
include_directories(${PIP_INCLUDES} ${QAD_INCLUDES})
|
||||
file(GLOB SRC "*.h" "*.cpp" "*.ui" "*.qrc" "lang/*.ts")
|
||||
pip_code_model(CCM "../pip/src_main/io_devices/piiodevice.h" "../pip/src_main/io_utils/pipacketextractor.h" OPTIONS "-DPIP_EXPORT" "-Es")
|
||||
find_qt(${QtVersions} Core Gui)
|
||||
qt_wrap(${SRC} HDRS out_HDR CPPS out_CPP QMS out_QM)
|
||||
qt_add_library(${PROJECT_NAME} ${LIBTYPE} out_CPP CCM)
|
||||
qt_target_link_libraries(${PROJECT_NAME} pip qad_utils qad_widgets qad_blockview piqt)
|
||||
message(STATUS "Building ${PROJECT_NAME}")
|
||||
|
||||
if (LIBPROJECT)
|
||||
foreach(_v ${_QT_VERSIONS_})
|
||||
if (LOCAL_FOUND${_v})
|
||||
add_dependencies(piqt_utils${_v} pip_cmg)
|
||||
endif()
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
if (NOT DEFINED ENV{QNX_HOST})
|
||||
if (PIQT_UTILS_UTILS)
|
||||
add_subdirectory(piconnedit)
|
||||
add_subdirectory(pidumper)
|
||||
add_subdirectory(piintrospector)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(LIBPROJECT)
|
||||
sdk_install("pip" "${PROJECT_NAME}" "${out_HDR}" "${out_QM}")
|
||||
else()
|
||||
if(LIB)
|
||||
if(WIN32)
|
||||
install(FILES ${out_HDR} DESTINATION ${MINGW_INCLUDE}/pip)
|
||||
qt_install(TARGETS ${PROJECT_NAME} DESTINATION ${MINGW_LIB})
|
||||
qt_install(TARGETS ${PROJECT_NAME} DESTINATION ${MINGW_BIN})
|
||||
qt_install(TARGETS ${PROJECT_NAME} DESTINATION QtBin)
|
||||
else()
|
||||
install(FILES ${out_HDR} DESTINATION ${CMAKE_INSTALL_PREFIX}/include/pip)
|
||||
qt_install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
|
||||
endif()
|
||||
message(STATUS "Install ${PROJECT_NAME} to system \"${CMAKE_INSTALL_PREFIX}\"")
|
||||
else()
|
||||
qt_install(TARGETS ${PROJECT_NAME} DESTINATION bin)
|
||||
message(STATUS "Install ${PROJECT_NAME} to local \"bin\"")
|
||||
endif()
|
||||
endif()
|
||||
26
test/piqt_utils/piconnedit/CMakeLists.txt
Normal file
@@ -0,0 +1,26 @@
|
||||
project(piconnedit)
|
||||
file(GLOB SRC "*.h" "*.cpp" "*.ui" "*.qrc" "lang/*.ts")
|
||||
find_qt(${QtVersions} Core Gui)
|
||||
qt_wrap(${SRC} HDRS out_HDR CPPS out_CPP QMS out_QM)
|
||||
qt_add_executable(${PROJECT_NAME} WIN32 out_CPP)
|
||||
qt_target_link_libraries(${PROJECT_NAME} pip qad_utils qad_widgets piqt_utils)
|
||||
message(STATUS "Building ${PROJECT_NAME}")
|
||||
if(LIB)
|
||||
if(WIN32)
|
||||
qt_install(TARGETS ${PROJECT_NAME} DESTINATION ${MINGW_BIN})
|
||||
else()
|
||||
if(APPLE)
|
||||
qt_install(TARGETS ${PROJECT_NAME} DESTINATION /usr/local/bin)
|
||||
else()
|
||||
if (DEFINED ANDROID_PLATFORM)
|
||||
qt_install(TARGETS ${PROJECT_NAME} DESTINATION ${ANDROID_SYSTEM_LIBRARY_PATH}/usr/bin)
|
||||
else()
|
||||
qt_install(TARGETS ${PROJECT_NAME} DESTINATION /usr/bin)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
#message(STATUS "Install ${PROJECT_NAME} to system \"${CMAKE_INSTALL_PREFIX}\"")
|
||||
else()
|
||||
qt_install(TARGETS ${PROJECT_NAME} DESTINATION bin)
|
||||
#message(STATUS "Install ${PROJECT_NAME} to local \"bin\"")
|
||||
endif()
|
||||
|
After Width: | Height: | Size: 9.4 KiB |
BIN
test/piqt_utils/piconnedit/icons/DALI-designer.png
Normal file
|
After Width: | Height: | Size: 7.7 KiB |
BIN
test/piqt_utils/piconnedit/icons/alpha.png
Normal file
|
After Width: | Height: | Size: 158 B |
BIN
test/piqt_utils/piconnedit/icons/application-exit.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
test/piqt_utils/piconnedit/icons/applications-engineering.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
test/piqt_utils/piconnedit/icons/archive-extract.png
Normal file
|
After Width: | Height: | Size: 626 B |
BIN
test/piqt_utils/piconnedit/icons/archive-insert-directory.png
Normal file
|
After Width: | Height: | Size: 588 B |
BIN
test/piqt_utils/piconnedit/icons/archive-insert.png
Normal file
|
After Width: | Height: | Size: 433 B |
BIN
test/piqt_utils/piconnedit/icons/arrow-down.png
Normal file
|
After Width: | Height: | Size: 525 B |
BIN
test/piqt_utils/piconnedit/icons/arrow-up.png
Normal file
|
After Width: | Height: | Size: 484 B |
BIN
test/piqt_utils/piconnedit/icons/axis_x.png
Normal file
|
After Width: | Height: | Size: 235 B |
BIN
test/piqt_utils/piconnedit/icons/axis_y.png
Normal file
|
After Width: | Height: | Size: 259 B |
BIN
test/piqt_utils/piconnedit/icons/case-sensitive.png
Normal file
|
After Width: | Height: | Size: 326 B |
BIN
test/piqt_utils/piconnedit/icons/checkbox-unchecked.png
Normal file
|
After Width: | Height: | Size: 419 B |
BIN
test/piqt_utils/piconnedit/icons/checkbox.png
Normal file
|
After Width: | Height: | Size: 654 B |
BIN
test/piqt_utils/piconnedit/icons/clients.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
test/piqt_utils/piconnedit/icons/close.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
test/piqt_utils/piconnedit/icons/code-error.png
Normal file
|
After Width: | Height: | Size: 722 B |
BIN
test/piqt_utils/piconnedit/icons/code-function.png
Normal file
|
After Width: | Height: | Size: 449 B |
BIN
test/piqt_utils/piconnedit/icons/code-keyword.png
Normal file
|
After Width: | Height: | Size: 342 B |
BIN
test/piqt_utils/piconnedit/icons/code-parents.png
Normal file
|
After Width: | Height: | Size: 641 B |
BIN
test/piqt_utils/piconnedit/icons/code-property.png
Normal file
|
After Width: | Height: | Size: 540 B |
BIN
test/piqt_utils/piconnedit/icons/code-signal.png
Normal file
|
After Width: | Height: | Size: 726 B |
BIN
test/piqt_utils/piconnedit/icons/code-struct.png
Normal file
|
After Width: | Height: | Size: 676 B |
BIN
test/piqt_utils/piconnedit/icons/code-union.png
Normal file
|
After Width: | Height: | Size: 731 B |
BIN
test/piqt_utils/piconnedit/icons/code-variable.png
Normal file
|
After Width: | Height: | Size: 328 B |
BIN
test/piqt_utils/piconnedit/icons/code-word.png
Normal file
|
After Width: | Height: | Size: 543 B |
BIN
test/piqt_utils/piconnedit/icons/configure-.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
test/piqt_utils/piconnedit/icons/configure.png
Normal file
|
After Width: | Height: | Size: 717 B |
BIN
test/piqt_utils/piconnedit/icons/database.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
test/piqt_utils/piconnedit/icons/debug-run.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
test/piqt_utils/piconnedit/icons/designer-qt4.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
test/piqt_utils/piconnedit/icons/dialog-close.png
Normal file
|
After Width: | Height: | Size: 813 B |
BIN
test/piqt_utils/piconnedit/icons/dialog-ok-apply.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
test/piqt_utils/piconnedit/icons/dialog-warning.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
test/piqt_utils/piconnedit/icons/disabled.png
Normal file
|
After Width: | Height: | Size: 5.6 KiB |
|
After Width: | Height: | Size: 539 B |
BIN
test/piqt_utils/piconnedit/icons/document-edit.png
Normal file
|
After Width: | Height: | Size: 726 B |
BIN
test/piqt_utils/piconnedit/icons/document-new.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
test/piqt_utils/piconnedit/icons/document-open.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
test/piqt_utils/piconnedit/icons/document-print.png
Normal file
|
After Width: | Height: | Size: 880 B |
BIN
test/piqt_utils/piconnedit/icons/document-save-.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
test/piqt_utils/piconnedit/icons/document-save-all.png
Normal file
|
After Width: | Height: | Size: 921 B |
BIN
test/piqt_utils/piconnedit/icons/document-save-as.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
test/piqt_utils/piconnedit/icons/document-save.png
Normal file
|
After Width: | Height: | Size: 563 B |
BIN
test/piqt_utils/piconnedit/icons/edit-clear-.png
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
test/piqt_utils/piconnedit/icons/edit-clear-locationbar-rtl.png
Normal file
|
After Width: | Height: | Size: 644 B |
BIN
test/piqt_utils/piconnedit/icons/edit-clear.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
test/piqt_utils/piconnedit/icons/edit-copy.png
Normal file
|
After Width: | Height: | Size: 828 B |
BIN
test/piqt_utils/piconnedit/icons/edit-cut.png
Normal file
|
After Width: | Height: | Size: 892 B |
BIN
test/piqt_utils/piconnedit/icons/edit-delete.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
test/piqt_utils/piconnedit/icons/edit-find-.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
test/piqt_utils/piconnedit/icons/edit-find.png
Normal file
|
After Width: | Height: | Size: 634 B |
BIN
test/piqt_utils/piconnedit/icons/edit-guides.png
Normal file
|
After Width: | Height: | Size: 544 B |
BIN
test/piqt_utils/piconnedit/icons/edit-paste.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
test/piqt_utils/piconnedit/icons/edit-redo.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
test/piqt_utils/piconnedit/icons/edit-table-insert-row-below.png
Normal file
|
After Width: | Height: | Size: 852 B |
BIN
test/piqt_utils/piconnedit/icons/edit-undo.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
test/piqt_utils/piconnedit/icons/employees.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
test/piqt_utils/piconnedit/icons/expand_s_x.png
Normal file
|
After Width: | Height: | Size: 571 B |
BIN
test/piqt_utils/piconnedit/icons/expand_s_y.png
Normal file
|
After Width: | Height: | Size: 577 B |
BIN
test/piqt_utils/piconnedit/icons/expand_x.png
Normal file
|
After Width: | Height: | Size: 579 B |
BIN
test/piqt_utils/piconnedit/icons/expand_y.png
Normal file
|
After Width: | Height: | Size: 577 B |
BIN
test/piqt_utils/piconnedit/icons/format-text-subscript.png
Normal file
|
After Width: | Height: | Size: 824 B |
BIN
test/piqt_utils/piconnedit/icons/games-solve.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
test/piqt_utils/piconnedit/icons/go-jump.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
test/piqt_utils/piconnedit/icons/go-next.png
Normal file
|
After Width: | Height: | Size: 940 B |
BIN
test/piqt_utils/piconnedit/icons/go-previous.png
Normal file
|
After Width: | Height: | Size: 907 B |
BIN
test/piqt_utils/piconnedit/icons/graphics.png
Normal file
|
After Width: | Height: | Size: 391 B |
BIN
test/piqt_utils/piconnedit/icons/groups-edit.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
test/piqt_utils/piconnedit/icons/item-add.png
Normal file
|
After Width: | Height: | Size: 639 B |
BIN
test/piqt_utils/piconnedit/icons/item.png
Normal file
|
After Width: | Height: | Size: 448 B |
BIN
test/piqt_utils/piconnedit/icons/lastmoves.png
Normal file
|
After Width: | Height: | Size: 592 B |
BIN
test/piqt_utils/piconnedit/icons/led_3.png
Normal file
|
After Width: | Height: | Size: 8.3 KiB |
BIN
test/piqt_utils/piconnedit/icons/led_off.png
Normal file
|
After Width: | Height: | Size: 540 B |
BIN
test/piqt_utils/piconnedit/icons/led_on.png
Normal file
|
After Width: | Height: | Size: 533 B |
BIN
test/piqt_utils/piconnedit/icons/light-+.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
test/piqt_utils/piconnedit/icons/light--.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
test/piqt_utils/piconnedit/icons/light-254.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
test/piqt_utils/piconnedit/icons/light-disable-all.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
test/piqt_utils/piconnedit/icons/light-disable.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
test/piqt_utils/piconnedit/icons/light-down.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
test/piqt_utils/piconnedit/icons/light-edit.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
test/piqt_utils/piconnedit/icons/light-max.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
test/piqt_utils/piconnedit/icons/light-min.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
test/piqt_utils/piconnedit/icons/light-off.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
test/piqt_utils/piconnedit/icons/light-on.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
test/piqt_utils/piconnedit/icons/light-step-down.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
test/piqt_utils/piconnedit/icons/light-step-up.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
test/piqt_utils/piconnedit/icons/light-up.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
test/piqt_utils/piconnedit/icons/lights.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
test/piqt_utils/piconnedit/icons/list-add.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
test/piqt_utils/piconnedit/icons/list-remove.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
test/piqt_utils/piconnedit/icons/log_parser.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
test/piqt_utils/piconnedit/icons/mail.png
Normal file
|
After Width: | Height: | Size: 918 B |
BIN
test/piqt_utils/piconnedit/icons/media-flash.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
test/piqt_utils/piconnedit/icons/media-playback-pause.png
Normal file
|
After Width: | Height: | Size: 721 B |
BIN
test/piqt_utils/piconnedit/icons/media-playback-stop.png
Normal file
|
After Width: | Height: | Size: 736 B |