mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
49a594a513
commit
4adaacb4f7
@@ -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
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user