Skip to content

Commit

Permalink
Add toolchains libs to winapi fixups (#838)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #838

This should fix buck2 CI on Github. List of libraries is produced by winapi crate build script.

Reviewed By: bigfootjon

Differential Revision: D67985790

fbshipit-source-id: d27fde0897e621f6898023c0bc27175af8c2f4d5
  • Loading branch information
KapJI authored and facebook-github-bot committed Jan 9, 2025
1 parent 22a143e commit f49362c
Show file tree
Hide file tree
Showing 2 changed files with 174 additions and 0 deletions.
78 changes: 78 additions & 0 deletions shim/third-party/rust/fixups/winapi/fixups.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,83 @@

buildscript = []

[platform_fixup.'cfg(target_os = "windows")']
extra_deps = [
"shim//third-party/toolchains/win:advapi32.lib",
"shim//third-party/toolchains/win:avrt.lib",
"shim//third-party/toolchains/win:bcrypt.lib",
"shim//third-party/toolchains/win:bluetoothapis.lib",
"shim//third-party/toolchains/win:bthprops.lib",
"shim//third-party/toolchains/win:cfgmgr32.lib",
"shim//third-party/toolchains/win:comctl32.lib",
"shim//third-party/toolchains/win:comdlg32.lib",
"shim//third-party/toolchains/win:credui.lib",
"shim//third-party/toolchains/win:crypt32.lib",
"shim//third-party/toolchains/win:cryptnet.lib",
"shim//third-party/toolchains/win:d2d1.lib",
"shim//third-party/toolchains/win:d3d11.lib",
"shim//third-party/toolchains/win:d3d12.lib",
"shim//third-party/toolchains/win:d3d9.lib",
"shim//third-party/toolchains/win:d3dcompiler.lib",
"shim//third-party/toolchains/win:dbghelp.lib",
"shim//third-party/toolchains/win:dcomp.lib",
"shim//third-party/toolchains/win:dsound.lib",
"shim//third-party/toolchains/win:dwmapi.lib",
"shim//third-party/toolchains/win:dwrite.lib",
"shim//third-party/toolchains/win:dxgi.lib",
"shim//third-party/toolchains/win:dxva2.lib",
"shim//third-party/toolchains/win:fwpuclnt.lib",
"shim//third-party/toolchains/win:gdi32.lib",
"shim//third-party/toolchains/win:hid.lib",
"shim//third-party/toolchains/win:httpapi.lib",
"shim//third-party/toolchains/win:imm32.lib",
"shim//third-party/toolchains/win:iphlpapi.lib",
"shim//third-party/toolchains/win:kernel32.lib",
"shim//third-party/toolchains/win:ktmw32.lib",
"shim//third-party/toolchains/win:mmdevapi.lib",
"shim//third-party/toolchains/win:mpr.lib",
"shim//third-party/toolchains/win:msimg32.lib",
"shim//third-party/toolchains/win:mswsock.lib",
"shim//third-party/toolchains/win:ncrypt.lib",
"shim//third-party/toolchains/win:netapi32.lib",
"shim//third-party/toolchains/win:ntdll.lib",
"shim//third-party/toolchains/win:odbc32.lib",
"shim//third-party/toolchains/win:ole32.lib",
"shim//third-party/toolchains/win:oleaut32.lib",
"shim//third-party/toolchains/win:opengl32.lib",
"shim//third-party/toolchains/win:pdh.lib",
"shim//third-party/toolchains/win:powrprof.lib",
"shim//third-party/toolchains/win:psapi.lib",
"shim//third-party/toolchains/win:rstrtmgr.lib",
"shim//third-party/toolchains/win:runtimeobject.lib",
"shim//third-party/toolchains/win:secur32.lib",
"shim//third-party/toolchains/win:setupapi.lib",
"shim//third-party/toolchains/win:shcore.lib",
"shim//third-party/toolchains/win:shell32.lib",
"shim//third-party/toolchains/win:shlwapi.lib",
"shim//third-party/toolchains/win:sporder.lib",
"shim//third-party/toolchains/win:synchronization.lib",
"shim//third-party/toolchains/win:user32.lib",
"shim//third-party/toolchains/win:userenv.lib",
"shim//third-party/toolchains/win:usp10.lib",
"shim//third-party/toolchains/win:uxtheme.lib",
"shim//third-party/toolchains/win:version.lib",
"shim//third-party/toolchains/win:vssapi.lib",
"shim//third-party/toolchains/win:wer.lib",
"shim//third-party/toolchains/win:wevtapi.lib",
"shim//third-party/toolchains/win:windowscodecs.lib",
"shim//third-party/toolchains/win:winhttp.lib",
"shim//third-party/toolchains/win:wininet.lib",
"shim//third-party/toolchains/win:winmm.lib",
"shim//third-party/toolchains/win:winscard.lib",
"shim//third-party/toolchains/win:winspool.lib",
"shim//third-party/toolchains/win:wintrust.lib",
"shim//third-party/toolchains/win:winusb.lib",
"shim//third-party/toolchains/win:wlanapi.lib",
"shim//third-party/toolchains/win:ws2_32.lib",
"shim//third-party/toolchains/win:wtsapi32.lib",
"shim//third-party/toolchains/win:xinput.lib",
]

[[platform_fixup.'cfg(target_os = "windows")'.buildscript]]
[platform_fixup.'cfg(target_os = "windows")'.buildscript.rustc_flags]
96 changes: 96 additions & 0 deletions shim/third-party/toolchains/win/BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

oncall("open_source")

LIBS = [
"advapi32.lib",
"avrt.lib",
"bcrypt.lib",
"bluetoothapis.lib",
"bthprops.lib",
"cfgmgr32.lib",
"comctl32.lib",
"comdlg32.lib",
"credui.lib",
"crypt32.lib",
"cryptnet.lib",
"d2d1.lib",
"d3d11.lib",
"d3d12.lib",
"d3d9.lib",
"d3dcompiler.lib",
"dbghelp.lib",
"dcomp.lib",
"dsound.lib",
"dwmapi.lib",
"dwrite.lib",
"dxgi.lib",
"dxva2.lib",
"fwpuclnt.lib",
"gdi32.lib",
"hid.lib",
"httpapi.lib",
"imm32.lib",
"iphlpapi.lib",
"kernel32.lib",
"ktmw32.lib",
"mmdevapi.lib",
"mpr.lib",
"msimg32.lib",
"mswsock.lib",
"ncrypt.lib",
"netapi32.lib",
"ntdll.lib",
"odbc32.lib",
"ole32.lib",
"oleaut32.lib",
"opengl32.lib",
"pdh.lib",
"powrprof.lib",
"psapi.lib",
"rstrtmgr.lib",
"runtimeobject.lib",
"secur32.lib",
"setupapi.lib",
"shcore.lib",
"shell32.lib",
"shlwapi.lib",
"sporder.lib",
"synchronization.lib",
"user32.lib",
"userenv.lib",
"usp10.lib",
"uxtheme.lib",
"version.lib",
"vssapi.lib",
"wer.lib",
"wevtapi.lib",
"windowscodecs.lib",
"winhttp.lib",
"wininet.lib",
"winmm.lib",
"winscard.lib",
"winspool.lib",
"wintrust.lib",
"winusb.lib",
"wlanapi.lib",
"ws2_32.lib",
"wtsapi32.lib",
"xinput.lib",
]

[
prebuilt_cxx_library(
name = lib,
exported_linker_flags = [lib],
header_only = True,
target_compatible_with = ["config//os:windows"],
visibility = ["PUBLIC"],
)
for lib in LIBS
]

0 comments on commit f49362c

Please sign in to comment.