android 日记

https://mirrors.tuna.tsinghua.edu.cn/help/AOSP/

https://lug.ustc.edu.cn/wiki/mirrors/help/aosp/

 

CLion project generator

Soong can generate CLion projects. This is intended for source code editing only. Build should still be done via make/m/mm(a)/mmm(a).

CMakeLists.txt project file generation is enabled via environment variable:

$ export SOONG_GEN_CMAKEFILES=1
$ export SOONG_GEN_CMAKEFILES_DEBUG=1

You can then trigger a full build:

$ make -j64

or build only the project you are interested in:

$ make frameworks/native/service/libs/ui

Projects are generated in the out directory. In the case of libui, the path would be:

out/development/ide/clion/frameworks/native/libs/ui/libui-arm64-android/CMakeLists.txt

Note: The generator creates one folder per targetname-architecture-os combination. In the case of libui you endup with two projects:

$ ls out/development/ide/clion/frameworks/native/libs/ui
libui-arm64-android libui-arm-android

Edit multiple projects at once

To combine several projects into one, you can create super projects and place them in:

development/ide/clion/[PATH_YOU_WANT]/..

These file will be symbolicaly linked in out/development/ide/clion. All folders will also be created there.

An example of a super project for surfaceflinger (using libui and libgui) located in development/ide/clion/frameworks/native:

cmake_minimum_required(VERSION 3.6)
project(native)
add_subdirectory(services/surfaceflinger)
add_subdirectory(libs/ui/libui-arm64-android)
add_subdirectory(libs/gui/libgui-arm64-android)

Flattened filesystem

Upon opening a project it looks like all the folder structure has been flattened:

This is because you need to change the project root. Via Tools > CMake > Change Project Root:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值