112 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			112 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
| load("@rules_erlang//:erlang_bytecode2.bzl", "erlang_bytecode", "erlc_opts")
 | |
| load("@rules_erlang//:erlang_app.bzl", "erlang_app")
 | |
| 
 | |
| erlc_opts(
 | |
|     name = "erlc_opts",
 | |
|     values = select({
 | |
|         "@rules_erlang//:debug_build": [
 | |
|             "+debug_info",
 | |
|         ],
 | |
|         "//conditions:default": [
 | |
|             "+debug_info",
 | |
|             "+deterministic",
 | |
|         ],
 | |
|     }),
 | |
|     visibility = [":__subpackages__"],
 | |
| )
 | |
| 
 | |
| erlang_bytecode(
 | |
|     name = "other_beam",
 | |
|     srcs = [
 | |
|         "src/credentials_obfuscation.erl",
 | |
|         "src/credentials_obfuscation_app.erl",
 | |
|         "src/credentials_obfuscation_pbe.erl",
 | |
|         "src/credentials_obfuscation_sup.erl",
 | |
|         "src/credentials_obfuscation_svc.erl",
 | |
|     ],
 | |
|     hdrs = [":public_and_private_hdrs"],
 | |
|     app_name = "credentials_obfuscation",
 | |
|     dest = "ebin",
 | |
|     erlc_opts = "//:erlc_opts",
 | |
| )
 | |
| 
 | |
| filegroup(
 | |
|     name = "beam_files",
 | |
|     srcs = [":other_beam"],
 | |
| )
 | |
| 
 | |
| filegroup(
 | |
|     name = "srcs",
 | |
|     srcs = [
 | |
|         "src/credentials_obfuscation.app.src",
 | |
|         "src/credentials_obfuscation.erl",
 | |
|         "src/credentials_obfuscation_app.erl",
 | |
|         "src/credentials_obfuscation_pbe.erl",
 | |
|         "src/credentials_obfuscation_sup.erl",
 | |
|         "src/credentials_obfuscation_svc.erl",
 | |
|     ],
 | |
| )
 | |
| 
 | |
| filegroup(name = "private_hdrs")
 | |
| 
 | |
| filegroup(
 | |
|     name = "public_hdrs",
 | |
|     srcs = [
 | |
|         "include/credentials_obfuscation.hrl",
 | |
|         "include/otp_crypto.hrl",
 | |
|     ],
 | |
| )
 | |
| 
 | |
| filegroup(name = "priv")
 | |
| 
 | |
| filegroup(
 | |
|     name = "licenses",
 | |
|     srcs = [
 | |
|         "LICENSE",
 | |
|         "LICENSE-APACHE2",
 | |
|         "LICENSE-MPL-RabbitMQ",
 | |
|     ],
 | |
| )
 | |
| 
 | |
| filegroup(
 | |
|     name = "public_and_private_hdrs",
 | |
|     srcs = [
 | |
|         ":private_hdrs",
 | |
|         ":public_hdrs",
 | |
|     ],
 | |
| )
 | |
| 
 | |
| filegroup(
 | |
|     name = "all_srcs",
 | |
|     srcs = [
 | |
|         ":public_and_private_hdrs",
 | |
|         ":srcs",
 | |
|     ],
 | |
| )
 | |
| 
 | |
| erlang_app(
 | |
|     name = "erlang_app",
 | |
|     srcs = [":all_srcs"],
 | |
|     hdrs = [":public_hdrs"],
 | |
|     app_name = "credentials_obfuscation",
 | |
|     beam_files = [":beam_files"],
 | |
|     extra_apps = ["crypto"],
 | |
|     license_files = [":license_files"],
 | |
|     priv = [":priv"],
 | |
| )
 | |
| 
 | |
| alias(
 | |
|     name = "credentials_obfuscation",
 | |
|     actual = ":erlang_app",
 | |
|     visibility = ["//visibility:public"],
 | |
| )
 | |
| 
 | |
| filegroup(
 | |
|     name = "license_files",
 | |
|     srcs = [
 | |
|         "LICENSE",
 | |
|         "LICENSE-APACHE2",
 | |
|         "LICENSE-MPL-RabbitMQ",
 | |
|     ],
 | |
| )
 |