| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
| 6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
| 7 import("//build/toolchain/toolchain.gni") | 7 import("//build/toolchain/toolchain.gni") |
| 8 import("//components/policy/resources/policy_templates.gni") | 8 import("//components/policy/resources/policy_templates.gni") |
| 9 import("//third_party/protobuf/proto_library.gni") | 9 import("//third_party/protobuf/proto_library.gni") |
| 10 import("//tools/grit/grit_rule.gni") | 10 import("//tools/grit/grit_rule.gni") |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 # Used by targets that compile into the implementation. | 44 # Used by targets that compile into the implementation. |
| 45 config("component_implementation") { | 45 config("component_implementation") { |
| 46 defines = [ "POLICY_COMPONENT_IMPLEMENTATION" ] | 46 defines = [ "POLICY_COMPONENT_IMPLEMENTATION" ] |
| 47 } | 47 } |
| 48 | 48 |
| 49 # This protobuf is equivalent to chrome_settings.proto but shares messages | 49 # This protobuf is equivalent to chrome_settings.proto but shares messages |
| 50 # for policies of the same type, so that less classes have to be generated | 50 # for policies of the same type, so that less classes have to be generated |
| 51 # and compiled. | 51 # and compiled. |
| 52 cloud_policy_proto_path = "$target_gen_dir/proto/cloud_policy.proto" | 52 cloud_policy_proto_path = "$target_gen_dir/proto/cloud_policy.proto" |
| 53 cloud_policy_full_runtime_proto_path = |
| 54 "$target_gen_dir/proto/cloud_policy_full_runtime.proto" |
| 53 | 55 |
| 54 # This is the "full" protobuf, which defines one protobuf message per | 56 # This is the "full" protobuf, which defines one protobuf message per |
| 55 # policy. It is also the format currently used by the server. | 57 # policy. It is also the format currently used by the server. |
| 56 chrome_settings_proto_path = "$target_gen_dir/proto/chrome_settings.proto" | 58 chrome_settings_proto_path = "$target_gen_dir/proto/chrome_settings.proto" |
| 57 | 59 |
| 58 constants_header_path = "$target_gen_dir/policy_constants.h" | 60 constants_header_path = "$target_gen_dir/policy_constants.h" |
| 59 constants_source_path = "$target_gen_dir/policy_constants.cc" | 61 constants_source_path = "$target_gen_dir/policy_constants.cc" |
| 60 protobuf_decoder_path = "$target_gen_dir/cloud_policy_generated.cc" | 62 protobuf_decoder_path = "$target_gen_dir/cloud_policy_generated.cc" |
| 61 app_restrictions_path = "$target_gen_dir/app_restrictions.xml" | 63 app_restrictions_path = "$target_gen_dir/app_restrictions.xml" |
| 62 risk_tag_header_path = "$target_gen_dir/risk_tag.h" | 64 risk_tag_header_path = "$target_gen_dir/risk_tag.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 75 inputs = [ | 77 inputs = [ |
| 76 chrome_version_abspath, | 78 chrome_version_abspath, |
| 77 "resources/policy_templates.json", | 79 "resources/policy_templates.json", |
| 78 ] | 80 ] |
| 79 outputs = [ | 81 outputs = [ |
| 80 constants_header_path, | 82 constants_header_path, |
| 81 constants_source_path, | 83 constants_source_path, |
| 82 protobuf_decoder_path, | 84 protobuf_decoder_path, |
| 83 chrome_settings_proto_path, | 85 chrome_settings_proto_path, |
| 84 cloud_policy_proto_path, | 86 cloud_policy_proto_path, |
| 87 cloud_policy_full_runtime_proto_path, |
| 85 app_restrictions_path, | 88 app_restrictions_path, |
| 86 risk_tag_header_path, | 89 risk_tag_header_path, |
| 87 ] | 90 ] |
| 88 | 91 |
| 89 if (target_os != "android") { | 92 if (target_os != "android") { |
| 90 outputs -= [ app_restrictions_path ] | 93 outputs -= [ app_restrictions_path ] |
| 91 } | 94 } |
| 92 | 95 |
| 93 args = [ | 96 args = [ |
| 94 "--policy-constants-header=" + | 97 "--policy-constants-header=" + |
| 95 rebase_path(constants_header_path, root_build_dir), | 98 rebase_path(constants_header_path, root_build_dir), |
| 96 "--policy-constants-source=" + | 99 "--policy-constants-source=" + |
| 97 rebase_path(constants_source_path, root_build_dir), | 100 rebase_path(constants_source_path, root_build_dir), |
| 98 "--chrome-settings-protobuf=" + | 101 "--chrome-settings-protobuf=" + |
| 99 rebase_path(chrome_settings_proto_path, root_build_dir), | 102 rebase_path(chrome_settings_proto_path, root_build_dir), |
| 100 "--cloud-policy-protobuf=" + | 103 "--cloud-policy-protobuf=" + |
| 101 rebase_path(cloud_policy_proto_path, root_build_dir), | 104 rebase_path(cloud_policy_proto_path, root_build_dir), |
| 105 "--cloud-policy-full-runtime-protobuf=" + |
| 106 rebase_path(cloud_policy_full_runtime_proto_path, root_build_dir), |
| 102 "--cloud-policy-decoder=" + | 107 "--cloud-policy-decoder=" + |
| 103 rebase_path(protobuf_decoder_path, root_build_dir), | 108 rebase_path(protobuf_decoder_path, root_build_dir), |
| 104 "--app-restrictions-definition=" + | 109 "--app-restrictions-definition=" + |
| 105 rebase_path(app_restrictions_path, root_build_dir), | 110 rebase_path(app_restrictions_path, root_build_dir), |
| 106 "--risk-tag-header=" + rebase_path(risk_tag_header_path, root_build_dir), | 111 "--risk-tag-header=" + rebase_path(risk_tag_header_path, root_build_dir), |
| 107 chrome_version_path, | 112 chrome_version_path, |
| 108 target_os, | 113 target_os, |
| 109 chromeos_flag, | 114 chromeos_flag, |
| 110 rebase_path("resources/policy_templates.json", root_build_dir), | 115 rebase_path("resources/policy_templates.json", root_build_dir), |
| 111 ] | 116 ] |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 ] + grit_defines | 389 ] + grit_defines |
| 385 if (is_chrome_branded) { | 390 if (is_chrome_branded) { |
| 386 args += [ "--include_google_admx" ] | 391 args += [ "--include_google_admx" ] |
| 387 } | 392 } |
| 388 deps = [ | 393 deps = [ |
| 389 ":add_version", | 394 ":add_version", |
| 390 ":policy_templates", | 395 ":policy_templates", |
| 391 ] | 396 ] |
| 392 } | 397 } |
| 393 } | 398 } |
| OLD | NEW |