中国优质的IT技术网站
专业IT技术创作平台
IT职业在线教育平台
├── build │ ├── BUILD.gn │ └── libbehaviortree.so //第三方so文件 ├── BUILD.gn ├── bundle.json ├── include │ ├── impl_utils.h │ ├── single_instance.h │ ├── task_behavior.h │ ├── task_executor.h │ ├── task.h │ └── util.h └── src ├── task.cpp ├── task_executor.cpp └── task_test.cpp
动态库路径 build/libbehaviortree.so
动态库配置build/BUILD.gn
import("//build/ohos.gni") ohos_prebuilt_shared_library("behavior_tree_lib") { source = "./libbehaviortree.so" install_enable = true subsystem_name = "applications" part_name = "task_thread" }
import("//build/ohos.gni") config("task_thread_config") { cflags_cc = [ "-frtti", "-fexceptions", ] } ohos_executable("task_thread") { sources = [ "src/task_test.cpp", "src/task_executor.cpp", "src/task.cpp", ] configs = [":task_thread_config"] include_dirs = [ "include", "//third_party/BehaviorTree.CPP/include" ] deps = ["//applications/task/build:behavior_tree_lib"] part_name = "task_thread" subsystem_name = "applications" }
{ "name": "@ohos/task_thread", "description": "The repository contains the Abseil C++ library code. Abseil is an open-source collection of C++ code (compliant to C++11) designed to augment the C++ standard library.", "version": "3.1", "license": "Apache V2", "publishAs": "code-segment", "segment": { "destPath": "applications/task" }, "dirs": {}, "scripts": {}, "component": { "name": "task_thread", "subsystem": "applications", "syscap": [], "features": [], "adapted_system_type": [], "rom": "", "ram": "", "deps": { "components": [ ], "third_party": [] }, "build": { "sub_component": [ "//applications/task:task_thread", "//applications/task/build:behavior_tree_lib" ], "inner_kits": [ ], "test": [] } } }
./build.sh --product-name rk3568 --ccache --build-target task_thread
微信扫码分享
最好提交个仓库,不然无法实验或者测试
最好提交个仓库,不然无法实验或者测试