liyujie
2025-08-28 786ff4f4ca2374bdd9177f2e24b503d43e7a3b93
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
cc_defaults {
    name: "libxcam_defaults",
 
    cflags: [
        // XCam Version Num 1.1.0
        "-DXCAM_VERSION=0x110",
 
        "-fPIC",
        "-W",
        "-Wall",
        "-D_REENTRANT",
        "-Wformat",
        "-Wno-unused-parameter",
        "-Wformat-security",
        "-fstack-protector",
        "-DANDROID",
    ],
 
    local_include_dirs: [
        "xcore",
        "modules",
    ],
}
 
// For libxcam
// =================================================
cc_library_shared {
    name: "libxcam",
    defaults: ["libxcam_defaults"],
 
    srcs: [
        "xcore/buffer_pool.cpp",
        "xcore/calibration_parser.cpp",
        "xcore/file_handle.cpp",
        "xcore/image_file_handle.cpp",
        "xcore/image_handler.cpp",
        "xcore/surview_fisheye_dewarp.cpp",
        "xcore/thread_pool.cpp",
        "xcore/video_buffer.cpp",
        "xcore/worker.cpp",
        "xcore/xcam_buffer.cpp",
        "xcore/xcam_common.cpp",
        "xcore/xcam_thread.cpp",
        "xcore/xcam_utils.cpp",
        "xcore/interface/blender.cpp",
        "xcore/interface/feature_match.cpp",
        "xcore/interface/geo_mapper.cpp",
        "xcore/interface/stitcher.cpp",
 
        "modules/soft/soft_blender.cpp",
        "modules/soft/soft_blender_tasks_priv.cpp",
        "modules/soft/soft_copy_task.cpp",
        "modules/soft/soft_geo_mapper.cpp",
        "modules/soft/soft_geo_tasks_priv.cpp",
        "modules/soft/soft_handler.cpp",
        "modules/soft/soft_stitcher.cpp",
        "modules/soft/soft_video_buf_allocator.cpp",
        "modules/soft/soft_worker.cpp",
    ],
 
    rtti: true,
}
 
// For test-soft-image
// =================================================
cc_test {
    name: "test-soft-image",
    defaults: ["libxcam_defaults"],
 
    gtest: false,
    srcs: ["tests/test-soft-image.cpp"],
    shared_libs: ["libxcam"],
 
    local_include_dirs: ["tests"],
}