diff options
author | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-30 09:27:04 +0000 |
---|---|---|
committer | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-30 09:27:04 +0000 |
commit | 69a4548e0ab3fbb1531b4df89708bfab9cf0df20 (patch) | |
tree | ab77a5fe7f52b55970950374ceb22f4be8e4ea53 /tools/gn/value.h | |
parent | d5f9c7ceb6d59748ad07bb96194b44b516c3c1ad (diff) | |
download | chromium_src-69a4548e0ab3fbb1531b4df89708bfab9cf0df20.zip chromium_src-69a4548e0ab3fbb1531b4df89708bfab9cf0df20.tar.gz chromium_src-69a4548e0ab3fbb1531b4df89708bfab9cf0df20.tar.bz2 |
Revert 214254 "Add initial prototype for the GN meta-buildsystem."
It broke the check_licenses step on Android (see http://build.chromium.org/p/chromium.linux/builders/Android%20Builder%20%28dbg%29/builds/39904/steps/check_licenses/logs/stdio):
@@@BUILD_STEP check_licenses@@@
> /b/build/slave/Android_Builder__dbg_/build/src/android_webview/tools/webview_licenses.py scan
Got LicenseError "missing README.chromium or licenses.py SPECIAL_CASES entry" while scanning tools/gn/secondary/base/third_party/dynamic_annotations
Got LicenseError "missing README.chromium or licenses.py SPECIAL_CASES entry" while scanning tools/gn/secondary/third_party/modp_b64
< /b/build/slave/Android_Builder__dbg_/build/src/android_webview/tools/webview_licenses.py scan
ERROR: process exited with code 2
@@@STEP_FAILURE@@@
> Add initial prototype for the GN meta-buildsystem.
>
> This is currently not hooked into the build. To build, add a reference to the
> gn.gyp file to build/all.gyp
>
> R=darin@chromium.org, scottmg@chromium.org
>
> Review URL: https://codereview.chromium.org/21114002
TBR=brettw@chromium.org
Review URL: https://codereview.chromium.org/21084010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214325 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/gn/value.h')
-rw-r--r-- | tools/gn/value.h | 91 |
1 files changed, 0 insertions, 91 deletions
diff --git a/tools/gn/value.h b/tools/gn/value.h deleted file mode 100644 index 8802bff..0000000 --- a/tools/gn/value.h +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) 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. - -#ifndef TOOLS_GN_VALUE_H_ -#define TOOLS_GN_VALUE_H_ - -#include "base/basictypes.h" -#include "base/logging.h" -#include "base/strings/string_piece.h" -#include "tools/gn/err.h" - -class ParseNode; - -// Represents a variable value in the interpreter. -class Value { - public: - enum Type { - NONE = 0, - INTEGER, - STRING, - LIST - }; - - Value(); - Value(const ParseNode* origin, Type t); - Value(const ParseNode* origin, int64 int_val); - Value(const ParseNode* origin, const base::StringPiece& str_val); - ~Value(); - - Type type() const { return type_; } - - // Returns a string describing the given type. - static const char* DescribeType(Type t); - - // Returns the node that made this. May be NULL. - const ParseNode* origin() const { return origin_; } - void set_origin(const ParseNode* o) { origin_ = o; } - - int64& int_value() { - DCHECK(type_ == INTEGER); - return int_value_; - } - const int64& int_value() const { - DCHECK(type_ == INTEGER); - return int_value_; - } - - std::string& string_value() { - DCHECK(type_ == STRING); - return string_value_; - } - const std::string& string_value() const { - DCHECK(type_ == STRING); - return string_value_; - } - - std::vector<Value>& list_value() { - DCHECK(type_ == LIST); - return list_value_; - } - const std::vector<Value>& list_value() const { - DCHECK(type_ == LIST); - return list_value_; - } - - // Returns the current value converted to an int, normally used for - // boolean operations. Undefined variables, empty lists, and empty strings - // are all interpreted as 0, otherwise 1. - int64 InterpretAsInt() const; - - // Converts the given value to a string. - std::string ToString() const; - - // Verifies that the value is of the given type. If it isn't, returns - // false and sets the error. - bool VerifyTypeIs(Type t, Err* err) const; - - // Compares values. Only the "value" is compared, not the origin. - bool operator==(const Value& other) const; - bool operator!=(const Value& other) const; - - private: - Type type_; - std::string string_value_; - int64 int_value_; - std::vector<Value> list_value_; - const ParseNode* origin_; -}; - -#endif // TOOLS_GN_VALUE_H_ |