Skip to content

Commit

Permalink
Make the contacts examples slightly more standalone
Browse files Browse the repository at this point in the history
Instead of symlinking the scripts directory in the grantlee sources to
the source directory of this example, directly invoke the
extract_strings_linguist.py script with its relative path for the
example source directory.

The linguist_ts target still depends on something outside of it, however
now it is possible to build the contacts example on its own, even when
it is copied as standalone out of the grantlee sources.
  • Loading branch information
pinotree committed Nov 16, 2020
1 parent b27333e commit 566bd66
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/contacts/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ else()
set(lrelease_exe Qt5::lrelease)
endif()

execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink "${PROJECT_SOURCE_DIR}/../../scripts" "${PROJECT_SOURCE_DIR}/scripts")

set( LINGUIST_TS_ARGS COMMAND "${CMAKE_SOURCE_DIR}/scripts/extract_strings_linguist.py"
set( LINGUIST_TS_ARGS COMMAND "${CMAKE_SOURCE_DIR}/../../scripts/extract_strings_linguist.py"
"${CMAKE_SOURCE_DIR}/themes/linguist/bashful/*.html"
"${CMAKE_SOURCE_DIR}/themes/linguist/sneezy/*.html"
"${CMAKE_SOURCE_DIR}/themes/linguist/sleepy/*.html"
Expand Down

0 comments on commit 566bd66

Please sign in to comment.