Note that aidl-cpp will import headers for types used in the interface. For imported types (e.g. parcelables and interfaces), it will import a header corresponding to the package/class name of the import. For instance, import bar.IAnotherInterface causes aidl-cpp to generate #include <bar/...
if (language == Options::Language::CPP) { HeaderVisitor validator; validator.str = "cpp_header"; validator.getHeader = &AidlParcelable::GetCppHeader; VisitTopDown(validator, doc); return validator.success; } else if (language == Options::Language::NDK) { HeaderVisitor validator;...
Note that aidl-cpp will import headers for types used in the interface. For imported types (e.g. parcelables and interfaces), it will import a header corresponding to the package/class name of the import. For instance, import bar.IAnotherInterface causes aidl-cpp to generate #include <bar/...
()); return true; } bool write_cpp_dep_file(const CppOptions& options, const AidlInterface& interface, const vector<unique_ptr<AidlImport>>& imports, const IoDelegate& io_delegate) { using ::android::aidl::cpp::HeaderFile; using ::android::aidl::cpp::ClassNames; string dep_file_name...
My Android.mk: > LOCAL_PATH := $(call my-dir) > $(call emugl-begin-shared-library,libMyModule) > LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/aidl > LOCAL_SRC_FILES := \ aidl/com/my/package/IMyInterface.aidl \ > Proxy.cpp \ > > LOCAL_HEADER_LIBRARIES := libbinder_headers \ > lib...
- java-constants : (内部) 类似于export-header,但是针对Java(如果存在@export,则-Lmakefile总是创建)。 - vts : (内部) 生成vts proto文件,用于在vtsd中使用。 - makefile : (已移除) 用于为-Ljava和-Ljava-constants生成makefile。 - androidbp : (内部) 生成Soong bp文件,用于-Lc++-headers、-...
@JavaOnlyStableParcelable@NdkOnlyStableParcelableparcelableSurfacecpp_header"gui/view/Surface.h"ndk_header"android/native_window_aidl.h"; 18 changes: 18 additions & 0 deletions18libs/gui/include/gui/Surface.h Original file line numberDiff line numberDiff line change ...
"aidl_checkapi.cpp", "aidl_const_expressions.cpp", "aidl_language.cpp", "aidl_language_l.ll", "aidl_language_y.yy", "aidl_typenames.cpp", "aidl_to_cpp.cpp", "aidl_to_java.cpp", "aidl_to_ndk.cpp", "aidl_to_rust.cpp", "ast_cpp.cpp", "ast_java.cpp", ...
Android studio 的gradle3.0版本以下可以配置NDK编译c/cpp文件: 修改对应模块的build.gradle在defaultConfig中添加: //gradle3.0以上已经不支持该方式ndk { moduleName"libRemoteServiceJNI"//指定生成的so文件名ldLibs"log","z","m"//添加log库abiFilters"armeabi","armeabi-v7a","x86"//支持cpu的类型} ...
parcelable UidRange cpp_header "binder/android/net/UidRange.h";/sprdroid9.0_trunk/system/netd/...