Add MLNDefines.h to make sure Metal backend is available in headers (#3363)

This commit is contained in:
Bart Louwers
2025-04-07 17:49:38 +02:00
committed by GitHub
parent bea223602a
commit d693898757
3 changed files with 18 additions and 2 deletions

View File

@@ -82,7 +82,17 @@ info_plist(
base_info_plist = "app/Info.plist",
)
genrule(
name = "mln_defines",
outs = ["MLNDefines.h"],
cmd = select({
"//:metal_renderer": "echo '#define MLN_RENDER_BACKEND_METAL 1' > $@",
"//conditions:default": "echo '' > $@",
}),
)
public_hdrs = [
":mln_defines",
":ios_public_hdrs",
":ios_sdk_hdrs",
"//platform/darwin:darwin_objc_hdrs",
@@ -123,8 +133,10 @@ apple_xcframework(
data = glob([
"resources/*.lproj/**",
"resources/*.xcassets/**",
]) + [
"PrivacyInfo.xcprivacy",
"resources/metal-cpp-ignores.txt",
]) + ["PrivacyInfo.xcprivacy"],
],
infoplists = ["info_plist"],
ios = {
"simulator": [

View File

@@ -4,6 +4,10 @@ MapLibre welcomes participation and contributions from everyone. Please read [`M
## main
## 6.12.3
- add MLNDefines.h to make sure Metal backend is available in headers ([#3335](https://github.com/maplibre/maplibre-native/issues/3335)).
## 6.12.2
- Strip punctuation from attribution ([#3287](https://github.com/maplibre/maplibre-native/pull/3287)).

View File

@@ -1 +1 @@
6.12.2
6.12.3