Exclude mapbuffer files from Mac/iOS builds

Summary:
In this diff I'm excluding mapbuffer files from Mac/iOS builds

changelog: [internal] internal

Reviewed By: javache

Differential Revision: D41309209

fbshipit-source-id: d92ae685ac05592e326ec3e046106f9a884271d6
This commit is contained in:
David Vacca 2022-11-15 12:17:18 -08:00 коммит произвёл Facebook GitHub Bot
Родитель 878b745fd6
Коммит 9ca30adff8
5 изменённых файлов: 13 добавлений и 13 удалений

Просмотреть файл

@ -8,8 +8,6 @@
#include "AccessibilityPropsMapBuffer.h"
#include "AccessibilityProps.h"
#include <react/renderer/mapbuffer/MapBufferBuilder.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,12 +7,14 @@
#pragma once
#ifdef ANDROID
#include <react/renderer/mapbuffer/MapBuffer.h>
#include <react/renderer/mapbuffer/MapBufferBuilder.h>
namespace facebook {
namespace react {
#ifdef ANDROID
constexpr MapBuffer::Key AP_ACCESSIBILITY_ACTIONS = 0;
constexpr MapBuffer::Key AP_ACCESSIBILITY_HINT = 1;
constexpr MapBuffer::Key AP_ACCESSIBILITY_LABEL = 2;
@ -27,7 +29,7 @@ constexpr MapBuffer::Key AP_IMPORTANT_FOR_ACCESSIBILITY = 19;
// AccessibilityAction values
constexpr MapBuffer::Key ACCESSIBILITY_ACTION_NAME = 0;
constexpr MapBuffer::Key ACCESSIBILITY_ACTION_LABEL = 1;
#endif
} // namespace react
} // namespace facebook
#endif

Просмотреть файл

@ -8,12 +8,11 @@
#include "PropsMapBuffer.h"
#include "Props.h"
#include <react/renderer/mapbuffer/MapBufferBuilder.h>
#ifdef ANDROID
namespace facebook {
namespace react {
#ifdef ANDROID
void Props::propsDiffMapBuffer(
Props const *oldPropsPtr,
MapBufferBuilder &builder) const {
@ -31,7 +30,7 @@ void Props::propsDiffMapBuffer(
builder.putString(PROPS_NATIVE_ID, nativeId);
}
}
#endif
} // namespace react
} // namespace facebook
#endif

Просмотреть файл

@ -10,6 +10,7 @@
#ifdef ANDROID
#include <react/renderer/mapbuffer/MapBuffer.h>
#include <react/renderer/mapbuffer/MapBufferBuilder.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -65,18 +65,18 @@ rn_xplat_cxx_library(
],
),
fbobjc_compiler_flags = APPLE_COMPILER_FLAGS,
fbobjc_exported_headers = subdir_glob(
[
("platform/ios", "*.h"),
],
prefix = "react/renderer/graphics",
),
fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(),
force_static = True,
ios_deps = [
"//xplat/js/react-native-github:RCTCxxBridge",
"//xplat/js/react-native-github:RCTImage",
],
ios_exported_headers = subdir_glob(
[
("platform/ios", "*.h"),
],
prefix = "react/renderer/graphics",
),
ios_frameworks = [
"$SDKROOT/System/Library/Frameworks/CoreGraphics.framework",
"$SDKROOT/System/Library/Frameworks/Foundation.framework",