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:
Rick Hanlon
2019-03-13 06:22:11 -07:00
committed by Facebook Github Bot
parent 7e9e6c1ce5
commit ed5ed23deb
2 changed files with 2 additions and 2 deletions

View File

@@ -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",
],
)

View File

@@ -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",
],
)