<<$srcs := getSources .M>> <<$includeDirs := getIncludeDirs .Ctx .M>> <<$cflags := (getCompilerProperties .M).Cflags>> <<$deps := mapLibraries (concat5 (getLinkerProperties .M).Whole_static_libs (getLinkerProperties .M).Static_libs (getLinkerProperties .M).Shared_libs (getLinkerProperties .M).Header_libs (getExtraLibs .M) ) .Pprop.LibraryMapping>> # <<.M.Name>> <> <> add_<>(<<.M.Name>> ${<<.M.Name>>_SRCS}) <<- else>> add_<>(<<.M.Name>> INTERFACE) <<- end>> add_<>(android::<<.M.Name>> ALIAS <<.M.Name>>) <> <<- if $includeDirs>> <> target_include_directories(<<.M.Name>> <>PUBLIC<>INTERFACE<> ${<<.M.Name>>_INCLUDES}) <> <<- if and $srcs $cflags>> <> target_compile_options(<<.M.Name>> PRIVATE ${<<.M.Name>>_CFLAGS}) <> <<- if $deps>> <> target_link_libraries(<<.M.Name>> <>INTERFACE <> ${<<.M.Name>>_DEPENDENCIES}) <>