diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2018-05-13 03:09:43 +0300 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2018-05-15 11:42:36 +0200 |
commit | 56a7f308cf57f87d9e2cdeb77f48b570f81de85e (patch) | |
tree | 2beac75305f078c6d038ad17eb3b0f96ae9db82f /svl/CppunitTest_svl_qa_cppunit.mk | |
parent | 5193d7fc00bd9d2ac2f77989e861c819d994c19c (diff) |
tdf#115007: add NatNum codes for cardinal/ordinal number names/indicators
... based on libnumbertext integrated since commit
f1579d3d6c5f5f3a651825e035b93bee7a4f43c6.
[NatNum12] gives cardinal number names (one, two, three, ...)
[NatNum13] gives ordinal number names (first, second, third, ...)
[NatNum14] gives ordinal indicators (1st, 2nd, 3rd, ...)
Change-Id: Ie2afdeeb82da1b36e9755c02d7b2276c77be9c72
Reviewed-on: https://gerrit.libreoffice.org/54186
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'svl/CppunitTest_svl_qa_cppunit.mk')
-rw-r--r-- | svl/CppunitTest_svl_qa_cppunit.mk | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/svl/CppunitTest_svl_qa_cppunit.mk b/svl/CppunitTest_svl_qa_cppunit.mk index 65be44e40b6f..a067efe8794f 100644 --- a/svl/CppunitTest_svl_qa_cppunit.mk +++ b/svl/CppunitTest_svl_qa_cppunit.mk @@ -27,6 +27,16 @@ $(eval $(call gb_CppunitTest_use_externals,svl_qa_cppunit, \ icu_headers \ )) +ifeq ($(ENABLE_LIBNUMBERTEXT),TRUE) +$(eval $(call gb_CppunitTest_use_package,svl_qa_cppunit, \ + libnumbertext_numbertext \ +)) +endif + +$(eval $(call gb_CppunitTest_add_defs,svl_qa_cppunit, \ + -DENABLE_LIBNUMBERTEXT=$(if $(filter TRUE,$(ENABLE_LIBNUMBERTEXT)),1,0) \ +)) + $(eval $(call gb_CppunitTest_add_exception_objects,svl_qa_cppunit, \ svl/qa/unit/svl \ )) @@ -52,6 +62,10 @@ $(eval $(call gb_CppunitTest_set_include,svl_qa_cppunit,\ $(eval $(call gb_CppunitTest_use_components,svl_qa_cppunit,\ i18npool/util/i18npool \ configmgr/source/configmgr \ + $(if $(filter TRUE,$(ENABLE_LIBNUMBERTEXT)), \ + framework/util/fwk \ + lingucomponent/source/numbertext/numbertext \ + ) \ )) $(eval $(call gb_CppunitTest_use_ure,svl_qa_cppunit)) |