CMake target to generate the main pot file (#786)
This commit is contained in:
parent
58788ef43a
commit
bd61c233a5
@ -1,18 +1,18 @@
|
|||||||
c:\src\Slic3r\xs\src\slic3r\GUI\BedShapeDialog.cpp
|
xs/src/slic3r/GUI/BedShapeDialog.cpp
|
||||||
c:\src\Slic3r\xs\src\slic3r\GUI\BedShapeDialog.hpp
|
xs/src/slic3r/GUI/BedShapeDialog.hpp
|
||||||
c:\src\Slic3r\xs\src\slic3r\GUI\GUI.cpp
|
xs/src/slic3r/GUI/GUI.cpp
|
||||||
c:\src\Slic3r\xs\src\slic3r\GUI\Tab.cpp
|
xs/src/slic3r/GUI/Tab.cpp
|
||||||
c:\src\Slic3r\xs\src\slic3r\GUI\Tab.hpp
|
xs/src/slic3r/GUI/Tab.hpp
|
||||||
c:\src\Slic3r\xs\src\slic3r\GUI\Field.cpp
|
xs/src/slic3r/GUI/Field.cpp
|
||||||
c:\src\Slic3r\xs\src\slic3r\GUI\OptionsGroup.cpp
|
xs/src/slic3r/GUI/OptionsGroup.cpp
|
||||||
c:\src\Slic3r\xs\src\slic3r\GUI\2DBed.cpp
|
xs/src/slic3r/GUI/2DBed.cpp
|
||||||
c:\src\Slic3r\xs\src\slic3r\GUI\PresetHints.cpp
|
xs/src/slic3r/GUI/PresetHints.cpp
|
||||||
c:\src\Slic3r\xs\src\slic3r\GUI\Preferences.hpp
|
xs/src/slic3r/GUI/Preferences.hpp
|
||||||
c:\src\Slic3r\xs\src\slic3r\GUI\Preferences.cpp
|
xs/src/slic3r/GUI/Preferences.cpp
|
||||||
C:\src\Slic3r\xs\src\libslic3r\PrintConfig.cpp
|
xs/src/libslic3r/PrintConfig.cpp
|
||||||
c:\src\Slic3r\xs\src\libslic3r\GCode\PreviewData.cpp
|
xs/src/libslic3r/GCode/PreviewData.cpp
|
||||||
c:\src\Slic3r\lib\Slic3r\GUI.pm
|
lib/Slic3r/GUI.pm
|
||||||
c:\src\Slic3r\lib\Slic3r\GUI\MainFrame.pm
|
lib/Slic3r/GUI/MainFrame.pm
|
||||||
c:\src\Slic3r\lib\Slic3r\GUI\Plater.pm
|
lib/Slic3r/GUI/Plater.pm
|
||||||
c:\src\Slic3r\lib\Slic3r\GUI\Plater\2D.pm
|
lib/Slic3r/GUI/Plater/2D.pm
|
||||||
c:\src\Slic3r\lib\Slic3r\GUI\Plater\3DPreview.pm
|
lib/Slic3r/GUI/Plater/3DPreview.pm
|
||||||
|
@ -630,6 +630,15 @@ if (MSVC)
|
|||||||
set_target_properties(XS PROPERTIES VS_USER_PROPS "${PROJECT_SOURCE_DIR}/cmake/msvc/xs.wperl64d.props")
|
set_target_properties(XS PROPERTIES VS_USER_PROPS "${PROJECT_SOURCE_DIR}/cmake/msvc/xs.wperl64d.props")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# l10n
|
||||||
|
set(L10N_DIR "${PROJECT_SOURCE_DIR}/resources/localization")
|
||||||
|
add_custom_target(pot
|
||||||
|
COMMAND xgettext --keyword=L --from-code=UTF-8 --debug
|
||||||
|
-f "${L10N_DIR}/list.txt"
|
||||||
|
-o "${L10N_DIR}/Slic3rPE.pot"
|
||||||
|
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
||||||
|
COMMENT "Generate pot file from strings in the source tree"
|
||||||
|
)
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
install(TARGETS XS DESTINATION ${PERL_VENDORARCH}/auto/Slic3r/XS)
|
install(TARGETS XS DESTINATION ${PERL_VENDORARCH}/auto/Slic3r/XS)
|
||||||
|
Loading…
Reference in New Issue
Block a user