Giter VIP home page Giter VIP logo

adbprotocol's Introduction

ADBProtocol

介绍

实现用于与Android无线调试(ADB WiFi)通信的C++库。

参考ADB官方项目:https://android.googlesource.com/platform/packages/modules/adb

编译

  1. 确保在项目根目录打开命令行终端 。
  2. 执行git submodule init
  3. 执行git submodule update
  4. 执行cmake -S . -B build
  5. 执行cmake --build build --config Release --target ALL_BUILD
  6. 编译完成。

如果你的目标是Android平台,可以使用build.bat来进行批量编译,默认编译armeabi-v7a arm64-v8a x86 x86_64四个版本,可修改脚本中的ANDROID_ABIS变量来进行更改。

脚本有三个可选参数分别为:NDK路径、最低支持SDK版本、CMake程序路径,不设置则脚本自动检测NDK_PATH与CMake工具链,如果都没有则使用脚本默认内置路径。

使用

如果你要单独使用,在编译后复制modules/ADBProtocol.h与静态库文件到项目目录里使用即可。

如果以git submodule的方式使用,在添加add_subdirectory后链接ADBProtocol即可。

例子请看:src/test/main.cc

adbprotocol's People

Contributors

bzi-han avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.