# ap_components **Repository Path**: forai/ap_components ## Basic Information - **Project Name**: ap_components - **Description**: 天元OS-AP组件静态代码 - **Primary Language**: C++ - **License**: MulanPubL-2.0 - **Default Branch**: develop - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 19 - **Created**: 2026-03-20 - **Last Updated**: 2026-03-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ap_components #### 目录结构介绍 - ap - coretypes 基础类型模块代码 - depfiles 为开源的依赖文件及库文件 - lt 日志模块代码 - Makefile 模块编译文件 - per 存储模块代码 - README.txt 说明文件 - thirdparty 依赖的第三方库代码 - tool SDK编译及单元测试脚本目录 - usr SDK编译打包生成的目录 #### SDK编译 (x86_64 GNU/Linux): 1. 进入 ap/tool/linux/ 2. 执行 ./caic_ap_make.sh --build_type=Release --build_targets=lt,per,coretypes 3. 生成SDK在 ap/usr目录 #### 单元测试: 1. 进入 ap/tool/linux/ 2. 执行 ./linux_ut.sh lt 日志模块的单元测试 3. 执行 ./linux_ut.sh per 存储模块的单元测试 4. 执行 ./linux_ut.sh coretypes 基础类型模块的单元测试 #### Demo集成测试: coretypes基础类型模块都是基础类型,由单元测试保证,不进行集成测试。 日志模块集成测试: 1. 进入 ap/lt/build 2. 执行 cmake -DARA_ENABLE_INTEGRATION_TESTS=ON -DCMAKE_INSTALL_PREFIX=XXX/ap/usr .. (XXX为ap所在绝对路径) 3. 执行 make 4. 进入 ap/lt/integration_test 5. 执行 ./run_integration_test.sh 集成测试命令 存储模块集成测试: 1. 进入 ap/per/build 2. 执行 cmake -DARA_ENABLE_INTEGRATION_TESTS=ON -DCMAKE_INSTALL_PREFIX=XXX/ap/usr .. (XXX为ap所在绝对路径) 3. 执行 make 4. 进入 ap/per/integration_test 5. 执行 ./run_integration_test.sh 集成测试命令