summaryrefslogtreecommitdiffstats
path: root/core/config
diff options
context:
space:
mode:
authorDave Bort <dbort@android.com>2009-04-22 17:33:12 -0700
committerDave Bort <dbort@android.com>2009-05-01 17:47:08 -0700
commita833cbbed087bf6869905a43166757a6436ad34f (patch)
tree864cfc1484b56e6e0374bc088d8f9def375e3baf /core/config
parent75e44a1c72c5e6ebf68601bbb903fa3e375bd7d5 (diff)
downloadframeworks_base-a833cbbed087bf6869905a43166757a6436ad34f.zip
frameworks_base-a833cbbed087bf6869905a43166757a6436ad34f.tar.gz
frameworks_base-a833cbbed087bf6869905a43166757a6436ad34f.tar.bz2
Config: Add ConfigBuildFlags, and change it based on TARGET_BUILD_TYPE
This will be used to revive android.util.Config.DEBUG. Signed-off-by: Dave Bort <dbort@android.com>
Diffstat (limited to 'core/config')
-rw-r--r--core/config/README.txt5
-rw-r--r--core/config/debug/android/util/ConfigBuildFlags.java24
-rw-r--r--core/config/ndebug/android/util/ConfigBuildFlags.java24
-rw-r--r--core/config/sdk/android/util/ConfigBuildFlags.java30
4 files changed, 83 insertions, 0 deletions
diff --git a/core/config/README.txt b/core/config/README.txt
new file mode 100644
index 0000000..5f48fb3
--- /dev/null
+++ b/core/config/README.txt
@@ -0,0 +1,5 @@
+One of the subdirectories {debug, ndebug} is included in framework.jar
+by ../../Android.mk depending on the value of $(TARGET_BUILD_TYPE).
+
+The sdk/ directory contains the files that are passed to the doc/API
+tools regardless of $(TARGET_BUILD_TYPE).
diff --git a/core/config/debug/android/util/ConfigBuildFlags.java b/core/config/debug/android/util/ConfigBuildFlags.java
new file mode 100644
index 0000000..eb00163
--- /dev/null
+++ b/core/config/debug/android/util/ConfigBuildFlags.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright (C) 2009 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package android.util;
+
+/**
+ * Static flags set by the build process.
+ */
+/* package */ final class ConfigBuildFlags {
+ /* package */ static final boolean DEBUG = true;
+}
diff --git a/core/config/ndebug/android/util/ConfigBuildFlags.java b/core/config/ndebug/android/util/ConfigBuildFlags.java
new file mode 100644
index 0000000..2345a40
--- /dev/null
+++ b/core/config/ndebug/android/util/ConfigBuildFlags.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright (C) 2009 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package android.util;
+
+/**
+ * Static flags set by the build process.
+ */
+/* package */ final class ConfigBuildFlags {
+ /* package */ static final boolean DEBUG = false;
+}
diff --git a/core/config/sdk/android/util/ConfigBuildFlags.java b/core/config/sdk/android/util/ConfigBuildFlags.java
new file mode 100644
index 0000000..f903ee4
--- /dev/null
+++ b/core/config/sdk/android/util/ConfigBuildFlags.java
@@ -0,0 +1,30 @@
+/*
+ * Copyright (C) 2009 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package android.util;
+
+/**
+ * Static flags set by the build process.
+ */
+/* package */ final class ConfigBuildFlags {
+ /* This field is intentionally declared as non-final. This file
+ * is passed to the SDK docs/API tools, and is used to force them
+ * to avoid treating DEBUG as a constant value. This is necessary
+ * to avoid breaking the API check when switching to and from
+ * a debug build.
+ */
+ /* package */ static boolean DEBUG = false;
+}