From 9f465ea0ffa3f47da8098054b92c8bdd2ae05c76 Mon Sep 17 00:00:00 2001 From: Christoph Purrer Date: Wed, 12 Oct 2022 03:48:36 -0700 Subject: [PATCH] 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 --- packages/react-native-codegen/DEFS.bzl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-native-codegen/DEFS.bzl b/packages/react-native-codegen/DEFS.bzl index b72c04b1866..48201e82d06 100644 --- a/packages/react-native-codegen/DEFS.bzl +++ b/packages/react-native-codegen/DEFS.bzl @@ -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"], )