Index: chrome/chrome_browser.gypi |
diff --git a/chrome/chrome_browser.gypi b/chrome/chrome_browser.gypi |
index 3239ab1807e0b6d79b14fe186cd889407313c425..ad8279a0f114a5d93cb93e41f5d5e08d6aa5c5e9 100644 |
--- a/chrome/chrome_browser.gypi |
+++ b/chrome/chrome_browser.gypi |
@@ -16,6 +16,7 @@ |
'chrome_strings', |
'component_extensions', |
'debugger', |
+ 'device_management_backend_proto', |
'installer_util', |
'platform_locale_settings', |
'profile_import', |
@@ -2391,9 +2392,18 @@ |
'browser/policy/configuration_policy_provider_win.cc', |
'browser/policy/configuration_policy_provider_win.h', |
'browser/policy/configuration_policy_store.h', |
+ 'browser/policy/device_management_backend.h', |
+ 'browser/policy/device_token_fetcher.cc', |
+ 'browser/policy/device_token_fetcher.h', |
'browser/policy/dummy_configuration_policy_provider.h', |
'browser/policy/managed_prefs_banner_base.cc', |
'browser/policy/managed_prefs_banner_base.h', |
+ 'browser/policy/mock_device_management_backend.cc', |
+ 'browser/policy/mock_device_management_backend.h', |
+ # TODO(danno): Find a better way to include these files |
+ '<(protoc_out_dir)/chrome/browser/policy/proto/device_management_backend.pb.cc', |
+ '<(protoc_out_dir)/chrome/browser/policy/proto/device_management_backend.pb.h', |
+ 'browser/popup_blocked_animation.h', |
'browser/possible_url_model.cc', |
'browser/possible_url_model.h', |
'browser/power_save_blocker.h', |
@@ -4226,6 +4236,54 @@ |
'../third_party/protobuf/protobuf.gyp:protobuf_lite', |
], |
}, |
+ { |
+ # Protobuf compiler / generate rule for google apps policy |
+ # TODO(danno): This rule shares a lot with the user feedback proto rule |
+ # and probably should be generalized to handle both |
+ 'target_name': 'device_management_backend_proto', |
+ 'type': 'none', |
+ 'sources': [ |
+ 'browser/policy/proto/device_management_backend.proto', |
+ ], |
+ 'rules': [ |
+ { |
+ 'rule_name': 'genproto', |
+ 'extension': 'proto', |
+ 'inputs': [ |
+ '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', |
+ ], |
+ 'variables': { |
+ # The protoc compiler requires a proto_path argument with the |
+ # directory containing the .proto file. |
+ # There's no generator variable that corresponds to this, so fake it. |
+ 'rule_input_relpath': 'browser/policy/proto', |
+ }, |
+ 'outputs': [ |
+ '<(protoc_out_dir)/chrome/<(rule_input_relpath)/<(RULE_INPUT_ROOT).pb.h', |
+ '<(protoc_out_dir)/chrome/<(rule_input_relpath)/<(RULE_INPUT_ROOT).pb.cc', |
+ ], |
+ 'action': [ |
+ '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', |
+ '--proto_path=./<(rule_input_relpath)', |
+ './<(rule_input_relpath)/<(RULE_INPUT_ROOT)<(RULE_INPUT_EXT)', |
+ '--cpp_out=<(protoc_out_dir)/chrome/<(rule_input_relpath)', |
+ ], |
+ 'message': 'Generating C++ code from <(RULE_INPUT_PATH)', |
+ }, |
+ ], |
+ 'dependencies': [ |
+ '../third_party/protobuf/protobuf.gyp:protobuf_lite', |
+ '../third_party/protobuf/protobuf.gyp:protoc#host', |
+ ], |
+ 'direct_dependent_settings': { |
+ 'include_dirs': [ |
+ '<(protoc_out_dir)', |
+ ] |
+ }, |
+ 'export_dependent_settings': [ |
+ '../third_party/protobuf/protobuf.gyp:protobuf_lite', |
+ ], |
+ }, |
], |
} |