[Native] Adapt Skia interop to ClangArgs refactoring.
This commit is contained in:
@@ -57,7 +57,6 @@ externalStdlibTestsDir.mkdirs()
|
||||
|
||||
ext.platformManager = project.project(":kotlin-native").platformManager
|
||||
ext.target = platformManager.targetManager(project.testTarget).target
|
||||
ext.llvmHome = platformManager.platform(target).configurables.absoluteLlvmHome
|
||||
|
||||
ext.testLibraryDir = "${ext.testOutputRoot}/klib/platform/${project.target.name}"
|
||||
|
||||
@@ -3825,26 +3824,14 @@ createInterop("leakMemoryWithRunningThread") {
|
||||
}
|
||||
|
||||
createInterop("cppClass") {
|
||||
if (isAppleTarget(project)) {
|
||||
// TODO: For cpp we need a header with `new`.
|
||||
it.extraOpts "-compiler-option", "-I$llvmHome/include/c++/v1"
|
||||
}
|
||||
it.defFile 'interop/cpp/cppClass.def'
|
||||
}
|
||||
|
||||
createInterop("cppTypes") {
|
||||
if (isAppleTarget(project)) {
|
||||
// TODO: For cpp we need a header with `new`.
|
||||
it.extraOpts "-compiler-option", "-I$llvmHome/include/c++/v1"
|
||||
}
|
||||
it.defFile 'interop/cpp/types.def'
|
||||
}
|
||||
|
||||
createInterop("cppSkia") {
|
||||
if (PlatformInfo.isMac()) {
|
||||
// TODO: For cpp we need a header with `new`.
|
||||
it.extraOpts "-compiler-option", "-I$llvmHome/include/c++/v1"
|
||||
}
|
||||
it.defFile 'interop/cpp/skia.def'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user