Try to fix MSVC Buck Build (#37242)

Summary:
X-link: https://github.com/facebook/react-native/pull/37242

Pull Request resolved: https://github.com/facebook/yoga/pull/1278

Reviewed By: yungsters

Differential Revision: D45552325

fbshipit-source-id: 5687e8ec27a7a70df66e2f89e800210e3ce21ba3
This commit is contained in:
Nick Gerleman
2023-05-04 00:41:12 -07:00
committed by Facebook GitHub Bot
parent f3633a256b
commit 70153cc16c
16 changed files with 41 additions and 39 deletions

View File

@@ -130,7 +130,7 @@ root = os.path.dirname(os.path.abspath(__file__))
with open(root + "/yoga/YGEnums.h", "w") as f:
f.write(get_license("cpp"))
f.write("#pragma once\n")
f.write('#include "YGMacros.h"\n\n')
f.write("#include <yoga/YGMacros.h>\n\n")
f.write("// clang-format off\n\n\n")
f.write("YG_EXTERN_C_BEGIN\n\n")
@@ -159,7 +159,7 @@ with open(root + "/yoga/YGEnums.h", "w") as f:
# write out C body for printing
with open(root + "/yoga/YGEnums.cpp", "w") as f:
f.write(get_license("cpp"))
f.write('#include "YGEnums.h"\n\n')
f.write("#include <yoga/YGEnums.h>\n\n")
items = sorted(ENUMS.items())
for name, values in items:
f.write("const char* YG%sToString(const YG%s value) {\n" % (name, name))