| 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("//components/policy/resources/policy_templates.gni") | 7 import("//components/policy/resources/policy_templates.gni") |
| 8 import("//third_party/protobuf/proto_library.gni") | 8 import("//third_party/protobuf/proto_library.gni") |
| 9 import("//tools/grit/grit_rule.gni") | 9 import("//tools/grit/grit_rule.gni") |
| 10 | 10 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 constants_header_path = "$policy_gen_dir/policy_constants.h" | 75 constants_header_path = "$policy_gen_dir/policy_constants.h" |
| 76 constants_source_path = "$policy_gen_dir/policy_constants.cc" | 76 constants_source_path = "$policy_gen_dir/policy_constants.cc" |
| 77 protobuf_decoder_path = "$policy_gen_dir/cloud_policy_generated.cc" | 77 protobuf_decoder_path = "$policy_gen_dir/cloud_policy_generated.cc" |
| 78 app_restrictions_path = "$policy_gen_dir/app_restrictions.xml" | 78 app_restrictions_path = "$policy_gen_dir/app_restrictions.xml" |
| 79 | 79 |
| 80 action("cloud_policy_code_generate") { | 80 action("cloud_policy_code_generate") { |
| 81 script = "tools/generate_policy_source.py" | 81 script = "tools/generate_policy_source.py" |
| 82 chrome_version_abspath = "//chrome/VERSION" | 82 chrome_version_abspath = "//chrome/VERSION" |
| 83 chrome_version_path = rebase_path(chrome_version_abspath, root_build_dir) | 83 chrome_version_path = rebase_path(chrome_version_abspath, root_build_dir) |
| 84 | 84 |
| 85 if (is_chromeos) { | 85 if (is_chromeos_ui) { |
| 86 chromeos_flag = "1" | 86 chromeos_flag = "1" |
| 87 } else { | 87 } else { |
| 88 chromeos_flag = "0" | 88 chromeos_flag = "0" |
| 89 } | 89 } |
| 90 | 90 |
| 91 inputs = [ | 91 inputs = [ |
| 92 chrome_version_abspath, | 92 chrome_version_abspath, |
| 93 "resources/policy_templates.json", | 93 "resources/policy_templates.json", |
| 94 ] | 94 ] |
| 95 outputs = [ | 95 outputs = [ |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 "core/common/policy_test_utils.cc", | 252 "core/common/policy_test_utils.cc", |
| 253 "core/common/policy_test_utils.h", | 253 "core/common/policy_test_utils.h", |
| 254 "core/common/preferences_mock_mac.cc", | 254 "core/common/preferences_mock_mac.cc", |
| 255 "core/common/preferences_mock_mac.h", | 255 "core/common/preferences_mock_mac.h", |
| 256 "core/common/remote_commands/test_remote_command_job.cc", | 256 "core/common/remote_commands/test_remote_command_job.cc", |
| 257 "core/common/remote_commands/test_remote_command_job.h", | 257 "core/common/remote_commands/test_remote_command_job.h", |
| 258 "core/common/remote_commands/testing_remote_commands_server.cc", | 258 "core/common/remote_commands/testing_remote_commands_server.cc", |
| 259 "core/common/remote_commands/testing_remote_commands_server.h", | 259 "core/common/remote_commands/testing_remote_commands_server.h", |
| 260 ] | 260 ] |
| 261 | 261 |
| 262 if (is_chromeos) { | 262 if (is_chromeos_ui) { |
| 263 sources -= [ | 263 sources -= [ |
| 264 "core/common/cloud/mock_user_cloud_policy_store.cc", | 264 "core/common/cloud/mock_user_cloud_policy_store.cc", |
| 265 "core/common/cloud/mock_user_cloud_policy_store.h", | 265 "core/common/cloud/mock_user_cloud_policy_store.h", |
| 266 ] | 266 ] |
| 267 } | 267 } |
| 268 | 268 |
| 269 deps = [ | 269 deps = [ |
| 270 ":policy_component", | 270 ":policy_component", |
| 271 ":test_support", | 271 ":test_support", |
| 272 "//components/policy/proto", | 272 "//components/policy/proto", |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 | 332 |
| 333 group("app_restrictions_resources") { | 333 group("app_restrictions_resources") { |
| 334 deps = [ | 334 deps = [ |
| 335 ":$build_config_target_name", | 335 ":$build_config_target_name", |
| 336 ":$zip_target_name", | 336 ":$zip_target_name", |
| 337 ] | 337 ] |
| 338 } | 338 } |
| 339 } | 339 } |
| 340 } | 340 } |
| 341 #TODO(GYP) chrome_manifest_bundle | 341 #TODO(GYP) chrome_manifest_bundle |
| OLD | NEW |