mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Make react-native-codegen work on Windows within BUCK
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
This commit is contained in:
committed by
Facebook GitHub Bot
parent
32fc551c55
commit
9f465ea0ff
@@ -536,6 +536,7 @@ 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"],
|
||||
)
|
||||
@@ -543,6 +544,7 @@ def rn_codegen_cxx_modules(
|
||||
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"],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user