summaryrefslogtreecommitdiffstats
path: root/components/policy.gypi
diff options
context:
space:
mode:
authorjoaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-14 14:41:10 +0000
committerjoaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-14 14:41:10 +0000
commit183be4e9d92afb48a7c4b1f32e70c95c58af83b8 (patch)
treed68d10dcfc3dcde71765e60f45fc301922be6f19 /components/policy.gypi
parent0bce53f7d12f74b1b6249b2ffc1ba6cd238c2fe6 (diff)
downloadchromium_src-183be4e9d92afb48a7c4b1f32e70c95c58af83b8.zip
chromium_src-183be4e9d92afb48a7c4b1f32e70c95c58af83b8.tar.gz
chromium_src-183be4e9d92afb48a7c4b1f32e70c95c58af83b8.tar.bz2
Moved chrome/common/policy to components/policy.
This change also introduces //components/policy as a new layered component. Some of the chrome/browser/policy code is being prepared to be moved into this component. This CL depends on https://codereview.chromium.org/22807004/. BUG=271392 Review URL: https://chromiumcodereview.appspot.com/23045003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217552 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/policy.gypi')
-rw-r--r--components/policy.gypi41
1 files changed, 41 insertions, 0 deletions
diff --git a/components/policy.gypi b/components/policy.gypi
new file mode 100644
index 0000000..5295ba4
--- /dev/null
+++ b/components/policy.gypi
@@ -0,0 +1,41 @@
+# Copyright 2013 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'targets': [
+ {
+ 'target_name': 'policy_component',
+ 'type': '<(component)',
+ 'dependencies': [
+ '../base/base.gyp:base',
+ 'json_schema',
+ ],
+ 'defines': [
+ 'POLICY_COMPONENT_IMPLEMENTATION',
+ ],
+ 'include_dirs': [
+ '..',
+ ],
+ 'conditions': [
+ ['configuration_policy==1', {
+ 'sources': [
+ 'policy/core/common/policy_schema.cc',
+ 'policy/core/common/policy_schema.h',
+ 'policy/policy_export.h',
+ ],
+ }, { # configuration_policy==0
+ # The target 'policy_component' always exists. Later it will include
+ # some stubs when configuration_policy==0. For now this stub file is
+ # compiled so that an output is produced, otherwise the shared build
+ # breaks on iOS.
+ # TODO(joaodasilva): remove this comment and the temporary stub after
+ # moving one of the real stubs. http://crbug.com/271392
+ 'sources': [
+ 'policy/stub_to_remove.cc',
+ ],
+ }],
+ ],
+ },
+ ],
+}