Skip to content

Commit

Permalink
Exclude Android HorizontalScrollContentView cxx component code (faceb…
Browse files Browse the repository at this point in the history
…ook#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: facebook#48138

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

Reviewed By: christophpurrer

Differential Revision: D67127853

Pulled By: NickGerleman

fbshipit-source-id: 7901aa7bf62eada58d973e07e8a95e4d595c1ea5
  • Loading branch information
zhongwuzw authored and facebook-github-bot committed Dec 12, 2024
1 parent 49a594a commit 4adaacb
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4adaacb

Please sign in to comment.