Skip to content

Commit

Permalink
feat: Enable PHP micro-generator beta01
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 359620992
  • Loading branch information
Google APIs authored and Copybara-Service committed Feb 25, 2021
1 parent 80fafbc commit e41506d
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
12 changes: 12 additions & 0 deletions WORKSPACE
Expand Up @@ -352,6 +352,18 @@ php(

php_gapic_repositories()

# PHP micro-generator (beta)

http_archive(
name = "gapic_generator_php",
strip_prefix = "gapic-generator-php-1.0.0-beta01",
urls = ["https://github.com/googleapis/gapic-generator-php/archive/v1.0.0-beta01.zip"],
)

load("@gapic_generator_php//:repositories.bzl", "gapic_generator_php_repositories")

gapic_generator_php_repositories()

##############################################################################
# C#
##############################################################################
Expand Down
23 changes: 23 additions & 0 deletions repository_rules.bzl
Expand Up @@ -256,6 +256,29 @@ def switched_rules_by_language(
"@com_google_api_codegen//rules_gapic/php:php_gapic_pkg.bzl",
)

# PHP micro-generator beta rules
# Rename these micro rules and replace above monolith rules once micro-generator is GA
rules["php_proto_library2"] = _switch(
php,
"@gapic_generator_php//rules_php_gapic:php_gapic.bzl",
"php_proto_library",
)
rules["php_grpc_library2"] = _switch(
php and grpc,
"@gapic_generator_php//rules_php_gapic:php_gapic.bzl",
"php_grpc_library",
)
rules["php_gapic_library2"] = _switch(
php and grpc and gapic,
"@gapic_generator_php//rules_php_gapic:php_gapic.bzl",
"php_gapic_library",
)
rules["php_gapic_assembly_pkg2"] = _switch(
php and grpc and gapic,
"@gapic_generator_php//rules_php_gapic:php_gapic_pkg.bzl",
"php_gapic_assembly_pkg",
)

#
# Node.js
#
Expand Down

0 comments on commit e41506d

Please sign in to comment.