Exclude Android HorizontalScrollContentView cxx component code (#48138)

Summary:
Exclude Android HorizontalScrollContentView cxx component code, iOS don't need it. cc NickGerleman can you help to review? :)

## Changelog:

[IOS] [FIXED] - Exclude Android HorizontalScrollContentView cxx component code

Pull Request resolved: https://github.com/facebook/react-native/pull/48138

Test Plan: iOS don't include any Android HorizontalScrollContentView code.

Reviewed By: christophpurrer

Differential Revision: D67127853

Pulled By: NickGerleman

fbshipit-source-id: 7901aa7bf62eada58d973e07e8a95e4d595c1ea5
This commit is contained in:
zhongwuzw
2024-12-12 14:50:59 -08:00
committed by Facebook GitHub Bot
parent 49a594a513
commit 4adaacb4f7
5 changed files with 3 additions and 4 deletions
@@ -136,8 +136,7 @@ Pod::Spec.new do |s|
ss.subspec "scrollview" do |sss|
sss.dependency folly_dep_name, folly_version
sss.compiler_flags = folly_compiler_flags
sss.source_files = "react/renderer/components/scrollview/**/*.{m,mm,cpp,h}"
sss.exclude_files = "react/renderer/components/scrollview/tests"
sss.source_files = "react/renderer/components/scrollview/*.{m,mm,cpp,h}"
sss.header_dir = "react/renderer/components/scrollview"
end
@@ -14,10 +14,10 @@ add_compile_options(
-Wpedantic
-DLOG_TAG=\"Fabric\")
file(GLOB rrc_scrollview_SRC CONFIGURE_DEPENDS *.cpp)
file(GLOB rrc_scrollview_SRC CONFIGURE_DEPENDS *.cpp platform/android/react/renderer/components/scrollview/*.cpp)
add_library(rrc_scrollview STATIC ${rrc_scrollview_SRC})
target_include_directories(rrc_scrollview PUBLIC ${REACT_COMMON_DIR})
target_include_directories(rrc_scrollview PUBLIC ${REACT_COMMON_DIR} . ${CMAKE_CURRENT_SOURCE_DIR}/platform/android/)
target_link_libraries(rrc_scrollview
glog