• Home
  • Raw
  • Download

Lines Matching +full:ndk +full:- +full:path

1 #!/usr/bin/env -S python3 -B
9 # http://www.apache.org/licenses/LICENSE-2.0
21 each function in the allowlist, it generates the NDK headers, and shim functions
26 http://icu-project.org/apiref/icu4c/files.html
36 from pathlib import Path
50 # No suffix for ndk shim
78 """Return the replacement string adding the NDK C macro
94 # Remove all non-stable function declarations
154 dest_path = base_dest_path + os.path.basename(src_path)
166 if os.path.exists(dst_folder):
169 os.mkdir(os.path.join(dst_folder, 'unicode'))
181 path = android_path('external/icu/icu4c/source', subfolder)
182 files = [os.path.join(path, f) for f in os.listdir(path) if f.endswith('.h')]
185 base_header_name = os.path.basename(src_path)
188 dst_path = os.path.join(dst_path, 'unicode')
189 dst_path = os.path.join(dst_path, base_header_name)
202 # Disable all C macro renaming the NDK functions in order to test the functions in the CTS
224 "uconfig.h", # pre-defined config that NDK users shouldn't change
225 "platform.h", # pre-defined variable not to be changed by the NDK users
227 "uvernum.h", # ICU version information not useful for version-independent usage in NDK
228 "urename.h" # Renaming symbols, but not used in NDK
233 This is needed because NDK doesn't allow per-module Doxyfile,
247 """Add @addtogroup annotation to the header files for NDK API docs"""
248 path = android_path('external/icu/libicu/ndk_headers/unicode')
249 files = Path(path).glob("*.h")
259 if os.path.basename(src_path) in IGNORED_HEADER_FOR_DOXYGEN_GROUPING:
263 '-i',
272 basename = os.path.basename(src_path)
280 def has_string_in_file(path, s): argument
282 with open(path, 'r') as file:
285 def get_exported_symbol_map(export_file : str) -> Dict[str, str]:
289 with open(os.path.join(THIS_DIR, export_file), 'r') as file:
322 if os.path.exists(headers_folder):
336 # Process the C headers and put them into the ndk folder.
338 basename = os.path.basename(src_path)
339 dst_path = os.path.join(headers_folder, basename)