Skip to content
Snippets Groups Projects
Commit e02bf8f9 authored by Oz Linden's avatar Oz Linden
Browse files

add dictionaries to the Hunspell.cmake so that it gets installed

parent 5ca8e138
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,12 @@ ...@@ -15,6 +15,12 @@
# * The basic convention is that the build name can be mapped onto a mercurial URL, # * The basic convention is that the build name can be mapped onto a mercurial URL,
# which is also used as the "branch" name. # which is also used as the "branch" name.
check_for()
{
if [ -e "$2" ]; then found_dict='FOUND'; else found_dict='MISSING'; fi
echo "$1 ${found_dict} '$2' " 1>&2
}
build_dir_Darwin() build_dir_Darwin()
{ {
echo build-darwin-i386 echo build-darwin-i386
...@@ -59,8 +65,7 @@ pre_build() ...@@ -59,8 +65,7 @@ pre_build()
&& [ -r "$master_message_template_checkout/message_template.msg" ] \ && [ -r "$master_message_template_checkout/message_template.msg" ] \
&& template_verifier_master_url="-DTEMPLATE_VERIFIER_MASTER_URL=file://$master_message_template_checkout/message_template.msg" && template_verifier_master_url="-DTEMPLATE_VERIFIER_MASTER_URL=file://$master_message_template_checkout/message_template.msg"
echo -n "Before 'autobuild configure' ${build_dir}/packages/dictionaries " 1>&2 check_for "Before 'autobuild configure'" ${build_dir}/packages/dictionaries
(test -d "${build_dir}/packages/dictionaries" && 'found' || echo 'missing' ) 1>&2
"$AUTOBUILD" configure -c $variant -- \ "$AUTOBUILD" configure -c $variant -- \
-DPACKAGE:BOOL=ON \ -DPACKAGE:BOOL=ON \
...@@ -71,10 +76,9 @@ pre_build() ...@@ -71,10 +76,9 @@ pre_build()
-DLL_TESTS:BOOL="$run_tests" \ -DLL_TESTS:BOOL="$run_tests" \
-DTEMPLATE_VERIFIER_OPTIONS:STRING="$template_verifier_options" $template_verifier_master_url -DTEMPLATE_VERIFIER_OPTIONS:STRING="$template_verifier_options" $template_verifier_master_url
echo -n "After 'autobuild configure' ${build_dir}/packages/dictionaries " 1>&2 check_for "After 'autobuild configure'" ${build_dir}/packages/dictionaries
(test -d "${build_dir}/packages/dictionaries" && 'found' || echo 'missing' ) 1>&2
end_section "Pre$variant" end_section "Pre$variant"
} }
build() build()
...@@ -84,8 +88,7 @@ build() ...@@ -84,8 +88,7 @@ build()
then then
begin_section "Viewer$variant" begin_section "Viewer$variant"
echo -n "Before 'autobuild build' ${build_dir}/packages/dictionaries " 1>&2 check_for "Before 'autobuild build'" ${build_dir}/packages/dictionaries
(test -d "${build_dir}/packages/dictionaries" && 'found' || echo 'missing' ) 1>&2
if "$AUTOBUILD" build --no-configure -c $variant if "$AUTOBUILD" build --no-configure -c $variant
then then
...@@ -93,8 +96,7 @@ build() ...@@ -93,8 +96,7 @@ build()
else else
echo false >"$build_dir"/build_ok echo false >"$build_dir"/build_ok
fi fi
echo -n "After 'autobuild build' ${build_dir}/packages/dictionaries " 1>&2 check_for "After 'autobuild configure'" ${build_dir}/packages/dictionaries
(test -d "${build_dir}/packages/dictionaries" && 'found' || echo 'missing' ) 1>&2
end_section "Viewer$variant" end_section "Viewer$variant"
fi fi
...@@ -190,15 +192,12 @@ eval "$("$AUTOBUILD" source_environment)" ...@@ -190,15 +192,12 @@ eval "$("$AUTOBUILD" source_environment)"
# dump environment variables for debugging # dump environment variables for debugging
env|sort env|sort
check_for "Before 'autobuild install'" ${build_dir}/packages/dictionaries
echo -n "Before 'autobuild install' ${build_dir}/packages/dictionaries " 1>&2
(test -d "${build_dir}/packages/dictionaries" && 'found' || echo 'missing' ) 1>&2
# Install packages. # Install packages.
"$AUTOBUILD" install --skip-license-check "$AUTOBUILD" install --skip-license-check
echo -n "After 'autobuild install' ${build_dir}/packages/dictionaries " 1>&2 check_for "After 'autobuild install'" ${build_dir}/packages/dictionaries
(test -d "${build_dir}/packages/dictionaries" && 'found' || echo 'missing' ) 1>&2
# Now run the build # Now run the build
succeeded=true succeeded=true
......
...@@ -8,6 +8,7 @@ if (STANDALONE) ...@@ -8,6 +8,7 @@ if (STANDALONE)
include(FindHUNSPELL) include(FindHUNSPELL)
else (STANDALONE) else (STANDALONE)
use_prebuilt_binary(libhunspell) use_prebuilt_binary(libhunspell)
use_prebuilt_binary(dictionaries)
if (WINDOWS) if (WINDOWS)
set(HUNSPELL_LIBRARY libhunspell) set(HUNSPELL_LIBRARY libhunspell)
set(HUNSPELL_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/hunspell) set(HUNSPELL_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/hunspell)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment