File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -352,6 +352,18 @@ php(
352352
353353php_gapic_repositories ()
354354
355+ # PHP micro-generator (beta)
356+
357+ http_archive (
358+ name = "gapic_generator_php" ,
359+ strip_prefix = "gapic-generator-php-1.0.0-beta01" ,
360+ urls = ["https://github.com/googleapis/gapic-generator-php/archive/v1.0.0-beta01.zip" ],
361+ )
362+
363+ load ("@gapic_generator_php//:repositories.bzl" , "gapic_generator_php_repositories" )
364+
365+ gapic_generator_php_repositories ()
366+
355367##############################################################################
356368# C#
357369##############################################################################
Original file line number Diff line number Diff line change @@ -256,6 +256,29 @@ def switched_rules_by_language(
256256 "@com_google_api_codegen//rules_gapic/php:php_gapic_pkg.bzl" ,
257257 )
258258
259+ # PHP micro-generator beta rules
260+ # Rename these micro rules and replace above monolith rules once micro-generator is GA
261+ rules ["php_proto_library2" ] = _switch (
262+ php ,
263+ "@gapic_generator_php//rules_php_gapic:php_gapic.bzl" ,
264+ "php_proto_library" ,
265+ )
266+ rules ["php_grpc_library2" ] = _switch (
267+ php and grpc ,
268+ "@gapic_generator_php//rules_php_gapic:php_gapic.bzl" ,
269+ "php_grpc_library" ,
270+ )
271+ rules ["php_gapic_library2" ] = _switch (
272+ php and grpc and gapic ,
273+ "@gapic_generator_php//rules_php_gapic:php_gapic.bzl" ,
274+ "php_gapic_library" ,
275+ )
276+ rules ["php_gapic_assembly_pkg2" ] = _switch (
277+ php and grpc and gapic ,
278+ "@gapic_generator_php//rules_php_gapic:php_gapic_pkg.bzl" ,
279+ "php_gapic_assembly_pkg" ,
280+ )
281+
259282 #
260283 # Node.js
261284 #
You can’t perform that action at this time.
0 commit comments