@@ -151,6 +151,8 @@ def _impl(repository_ctx):
151151 _cli_bool (repository_ctx .attr .generate_module_map ),
152152 "--vendorize" ,
153153 _cli_bool (False ),
154+ "--is_dynamic_framework" ,
155+ _cli_bool (repository_ctx .attr .is_dynamic_framework ),
154156 ])
155157 substitutions [INIT_REPO_PLACEHOLDER ] = " " .join (entry )
156158 else :
@@ -209,6 +211,7 @@ pod_repo_ = repository_rule(
209211 "enable_modules" : attr .bool (default = False , mandatory = True ),
210212 "generate_module_map" : attr .bool (default = False , mandatory = True ),
211213 "header_visibility" : attr .string (),
214+ "is_dynamic_framework" : attr .bool (default = False , mandatory = False ),
212215 }
213216)
214217
@@ -227,6 +230,7 @@ def new_pod_repository(name,
227230 enable_modules = True ,
228231 generate_module_map = None ,
229232 header_visibility = "pod_support" ,
233+ is_dynamic_framework = False ,
230234 ):
231235 """Declare a repository for a Pod
232236 Args:
@@ -289,6 +293,8 @@ def new_pod_repository(name,
289293
290294 header_visibility: DEPRECATED: This is replaced by headermaps:
291295 https://github.com/bazelbuild/bazel/pull/3712
296+
297+ is_dynamic_framework: set to True if the pod uses prebuilt dynamic framework(s)
292298 """
293299 if generate_module_map == None :
294300 generate_module_map = enable_modules
@@ -316,5 +322,6 @@ def new_pod_repository(name,
316322 trace = trace ,
317323 enable_modules = enable_modules ,
318324 generate_module_map = generate_module_map ,
319- header_visibility = header_visibility
325+ header_visibility = header_visibility ,
326+ is_dynamic_framework = is_dynamic_framework ,
320327 )
0 commit comments