grantlee icon indicating copy to clipboard operation
grantlee copied to clipboard

Make the contacts examples slightly more standalone

Open pinotree opened this issue 5 years ago • 6 comments

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.

pinotree avatar Dec 28 '19 10:12 pinotree

Codecov Report

Merging #61 (5e02f8f) into master (b27333e) will decrease coverage by 0.56%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #61      +/-   ##
==========================================
- Coverage   89.62%   89.06%   -0.57%     
==========================================
  Files         159      158       -1     
  Lines       11392    11275     -117     
==========================================
- Hits        10210    10042     -168     
- Misses       1182     1233      +51     
Impacted Files Coverage Δ
textdocument/lib/markupdirector_p.h 50.00% <0.00%> (-50.00%) :arrow_down:
textdocument/lib/abstractmarkupbuilder.h 50.00% <0.00%> (-50.00%) :arrow_down:
textdocument/lib/plaintextmarkupbuilder.cpp 53.89% <0.00%> (-16.17%) :arrow_down:
textdocument/lib/markupdirector.cpp 69.86% <0.00%> (-6.98%) :arrow_down:
templates/lib/outputstream.cpp 76.66% <0.00%> (-3.34%) :arrow_down:
textdocument/lib/texthtmlbuilder.cpp 49.11% <0.00%> (-0.89%) :arrow_down:
templates/defaulttags/ifchanged.cpp 91.07% <0.00%> (-0.16%) :arrow_down:
templates/tests/testbuiltins.cpp 99.46% <0.00%> (-0.04%) :arrow_down:
templates/tests/testdefaulttags.cpp 99.70% <0.00%> (-0.01%) :arrow_down:
templates/lib/metatype.cpp 100.00% <0.00%> (ø)
... and 24 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b27333e...566bd66. Read the comment docs.

codecov-io avatar Dec 28 '19 11:12 codecov-io

@steveire hi, can you please take a look at this PR? Thanks in advance

pinotree avatar Nov 16 '20 09:11 pinotree

@pinotree Hi, sorry for the delay.

${CMAKE_SOURCE_DIR}/../../ doesn't seem very standalone to me. Perhaps a cmake variable for the path should be used instead if present?

What motivates this? Is it an attempt to (debian-)package grantlee examples separate to the binaries?

steveire avatar Nov 18 '20 17:11 steveire

${CMAKE_SOURCE_DIR}/../../ doesn't seem very standalone to me. Perhaps a cmake variable for the path should be used instead if present?

Yes, I know that, and I explained the reason of the change in the commit message. ${CMAKE_SOURCE_DIR}/../../ is now used only for the linguist_ts target, which is not run by default. Hence, with this PR you can build the example as-is, as long as you don't manually invoke the linguist_ts target.

What motivates this? Is it an attempt to (debian-)package grantlee examples separate to the binaries?

Yes, we do ship the examples/ subdirectory as-is as part of the -dev package of grantlee.

pinotree avatar Nov 18 '20 17:11 pinotree

@steveire ping?

pinotree avatar Nov 21 '21 10:11 pinotree

@pinotree When I was last trying to do something about this I was looking for you on IRC or another chat server. I didn't find you. Do you use any?

steveire avatar Dec 29 '21 22:12 steveire