-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAndroid.bp
More file actions
78 lines (69 loc) · 2.4 KB
/
Copy pathAndroid.bp
File metadata and controls
78 lines (69 loc) · 2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// Copyright (C) 2026 The Open Intelligence Runtime Project, a JibarOS project
// Licensed under the Apache License, Version 2.0
//
// oird — OpenIntelligenceRuntime native inference worker.
// Runs as its own process (init-started) to isolate native crashes from
// system_server (DESIGN.md §4.1).
//
// Depends on libllama from external/llama.cpp (AAOSP's fork; brought in
// via local_manifests/oir.xml).
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_binary {
name: "oird",
init_rc: ["oird.rc"],
// Install to /system_ext/ instead of /system/ — A16's generic_system.mk
// reserves /system/ for the GSI approved list; oird isn't (and shouldn't
// be) on that list. system_ext is the right partition for OEM-layer
// services like this.
system_ext_specific: true,
srcs: [
"oird.cpp",
"image_decode.cpp",
"backend/llama_backend.cpp",
"backend/ort_backend.cpp",
"backend/vlm_backend.cpp",
"backend/whisper_backend.cpp",
"service/oir_service.cpp",
"common/json_util.cpp",
"pool/context_pool.cpp",
"pool/whisper_pool.cpp",
"runtime/load_registry.cpp",
"runtime/model_resource.cpp",
"runtime/runtime.cpp",
"sched/scheduler.cpp",
"tokenizer/hf_tokenizer.cpp",
"tokenizer/phoneme_loader.cpp",
"validation/ort_contract.cpp",
],
// v0.7: oird.cpp + extracted modules use #include "pool/context_pool.h"
// style include paths, rooted at this directory.
local_include_dirs: ["."],
shared_libs: [
"libbase",
"libbinder_ndk",
"liblog",
"libutils",
"libonnxruntime", // v0.4 H2/H3: ONNX Runtime for audio.synthesize + vision.detect
"libjpeg", // v0.4 H4-B: JPEG decode for vision.embed (image_decode.cpp)
"libpng", // v0.4 H4-B: PNG decode for vision.embed (image_decode.cpp)
],
static_libs: [
"libllama",
"libmtmd", // v0.5 V1: replaced libllava (PR #12849 upstream; mtmd unifies LLaVA/Moondream/MiniCPM-V)
"libwhisper",
"oir_worker_aidl-ndk", // generated by aidl_interface in services/core (NDK backend)
],
cflags: [
"-O3",
"-Wall",
"-Wextra",
"-Wno-unused-parameter",
"-DNDEBUG",
"-fexceptions",
"-frtti",
],
stl: "c++_shared",
compile_multilib: "64",
}