Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

License cleanup for http://code.google.com/p/gyp/issues/detail?id=133

  • Loading branch information...
commit 9763d16eecb7b26fed382e7ea528f6a90ef3fca1 1 parent 611310a
thomasvl@chromium.org authored
View
4 gyp_dummy.c
@@ -1,3 +1,7 @@
+/* Copyright (c) 2009 Google Inc. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file. */
+
int main() {
return 0;
}
View
4 setup.py
@@ -1,5 +1,9 @@
#!/usr/bin/env python
+# Copyright (c) 2009 Google Inc. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
from distutils.core import setup
from distutils.command.install import install
from distutils.command.install_lib import install_lib
View
4 test/defines/defines.c
@@ -1,3 +1,7 @@
+/* Copyright (c) 2009 Google Inc. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file. */
+
#include <stdio.h>
int main(int argc, char *argv[])
View
4 test/dependencies/a.c
@@ -1,3 +1,7 @@
+/* Copyright (c) 2009 Google Inc. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file. */
+
extern int funcB();
int funcA() {
View
4 test/hello/hello.c
@@ -1,3 +1,7 @@
+/* Copyright (c) 2009 Google Inc. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file. */
+
#include <stdio.h>
int main(int argc, char *argv[])
View
4 test/hello/hello2.c
@@ -1,3 +1,7 @@
+/* Copyright (c) 2009 Google Inc. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file. */
+
#include <stdio.h>
int main(int argc, char *argv[])
View
4 test/rules-rebuild/gyptest-all.py
@@ -1,5 +1,9 @@
#!/usr/bin/env python
+# Copyright (c) 2009 Google Inc. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
"""
Verifies that a rule that generates multiple outputs rebuilds
correctly when the inputs change.
View
4 test/rules-rebuild/gyptest-default.py
@@ -1,5 +1,9 @@
#!/usr/bin/env python
+# Copyright (c) 2009 Google Inc. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
"""
Verifies that a rule that generates multiple outputs rebuilds
correctly when the inputs change.
View
4 test/scons_tools/tools.c
@@ -1,3 +1,7 @@
+/* Copyright (c) 2009 Google Inc. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file. */
+
#include <stdio.h>
int main(int argc, char *argv[])
View
4 test/toolsets/main.cc
@@ -1,3 +1,7 @@
+/* Copyright (c) 2009 Google Inc. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file. */
+
#include <stdio.h>
const char *GetToolset();
View
4 test/toolsets/toolsets.cc
@@ -1,3 +1,7 @@
+/* Copyright (c) 2009 Google Inc. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file. */
+
const char *GetToolset() {
#ifdef TARGET
return "Target";
View
4 test/variables/update_golden
@@ -1,5 +1,9 @@
#!/bin/bash
+# Copyright (c) 2009 Google Inc. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
python ../../gyp --debug variables --debug general --format gypd --depth . commands.gyp > commands.gyp.stdout
python ../../gyp --ignore-environment --debug variables --debug general --format gypd --depth . commands.gyp > commands.gyp.ignore-env.stdout
cp -f commands.gypd commands.gypd.golden
View
14 tools/pretty_sln.py
@@ -1,6 +1,8 @@
#!/usr/bin/python2.5
-# Copyright 2009 Google Inc.
-# All Rights Reserved.
+
+# Copyright (c) 2009 Google Inc. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
"""Prints the information in a sln file in a diffable way.
@@ -119,7 +121,7 @@ def PrintBuildOrder(projects, deps):
print "-- --"
built = []
- for (project, dep_list) in sorted(deps.items()):
+ for (project, dep_list) in sorted(deps.items()):
if project not in built:
BuildProject(project, built, projects, deps)
@@ -139,7 +141,7 @@ def PrintVCProj(projects):
project_path = os.path.abspath(os.path.join(os.path.dirname(sys.argv[1]),
projects[project][2]))
- pretty = pretty_vcproj
+ pretty = pretty_vcproj
argv = [ '',
project_path,
'$(SolutionDir)=%s\\' % os.path.dirname(sys.argv[1]),
@@ -156,10 +158,10 @@ def main():
(projects, deps) = ParseSolution(sys.argv[1])
PrintDependencies(projects, deps)
PrintBuildOrder(projects, deps)
-
+
if '--recursive' in sys.argv:
PrintVCProj(projects)
if __name__ == '__main__':
main()
-
+
View
20 tools/pretty_vcproj.py
@@ -1,12 +1,14 @@
#!/usr/bin/python2.5
-# Copyright 2009 Google Inc.
-# All Rights Reserved.
+
+# Copyright (c) 2009 Google Inc. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
"""Make the format of a vcproj really pretty.
This script normalize and sort an xml. It also fetches all the properties
inside linked vsprops and include them explicitly in the vcproj.
-
+
It outputs the resulting xml to stdout.
"""
@@ -146,13 +148,13 @@ def CleanupVcproj(node):
sub_node.data = sub_node.data.replace("\r", "")
sub_node.data = sub_node.data.replace("\n", "")
sub_node.data = sub_node.data.rstrip()
-
+
# Fix all the semicolon separated attributes to be sorted, and we also
# remove the dups.
if node.attributes:
for (name, value) in node.attributes.items():
sorted_list = sorted(value.split(';'))
- unique_list = []
+ unique_list = []
[unique_list.append(i) for i in sorted_list if not unique_list.count(i)]
node.setAttribute(name, ';'.join(unique_list))
if not value:
@@ -160,7 +162,7 @@ def CleanupVcproj(node):
if node.childNodes:
node.normalize()
-
+
# For each node, take a copy, and remove it from the list.
node_array = []
while node.childNodes and node.childNodes[0]:
@@ -175,7 +177,7 @@ def CleanupVcproj(node):
else:
node_array.append(current)
-
+
# Sort the list.
node_array.sort(CmpNode())
@@ -309,6 +311,6 @@ def main(argv):
# user.
#print dom.toprettyxml(newl="\n")
PrettyPrintNode(dom.documentElement)
-
+
if __name__ == '__main__':
- main(sys.argv)
+ main(sys.argv)
Please sign in to comment.
Something went wrong with that request. Please try again.