mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-06 22:37:14 +08:00
Move codegen to rn_library
Summary: Moves rn_codgen to rn_library behind a `codegen` flag to limit the number of rules we generate WIth this, modules with native components can enable the react-native-codegen schema parsing by just updating their buck rule to: ``` rn_library( name = 'lib', codegen = True, // ... ) ``` Reviewed By: TheSavior Differential Revision: D14401263 fbshipit-source-id: 1675bc28389db64da10153c988bb4eb00d715056
This commit is contained in:
committed by
Facebook Github Bot
parent
7e9e6c1ce5
commit
ed5ed23deb
@@ -91,7 +91,7 @@ rn_xplat_cxx_library(
|
||||
react_native_xplat_target("fabric/graphics:graphics"),
|
||||
react_native_xplat_target("fabric/imagemanager:imagemanager"),
|
||||
react_native_xplat_target("fabric/uimanager:uimanager"),
|
||||
"fbsource//xplat/js:generated_components-rncore",
|
||||
"fbsource//xplat/js/react-native-github:generated_components-rncore",
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
@@ -89,6 +89,6 @@ fb_xplat_cxx_test(
|
||||
react_native_xplat_target("fabric/components/scrollview:scrollview"),
|
||||
react_native_xplat_target("fabric/components/text:text"),
|
||||
react_native_xplat_target("fabric/components/view:view"),
|
||||
"fbsource//xplat/js:generated_components-rncore",
|
||||
"fbsource//xplat/js/react-native-github:generated_components-rncore",
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user