[K/N] Add objcClassesIncludingCategories cinterop property
It allows to list Objective-C classes that should include corresponding categories from the same file. The current implementation is super-simple and slow, but it is OK since it is not intended to be a general-purpose solution for now.
This commit is contained in:
committed by
Space Team
parent
ab205edeab
commit
2f0bdfc5e2
+3
-1
@@ -568,6 +568,7 @@ internal fun buildNativeLibrary(
|
||||
|
||||
val headerExclusionPolicy = HeaderExclusionPolicyImpl(imports)
|
||||
|
||||
val objCClassesIncludingCategories = def.config.objcClassesIncludingCategories.toSet()
|
||||
return NativeLibrary(
|
||||
includes = includes,
|
||||
additionalPreambleLines = compilation.additionalPreambleLines,
|
||||
@@ -576,7 +577,8 @@ internal fun buildNativeLibrary(
|
||||
language = compilation.language,
|
||||
excludeSystemLibs = excludeSystemLibs,
|
||||
headerExclusionPolicy = headerExclusionPolicy,
|
||||
headerFilter = headerFilter
|
||||
headerFilter = headerFilter,
|
||||
objCClassesIncludingCategories = objCClassesIncludingCategories
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user