summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-02-06 19:02:57 (GMT)
committerEvan Martin <martine@danga.com>2011-02-06 19:02:57 (GMT)
commitd52238f212c8e5ec914270a599d8e690e6af9265 (patch)
treeefcdfb968eb868c7ded48f4b192284536ba0b903 /src
parentf3b38a89eb23bd460c952acee71167aa96da7fb4 (diff)
downloadNinja-d52238f212c8e5ec914270a599d8e690e6af9265.zip
Ninja-d52238f212c8e5ec914270a599d8e690e6af9265.tar.gz
Ninja-d52238f212c8e5ec914270a599d8e690e6af9265.tar.bz2
add copyrights
Diffstat (limited to 'src')
-rwxr-xr-xsrc/browse.py14
-rw-r--r--src/build.cc14
-rw-r--r--src/build.h14
-rw-r--r--src/build_log.cc14
-rw-r--r--src/build_log.h14
-rw-r--r--src/build_log_test.cc14
-rw-r--r--src/build_test.cc14
-rw-r--r--src/eval_env.cc14
-rw-r--r--src/eval_env.h14
-rw-r--r--src/graph.cc14
-rw-r--r--src/graph.h14
-rw-r--r--src/graphviz.h14
-rw-r--r--src/hash_map.h14
-rw-r--r--src/ninja.cc14
-rw-r--r--src/ninja.h14
-rw-r--r--src/ninja_jumble.cc14
-rw-r--r--src/ninja_test.cc14
-rw-r--r--src/parsers.cc14
-rw-r--r--src/parsers.h14
-rw-r--r--src/parsers_test.cc14
-rw-r--r--src/subprocess.cc14
-rw-r--r--src/subprocess.h14
-rw-r--r--src/subprocess_test.cc14
-rw-r--r--src/test.h14
-rw-r--r--src/util.cc14
-rw-r--r--src/util.h14
26 files changed, 363 insertions, 1 deletions
diff --git a/src/browse.py b/src/browse.py
index dd7b5dc..92c7eaa 100755
--- a/src/browse.py
+++ b/src/browse.py
@@ -1,4 +1,18 @@
#!/usr/bin/python
+#
+# Copyright 2001 Google Inc. All Rights Reserved.
+#
+# 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.
"""Simple web server for browsing dependency graph data.
diff --git a/src/build.cc b/src/build.cc
index 254d4dc..95f20bc 100644
--- a/src/build.cc
+++ b/src/build.cc
@@ -1,3 +1,17 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+//
+// 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.
+
#include "build.h"
#include <stdio.h>
diff --git a/src/build.h b/src/build.h
index 618cc28..cf9398e 100644
--- a/src/build.h
+++ b/src/build.h
@@ -1,3 +1,17 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+//
+// 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.
+
#ifndef NINJA_BUILD_H_
#define NINJA_BUILD_H_
diff --git a/src/build_log.cc b/src/build_log.cc
index b8a782f..9add945 100644
--- a/src/build_log.cc
+++ b/src/build_log.cc
@@ -1,3 +1,17 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+//
+// 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.
+
#include "build_log.h"
#include <errno.h>
diff --git a/src/build_log.h b/src/build_log.h
index 58a598e..be12d85 100644
--- a/src/build_log.h
+++ b/src/build_log.h
@@ -1,3 +1,17 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+//
+// 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.
+
#include <map>
#include <string>
using namespace std;
diff --git a/src/build_log_test.cc b/src/build_log_test.cc
index 11d5f72..26021d5 100644
--- a/src/build_log_test.cc
+++ b/src/build_log_test.cc
@@ -1,3 +1,17 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+//
+// 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.
+
#include "build_log.h"
#include "test.h"
diff --git a/src/build_test.cc b/src/build_test.cc
index 0c35f8c..7533b44 100644
--- a/src/build_test.cc
+++ b/src/build_test.cc
@@ -1,3 +1,17 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+//
+// 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.
+
#include "build.h"
#include "test.h"
diff --git a/src/eval_env.cc b/src/eval_env.cc
index 172544c..0a53ae5 100644
--- a/src/eval_env.cc
+++ b/src/eval_env.cc
@@ -1,3 +1,17 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+//
+// 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.
+
#include "eval_env.h"
string BindingEnv::LookupVariable(const string& var) {
diff --git a/src/eval_env.h b/src/eval_env.h
index 46fb1f1..fd0e4eb 100644
--- a/src/eval_env.h
+++ b/src/eval_env.h
@@ -1,3 +1,17 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+//
+// 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.
+
#ifndef NINJA_EVAL_ENV_H_
#define NINJA_EVAL_ENV_H_
diff --git a/src/graph.cc b/src/graph.cc
index 39e7841..aead200 100644
--- a/src/graph.cc
+++ b/src/graph.cc
@@ -1,3 +1,17 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+//
+// 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.
+
#include "graph.h"
#include <stdio.h>
diff --git a/src/graph.h b/src/graph.h
index 4f936b7..f3cfa97 100644
--- a/src/graph.h
+++ b/src/graph.h
@@ -1,3 +1,17 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+//
+// 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.
+
#ifndef NINJA_GRAPH_H_
#define NINJA_GRAPH_H_
diff --git a/src/graphviz.h b/src/graphviz.h
index eb9ee25..fd6b58e 100644
--- a/src/graphviz.h
+++ b/src/graphviz.h
@@ -1,3 +1,17 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+//
+// 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.
+
#include <set>
// XXX deinline all this code so we don't need this include
diff --git a/src/hash_map.h b/src/hash_map.h
index 820f773..45a83a9 100644
--- a/src/hash_map.h
+++ b/src/hash_map.h
@@ -1,3 +1,17 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+//
+// 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.
+
#include <ext/hash_map>
using __gnu_cxx::hash_map;
diff --git a/src/ninja.cc b/src/ninja.cc
index 41ee1ff..eb7e41c 100644
--- a/src/ninja.cc
+++ b/src/ninja.cc
@@ -1,3 +1,17 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+//
+// 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.
+
#include "ninja.h"
#include <errno.h>
diff --git a/src/ninja.h b/src/ninja.h
index 26432c3..706cb9c 100644
--- a/src/ninja.h
+++ b/src/ninja.h
@@ -1,3 +1,17 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+//
+// 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.
+
#ifndef NINJA_NINJA_H_
#define NINJA_NINJA_H_
diff --git a/src/ninja_jumble.cc b/src/ninja_jumble.cc
index a1ba219..a935c21 100644
--- a/src/ninja_jumble.cc
+++ b/src/ninja_jumble.cc
@@ -1,3 +1,17 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+//
+// 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.
+
// This file is all the code that used to be in one file.
// TODO: split into modules, delete this file.
diff --git a/src/ninja_test.cc b/src/ninja_test.cc
index 7e8bdc0..7ec77fd 100644
--- a/src/ninja_test.cc
+++ b/src/ninja_test.cc
@@ -1,3 +1,17 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+//
+// 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.
+
#include "ninja.h"
#include <gtest/gtest.h>
diff --git a/src/parsers.cc b/src/parsers.cc
index 8e44a38..2fb2c9a 100644
--- a/src/parsers.cc
+++ b/src/parsers.cc
@@ -1,3 +1,17 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+//
+// 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.
+
#include "parsers.h"
#include <assert.h>
diff --git a/src/parsers.h b/src/parsers.h
index 01f65c0..78865d1 100644
--- a/src/parsers.h
+++ b/src/parsers.h
@@ -1,3 +1,17 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+//
+// 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.
+
#ifndef NINJA_PARSERS_H_
#define NINJA_PARSERS_H_
diff --git a/src/parsers_test.cc b/src/parsers_test.cc
index 7810113..8a1efc5 100644
--- a/src/parsers_test.cc
+++ b/src/parsers_test.cc
@@ -1,3 +1,17 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+//
+// 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.
+
#include "parsers.h"
#include <gtest/gtest.h>
diff --git a/src/subprocess.cc b/src/subprocess.cc
index 168ac10..1043e65 100644
--- a/src/subprocess.cc
+++ b/src/subprocess.cc
@@ -1,3 +1,17 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+//
+// 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.
+
#include "subprocess.h"
#include <algorithm>
diff --git a/src/subprocess.h b/src/subprocess.h
index 2c91f4a..35b7914 100644
--- a/src/subprocess.h
+++ b/src/subprocess.h
@@ -1,3 +1,17 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+//
+// 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.
+
#include <string>
#include <vector>
#include <queue>
diff --git a/src/subprocess_test.cc b/src/subprocess_test.cc
index 51d4a11..4eb878b 100644
--- a/src/subprocess_test.cc
+++ b/src/subprocess_test.cc
@@ -1,3 +1,17 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+//
+// 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.
+
#include "subprocess.h"
#include "test.h"
diff --git a/src/test.h b/src/test.h
index 405f039..bc8dfcc 100644
--- a/src/test.h
+++ b/src/test.h
@@ -1,3 +1,17 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+//
+// 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.
+
#include <gtest/gtest.h>
#include "graph.h"
diff --git a/src/util.cc b/src/util.cc
index 7a1c4e6..2eb4559 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -1,3 +1,17 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+//
+// 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.
+
#include "util.h"
#include <execinfo.h>
diff --git a/src/util.h b/src/util.h
index d0f0815..188528c 100644
--- a/src/util.h
+++ b/src/util.h
@@ -1,4 +1,16 @@
-
+// Copyright 2011 Google Inc. All Rights Reserved.
+//
+// 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.
// Dump a backtrace to stderr.
// |skip_frames| is how many frames to skip;