Skip to content

Commit

Permalink
Make react-native-codegen work on Windows within BUCK
Browse files Browse the repository at this point in the history
Summary:
Changelog
[General][Internal] - Make react-native-codegen work on Windows within BUCK

This makes react-native code-gen work on Windows - by basically filling in some necessary windows commands for the existing bash/shell ones

Reviewed By: cortinico, cipolleschi

Differential Revision: D40268750

fbshipit-source-id: 0db7597999ec8108babf56abed436f6dc7789cce
  • Loading branch information
christophpurrer authored and facebook-github-bot committed Oct 12, 2022
1 parent 32fc551 commit 9f465ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-native-codegen/DEFS.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -536,13 +536,15 @@ def rn_codegen_cxx_modules(
fb_native.genrule(
name = generate_module_h_name,
cmd = "cp $(location :{})/{}JSI.h $OUT".format(generate_fixtures_rule_name, name),
cmd_exe = "copy $(location :{})\\{}JSI.h $OUT".format(generate_fixtures_rule_name, name),
out = "{}JSI.h".format(name),
labels = ["codegen_rule"],
)

fb_native.genrule(
name = generate_module_cpp_name,
cmd = "cp $(location :{})/{}JSI-generated.cpp $OUT".format(generate_fixtures_rule_name, name),
cmd_exe = "copy $(location :{})\\{}JSI-generated.cpp $OUT".format(generate_fixtures_rule_name, name),
out = "{}JSI-generated.cpp".format(name),
labels = ["codegen_rule"],
)
Expand Down

0 comments on commit 9f465ea

Please sign in to comment.