first release of translation facility

* runtime - loading and translating
 * design-time - works with *.ts file (pip_tr utility)
 * compile-time - CMake macro for compile *.ts
This commit is contained in:
2024-11-05 13:49:00 +03:00
parent 73ed51e3d4
commit 57f8c1313e
52 changed files with 1571 additions and 480 deletions

View File

@@ -7,10 +7,17 @@ set_deploy_property(pip_tr
COMPANY "${PIP_COMPANY}"
INFO "Platform-Independent Primitives")
make_rc(pip_tr _RC)
add_executable(pip_tr "main.cpp" ${_RC})
set(TS_LIST)
if (NOT CROSSTOOLS)
file(GLOB TS_LIST "${pip_ROOT_SRC}/lang/*.ts")
endif()
add_executable(pip_tr "main.cpp" "parser.h" "parser.cpp" ${_RC} ${TS_LIST})
target_link_libraries(pip_tr pip_qt_support pip)
if (DEFINED LIB)
install(TARGETS pip_tr DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
else()
install(TARGETS pip_tr DESTINATION bin)
endif()
if (NOT CROSSTOOLS)
add_custom_command(TARGET pip_tr POST_BUILD COMMAND "${CMAKE_COMMAND}" --build "${PIP_DLL_DIR}" --target pip_lang)
endif()