• Home
  • Raw
  • Download

Lines Matching refs:algo

29  set(ExternalData_URL_TEMPLATES "file:///local/%(algo)/%(hash)"
30 "file:////host/share/%(algo)/%(hash)"
31 "http://data.org/%(algo)/%(hash)")
130 original file is renamed to the form ``.ExternalData_<algo>_<hash>`` to
148 directories that store objects using the layout ``<dir>/%(algo)/%(hash)``.
183 .. variable:: ExternalData_URL_ALGO_<algo>_<key>
188 placeholders of the form ``%(algo:<key>)``, where ``<key>`` is a
190 algorithm ``<algo>``. If not defined, the default URL component
191 is just ``<algo>`` for any ``<key>``.
196 of URL templates using the placeholders ``%(algo)`` and ``%(hash)``
198 by substituting the hash algorithm name for ``%(algo)`` and the hash
199 value for ``%(hash)``. Alternatively one may use ``%(algo:<key>)``
200 with ``ExternalData_URL_ALGO_<algo>_<key>`` variables to gain more
291 %(algo) <ext> Description
323 contain the ``%(algo)`` and ``%(hash)`` placeholders.
421 if("${url_template}" MATCHES "%\\(algo:([^)]*)\\)")
425 foreach(algo ${_algos})
426 if(DEFINED ExternalData_URL_ALGO_${algo}_${key})
428 … "set(ExternalData_URL_ALGO_${algo}_${key} \"${ExternalData_URL_ALGO_${algo}_${key}}\")")
433 "Bad %(algo:${key}) in URL template:\n"
568 function(_ExternalData_compute_hash var_hash algo file)
569 if("${algo}" MATCHES "^${_ExternalData_REGEX_ALGO}$")
570 file("${algo}" "${file}" hash)
573 message(FATAL_ERROR "Hash algorithm ${algo} unimplemented.")
596 set(algo "${ExternalData_LINK_CONTENT}") variable
602 _ExternalData_compute_hash(hash "${algo}" "${name}")
604 set(staged "${dir}/.ExternalData_${algo}_${hash}")
605 string(TOLOWER ".${algo}" ext)
611 message(STATUS "Linked ${relname} to ExternalData ${algo}/${hash}")
1027 function(_ExternalData_get_from_object_store hash algo var_obj var_success)
1030 set(obj "${dir}/${algo}/${hash}")
1040 function(_ExternalData_download_object name hash algo var_obj var_success var_errorMsg)
1044 set(obj "${dir}/${algo}/${hash}")
1055 set(obj "${store}/${algo}/${hash}")
1063 string(REPLACE "%(algo)" "${algo}" url "${url_tmp}")
1064 if(url MATCHES "^(.*)%\\(algo:([A-Za-z_][A-Za-z0-9_]*)\\)(.*)$")
1068 if(DEFINED ExternalData_URL_ALGO_${algo}_${key})
1069 set(url "${lhs}${ExternalData_URL_ALGO_${algo}_${key}}${rhs}")
1071 set(url "${lhs}${algo}${rhs}")
1086 _ExternalData_compute_hash(dl_hash "${algo}" "${tmp}")
1091 string(APPEND tried " (wrong hash ${algo}=${dl_hash})")
1093 file(RENAME "${tmp}" "${store}/${algo}/${dl_hash}")
1101 set(staged "${dir}/.ExternalData_${algo}_${hash}")
1122 set("${var_errorMsg}" "Object ${algo}=${hash} not found at:${tried}" PARENT_SCOPE)
1142 set(algo ) variable
1148 string(TOUPPER "${CMAKE_MATCH_1}" algo)
1149 string(REPLACE "-" "_" algo "${algo}")
1155 list(APPEND algo_list ${algo})
1162 list(GET algo_list ${ii} algo)
1163 _ExternalData_get_from_object_store("${hash}" "${algo}" obj succeeded)
1171 list(GET algo_list ${ii} algo)
1172 _ExternalData_download_object("${name}" "${hash}" "${algo}"