Skip to content

Commit 2534e75

Browse files
navidqarfacebook-github-bot
authored andcommitted
Add support for third-party deps of type exe
Summary: In the next diff we need to download `.exe` files from maven. This diffs adds support for it. Reviewed By: jselbo Differential Revision: D72977919 fbshipit-source-id: c5fa60993f9eb5af1b3e9b2282a582c02d30c92c
1 parent dd31774 commit 2534e75

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

prelude/toolchains/android/tools/build_rules.bzl

+21
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,12 @@ def _oss_remote_file_with_wrapper(name, ext, url, sha1, **kwargs):
160160
aar = ":" + remote_file_target_name,
161161
**kwargs
162162
)
163+
elif ext == "exe":
164+
fb_native.alias(
165+
name = name,
166+
actual = ":" + remote_file_target_name,
167+
**kwargs
168+
)
163169

164170
fb_native.remote_file(
165171
name = remote_file_target_name,
@@ -213,6 +219,21 @@ def third_party_aar(
213219
**kwargs
214220
)
215221

222+
def third_party_exe(
223+
name,
224+
url,
225+
sha1,
226+
# @oss-disable[end= ]: internal_alias,
227+
**kwargs):
228+
return _buck_remote_file_with_wrapper(
229+
name,
230+
"exe",
231+
url,
232+
sha1,
233+
# @oss-disable[end= ]: internal_alias,
234+
**kwargs
235+
)
236+
216237
def buck_prebuilt_jar(name, **kwargs):
217238
return toolchain_prebuilt_jar(name = name, **kwargs)
218239

0 commit comments

Comments
 (0)