From 96df361ac0fe25d908515234bff944bad3269216 Mon Sep 17 00:00:00 2001 From: Kristina Chodorow Date: Wed, 23 Mar 2016 21:20:22 +0000 Subject: Remove deprecated Skylark rules -- MOS_MIGRATED_REVID=117968196 --- examples/d/hello_lib/BUILD | 42 ------------------ examples/d/hello_lib/greeter.d | 51 ---------------------- examples/d/hello_lib/greeter_test.d | 22 ---------- examples/d/hello_lib/native-greeter.c | 49 --------------------- examples/d/hello_lib/native-greeter.h | 28 ------------ examples/d/hello_lib/native_greeter.d | 43 ------------------ examples/d/hello_world/BUILD | 17 -------- examples/d/hello_world/hello_world.d | 26 ----------- examples/dotnet/example_binary/BUILD | 12 ----- examples/dotnet/example_binary/Program.cs | 14 ------ .../example_binary/Properties/AssemblyInfo.cs | 27 ------------ examples/dotnet/example_lib/BUILD | 13 ------ examples/dotnet/example_lib/MyClass.cs | 19 -------- .../dotnet/example_lib/Properties/AssemblyInfo.cs | 27 ------------ examples/dotnet/example_test/BUILD | 11 ----- examples/dotnet/example_test/MyTest.cs | 24 ---------- examples/dotnet/example_transitive_lib/BUILD | 10 ----- .../Properties/AssemblyInfo.cs | 27 ------------ .../example_transitive_lib/TransitiveClass.cs | 14 ------ examples/go/bin/BUILD | 14 ------ examples/go/bin/bin.go | 14 ------ examples/go/lib/BUILD | 20 --------- examples/go/lib/lib.go | 6 --- examples/go/lib/lib_test.go | 11 ----- examples/go/vendor/github_com/user/vendored/BUILD | 12 ----- .../go/vendor/github_com/user/vendored/vendored.go | 6 --- examples/sass/hello_world/BUILD | 13 ------ examples/sass/hello_world/main.scss | 13 ------ examples/sass/shared/BUILD | 15 ------- examples/sass/shared/_colors.scss | 5 --- examples/sass/shared/_fonts.scss | 5 --- 31 files changed, 610 deletions(-) delete mode 100644 examples/d/hello_lib/BUILD delete mode 100644 examples/d/hello_lib/greeter.d delete mode 100644 examples/d/hello_lib/greeter_test.d delete mode 100644 examples/d/hello_lib/native-greeter.c delete mode 100644 examples/d/hello_lib/native-greeter.h delete mode 100644 examples/d/hello_lib/native_greeter.d delete mode 100644 examples/d/hello_world/BUILD delete mode 100644 examples/d/hello_world/hello_world.d delete mode 100644 examples/dotnet/example_binary/BUILD delete mode 100644 examples/dotnet/example_binary/Program.cs delete mode 100644 examples/dotnet/example_binary/Properties/AssemblyInfo.cs delete mode 100644 examples/dotnet/example_lib/BUILD delete mode 100644 examples/dotnet/example_lib/MyClass.cs delete mode 100644 examples/dotnet/example_lib/Properties/AssemblyInfo.cs delete mode 100644 examples/dotnet/example_test/BUILD delete mode 100644 examples/dotnet/example_test/MyTest.cs delete mode 100644 examples/dotnet/example_transitive_lib/BUILD delete mode 100644 examples/dotnet/example_transitive_lib/Properties/AssemblyInfo.cs delete mode 100644 examples/dotnet/example_transitive_lib/TransitiveClass.cs delete mode 100644 examples/go/bin/BUILD delete mode 100644 examples/go/bin/bin.go delete mode 100644 examples/go/lib/BUILD delete mode 100644 examples/go/lib/lib.go delete mode 100644 examples/go/lib/lib_test.go delete mode 100644 examples/go/vendor/github_com/user/vendored/BUILD delete mode 100644 examples/go/vendor/github_com/user/vendored/vendored.go delete mode 100644 examples/sass/hello_world/BUILD delete mode 100644 examples/sass/hello_world/main.scss delete mode 100644 examples/sass/shared/BUILD delete mode 100644 examples/sass/shared/_colors.scss delete mode 100644 examples/sass/shared/_fonts.scss (limited to 'examples') diff --git a/examples/d/hello_lib/BUILD b/examples/d/hello_lib/BUILD deleted file mode 100644 index 3b4f084737..0000000000 --- a/examples/d/hello_lib/BUILD +++ /dev/null @@ -1,42 +0,0 @@ -package(default_visibility = ["//visibility:public"]) - -load( - "//tools/build_defs/d:d.bzl", - "d_docs", - "d_library", - "d_source_library", - "d_test", -) - -d_library( - name = "greeter", - srcs = ["greeter.d"], -) - -d_test( - name = "greeter_test", - srcs = ["greeter_test.d"], - deps = [":greeter"], -) - -cc_library( - name = "native_greeter_lib", - srcs = ["native-greeter.c"], - hdrs = ["native-greeter.h"], -) - -d_source_library( - name = "native_greeter", - srcs = ["native_greeter.d"], - deps = [":native_greeter_lib"], -) - -d_docs( - name = "greeter_docs", - dep = ":greeter", -) - -d_docs( - name = "native_greeter_docs", - dep = ":native_greeter", -) diff --git a/examples/d/hello_lib/greeter.d b/examples/d/hello_lib/greeter.d deleted file mode 100644 index a0a3bf8db9..0000000000 --- a/examples/d/hello_lib/greeter.d +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2015 The Bazel Authors. 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. - -module greeter; - -import std.stdio; -import std.string; - -/// Displays a greeting. -class Greeter { - private string greeting; - - public: - /// Creates a new greeter. - /// - /// Params: - /// greeting = The greeting to use. - this(in string greeting) { - this.greeting = greeting.dup; - } - - /// Returns the greeting as a string. - /// - /// Params: - /// thing = The thing to greet - /// - /// Returns: - /// A greeting as a string. - string makeGreeting(in immutable string thing) { - return format("%s %s!", this.greeting, thing); - } - - /// Prints a greeting. - /// - /// Params: - /// thing = The thing to greet. - void greet(in immutable string thing) { - writeln(makeGreeting(thing)); - } -} diff --git a/examples/d/hello_lib/greeter_test.d b/examples/d/hello_lib/greeter_test.d deleted file mode 100644 index 4d927c5b01..0000000000 --- a/examples/d/hello_lib/greeter_test.d +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2015 The Bazel Authors. 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. - -import examples.d.hello_lib.greeter; - -unittest { - auto greeter = new Greeter("Hello"); - assert(greeter.makeGreeting("world") == "Hello world!"); -} - -void main() {} diff --git a/examples/d/hello_lib/native-greeter.c b/examples/d/hello_lib/native-greeter.c deleted file mode 100644 index 1ce489a941..0000000000 --- a/examples/d/hello_lib/native-greeter.c +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2015 The Bazel Authors. 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 "examples/d/hello_lib/native-greeter.h" - -#include -#include -#include - -NativeGreeter* native_greeter_new(const char* greeting) { - if (greeting == NULL) { - return NULL; - } - NativeGreeter* greeter = NULL; - greeter = (NativeGreeter*)malloc(sizeof(*greeter)); - if (greeter == NULL) { - return NULL; - } - greeter->greeting = strdup(greeting); - return greeter; -} - -void native_greeter_greet(const NativeGreeter* greeter, const char* thing) { - if (greeter == NULL || thing == NULL) { - return; - } - printf("%s %s!\n", greeter->greeting, thing); -} - -void native_greeter_free(NativeGreeter* greeter) { - if (greeter == NULL) { - return; - } - if (greeter->greeting != NULL) { - free(greeter->greeting); - } - free(greeter); -} diff --git a/examples/d/hello_lib/native-greeter.h b/examples/d/hello_lib/native-greeter.h deleted file mode 100644 index c998412c74..0000000000 --- a/examples/d/hello_lib/native-greeter.h +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright 2015 The Bazel Authors. 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 EXAMPLES_D_HELLO_LIB_NATIVE_GREETER_H_ -#define EXAMPLES_D_HELLO_LIB_NATIVE_GREETER_H_ - -typedef struct NativeGreeter { - char* greeting; -} NativeGreeter; - -NativeGreeter* native_greeter_new(const char* greeting); - -void native_greeter_greet(const NativeGreeter* greeter, const char* thing); - -void native_greeter_free(NativeGreeter* greeter); - -#endif // EXAMPLES_D_HELLO_LIB_NATIVE_GREETER_H_ diff --git a/examples/d/hello_lib/native_greeter.d b/examples/d/hello_lib/native_greeter.d deleted file mode 100644 index 605fe21ca7..0000000000 --- a/examples/d/hello_lib/native_greeter.d +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright 2015 The Bazel Authors. 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. - -module native_greeter; - -extern (C): - -struct NativeGreeter { - char* greeting; -}; - -/// Creates a new NativeGreeter. -/// -/// Params: -/// greeting = The greeting to use. -/// -/// Returns: -/// A pointer to a new NativeGreeting struct. -NativeGreeter* native_greeter_new(const(char)* greeting); - -/// Prints a greeting to stdout. -/// -/// Params: -/// greeter = The pointer to the NativeGreeter object to use. -/// thing = The thing to greet. -void native_greeter_greet(const(NativeGreeter)* greeter, const(char)* thing); - -/// Frees the NativeGreeter. -/// -/// Params: -/// greeter = The pointer to the NativeGreeter object to use. -void native_greeter_free(NativeGreeter* greeter); diff --git a/examples/d/hello_world/BUILD b/examples/d/hello_world/BUILD deleted file mode 100644 index 901f42f735..0000000000 --- a/examples/d/hello_world/BUILD +++ /dev/null @@ -1,17 +0,0 @@ -package(default_visibility = ["//visibility:public"]) - -load("//tools/build_defs/d:d.bzl", "d_binary", "d_docs") - -d_binary( - name = "hello_world", - srcs = ["hello_world.d"], - deps = [ - "//examples/d/hello_lib:greeter", - "//examples/d/hello_lib:native_greeter", - ], -) - -d_docs( - name = "hello_world_docs", - dep = ":hello_world", -) diff --git a/examples/d/hello_world/hello_world.d b/examples/d/hello_world/hello_world.d deleted file mode 100644 index 8017e2442c..0000000000 --- a/examples/d/hello_world/hello_world.d +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright 2015 The Bazel Authors. 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. - -import std.stdio; -import examples.d.hello_lib.greeter; -import examples.d.hello_lib.native_greeter; - -void main() { - Greeter greeter = new Greeter("Hello"); - greeter.greet("World"); - - NativeGreeter* nativeGreeter = native_greeter_new("Hello"); - native_greeter_greet(nativeGreeter, "World"); - native_greeter_free(nativeGreeter); -} diff --git a/examples/dotnet/example_binary/BUILD b/examples/dotnet/example_binary/BUILD deleted file mode 100644 index 0b9263c5dc..0000000000 --- a/examples/dotnet/example_binary/BUILD +++ /dev/null @@ -1,12 +0,0 @@ -load("//tools/build_defs/dotnet:csharp.bzl", "csharp_binary") - -csharp_binary( - name = "hello", - srcs = [ - "Program.cs", - "Properties/AssemblyInfo.cs", - ], - deps = [ - "//examples/dotnet/example_lib:MyClass", - ], -) diff --git a/examples/dotnet/example_binary/Program.cs b/examples/dotnet/example_binary/Program.cs deleted file mode 100644 index 7780823347..0000000000 --- a/examples/dotnet/example_binary/Program.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using example_lib; - -namespace example_binary -{ - class MainClass - { - public static void Main(string[] args) - { - var mc = new MyClass(); - Console.WriteLine(mc.Message); - } - } -} diff --git a/examples/dotnet/example_binary/Properties/AssemblyInfo.cs b/examples/dotnet/example_binary/Properties/AssemblyInfo.cs deleted file mode 100644 index d7700ef2b3..0000000000 --- a/examples/dotnet/example_binary/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; - -// Information about this assembly is defined by the following attributes. -// Change them to the values specific to your project. - -[assembly: AssemblyTitle("example_binary")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("VAE Inc")] -[assembly: AssemblyProduct("")] -[assembly: AssemblyCopyright("")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". -// The form "{Major}.{Minor}.*" will automatically update the build and revision, -// and "{Major}.{Minor}.{Build}.*" will update just the revision. - -[assembly: AssemblyVersion("1.0.*")] - -// The following attributes are used to specify the signing key for the assembly, -// if desired. See the Mono documentation for more information about signing. - -//[assembly: AssemblyDelaySign(false)] -//[assembly: AssemblyKeyFile("")] - diff --git a/examples/dotnet/example_lib/BUILD b/examples/dotnet/example_lib/BUILD deleted file mode 100644 index ad1b2b1466..0000000000 --- a/examples/dotnet/example_lib/BUILD +++ /dev/null @@ -1,13 +0,0 @@ -load("//tools/build_defs/dotnet:csharp.bzl", "csharp_library") - -csharp_library( - name = "MyClass", - srcs = [ - "MyClass.cs", - "Properties/AssemblyInfo.cs", - ], - visibility = ["//visibility:public"], - deps = [ - "//examples/dotnet/example_transitive_lib:TransitiveClass", - ], -) diff --git a/examples/dotnet/example_lib/MyClass.cs b/examples/dotnet/example_lib/MyClass.cs deleted file mode 100644 index 8ff7c18d56..0000000000 --- a/examples/dotnet/example_lib/MyClass.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Runtime.Remoting.Messaging; - -using example_transitive_lib; - -namespace example_lib -{ - public class MyClass - { - public string Message - { - get { return example_transitive_lib.TransitiveClass.Message; } - } - - public MyClass() - { - } - } -} diff --git a/examples/dotnet/example_lib/Properties/AssemblyInfo.cs b/examples/dotnet/example_lib/Properties/AssemblyInfo.cs deleted file mode 100644 index 1e8e2dd20e..0000000000 --- a/examples/dotnet/example_lib/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; - -// Information about this assembly is defined by the following attributes. -// Change them to the values specific to your project. - -[assembly: AssemblyTitle("example_lib")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("")] -[assembly: AssemblyCopyright("")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". -// The form "{Major}.{Minor}.*" will automatically update the build and revision, -// and "{Major}.{Minor}.{Build}.*" will update just the revision. - -[assembly: AssemblyVersion("1.0.*")] - -// The following attributes are used to specify the signing key for the assembly, -// if desired. See the Mono documentation for more information about signing. - -//[assembly: AssemblyDelaySign(false)] -//[assembly: AssemblyKeyFile("")] - diff --git a/examples/dotnet/example_test/BUILD b/examples/dotnet/example_test/BUILD deleted file mode 100644 index 41613cfb21..0000000000 --- a/examples/dotnet/example_test/BUILD +++ /dev/null @@ -1,11 +0,0 @@ -load("//tools/build_defs/dotnet:csharp.bzl", "csharp_nunit_test") - -csharp_nunit_test( - name = "MyTest", - srcs = [ - "MyTest.cs", - ], - deps = [ - "//examples/dotnet/example_lib:MyClass", - ], -) diff --git a/examples/dotnet/example_test/MyTest.cs b/examples/dotnet/example_test/MyTest.cs deleted file mode 100644 index d5d5d3e5c7..0000000000 --- a/examples/dotnet/example_test/MyTest.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; - -using NUnit.Framework; - -using example_lib; - -namespace example_test -{ - [TestFixture] - public class MyTest - { - [Test] - public void MyTest1() - { - Assert.That("foo", Is.EqualTo("Foo")); - } - - [Test] - public void MyTest2() - { - Assert.That("bar", Is.EqualTo("bar")); - } - } -} \ No newline at end of file diff --git a/examples/dotnet/example_transitive_lib/BUILD b/examples/dotnet/example_transitive_lib/BUILD deleted file mode 100644 index b210b7ac53..0000000000 --- a/examples/dotnet/example_transitive_lib/BUILD +++ /dev/null @@ -1,10 +0,0 @@ -load("//tools/build_defs/dotnet:csharp.bzl", "csharp_library") - -csharp_library( - name = "TransitiveClass", - srcs = [ - "Properties/AssemblyInfo.cs", - "TransitiveClass.cs", - ], - visibility = ["//visibility:public"], -) diff --git a/examples/dotnet/example_transitive_lib/Properties/AssemblyInfo.cs b/examples/dotnet/example_transitive_lib/Properties/AssemblyInfo.cs deleted file mode 100644 index ebc927a51e..0000000000 --- a/examples/dotnet/example_transitive_lib/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; - -// Information about this assembly is defined by the following attributes. -// Change them to the values specific to your project. - -[assembly: AssemblyTitle("example_transitive_lib")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("")] -[assembly: AssemblyCopyright("")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". -// The form "{Major}.{Minor}.*" will automatically update the build and revision, -// and "{Major}.{Minor}.{Build}.*" will update just the revision. - -[assembly: AssemblyVersion("1.0.*")] - -// The following attributes are used to specify the signing key for the assembly, -// if desired. See the Mono documentation for more information about signing. - -//[assembly: AssemblyDelaySign(false)] -//[assembly: AssemblyKeyFile("")] - diff --git a/examples/dotnet/example_transitive_lib/TransitiveClass.cs b/examples/dotnet/example_transitive_lib/TransitiveClass.cs deleted file mode 100644 index 948fadb589..0000000000 --- a/examples/dotnet/example_transitive_lib/TransitiveClass.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using System.Runtime.Remoting.Messaging; - -namespace example_transitive_lib -{ - public class TransitiveClass - { - public static string Message - { - get { return "Hello World!"; } - } - } -} - diff --git a/examples/go/bin/BUILD b/examples/go/bin/BUILD deleted file mode 100644 index ee97b92c89..0000000000 --- a/examples/go/bin/BUILD +++ /dev/null @@ -1,14 +0,0 @@ -package( - default_visibility = ["//visibility:public"], -) - -load("//tools/build_rules/go:def.bzl", "go_binary") - -go_binary( - name = "bin", - srcs = ["bin.go"], - deps = [ - "//examples/go/lib:go_default_library", - "//examples/go/vendor/github_com/user/vendored:go_default_library", - ], -) diff --git a/examples/go/bin/bin.go b/examples/go/bin/bin.go deleted file mode 100644 index b0c5917145..0000000000 --- a/examples/go/bin/bin.go +++ /dev/null @@ -1,14 +0,0 @@ -package main - -import ( - "fmt" - - "github_com/user/vendored" - - "github.com/bazelbuild/bazel/examples/go/lib" -) - -func main() { - fmt.Println("meaning: ", lib.Meaning()) - fmt.Println("vendored: ", vendored.Vendored()) -} diff --git a/examples/go/lib/BUILD b/examples/go/lib/BUILD deleted file mode 100644 index 54d4d4fd94..0000000000 --- a/examples/go/lib/BUILD +++ /dev/null @@ -1,20 +0,0 @@ -package( - default_visibility = ["//visibility:public"], -) - -load("//tools/build_rules/go:def.bzl", "go_library", "go_test") - -go_library( - name = "go_default_library", - srcs = [ - "lib.go", - ], -) - -go_test( - name = "lib_test", - srcs = [ - "lib_test.go", - ], - library = ":go_default_library", -) diff --git a/examples/go/lib/lib.go b/examples/go/lib/lib.go deleted file mode 100644 index f97e3aefce..0000000000 --- a/examples/go/lib/lib.go +++ /dev/null @@ -1,6 +0,0 @@ -package lib - -// Meaning calculates the meaning of Life, the Universe and Everything. -func Meaning() int { - return 42 -} diff --git a/examples/go/lib/lib_test.go b/examples/go/lib/lib_test.go deleted file mode 100644 index e8a9f1b707..0000000000 --- a/examples/go/lib/lib_test.go +++ /dev/null @@ -1,11 +0,0 @@ -package lib - -import ( - "testing" -) - -func TestMeaning(t *testing.T) { - if m := Meaning(); m != 42 { - t.Errorf("got %d, want 42", m) - } -} diff --git a/examples/go/vendor/github_com/user/vendored/BUILD b/examples/go/vendor/github_com/user/vendored/BUILD deleted file mode 100644 index a96b4cef95..0000000000 --- a/examples/go/vendor/github_com/user/vendored/BUILD +++ /dev/null @@ -1,12 +0,0 @@ -package( - default_visibility = ["//visibility:public"], -) - -load("//tools/build_rules/go:def.bzl", "go_library") - -go_library( - name = "go_default_library", - srcs = [ - "vendored.go", - ], -) diff --git a/examples/go/vendor/github_com/user/vendored/vendored.go b/examples/go/vendor/github_com/user/vendored/vendored.go deleted file mode 100644 index 1e9ee6e785..0000000000 --- a/examples/go/vendor/github_com/user/vendored/vendored.go +++ /dev/null @@ -1,6 +0,0 @@ -package vendored - -// Vendored returns a string. -func Vendored() string { - return "I was vendored" -} diff --git a/examples/sass/hello_world/BUILD b/examples/sass/hello_world/BUILD deleted file mode 100644 index ad42b99244..0000000000 --- a/examples/sass/hello_world/BUILD +++ /dev/null @@ -1,13 +0,0 @@ -package(default_visibility = ["//visibility:public"]) - -load("//tools/build_defs/sass:sass.bzl", "sass_binary") - -# Import our shared colors and fonts so we can generate a CSS file. -sass_binary( - name = "hello_world", - src = "main.scss", - deps = [ - "//examples/sass/shared:colors", - "//examples/sass/shared:fonts", - ], -) diff --git a/examples/sass/hello_world/main.scss b/examples/sass/hello_world/main.scss deleted file mode 100644 index 3b560b7bb6..0000000000 --- a/examples/sass/hello_world/main.scss +++ /dev/null @@ -1,13 +0,0 @@ -@import 'examples/sass/shared/fonts'; -@import 'examples/sass/shared/colors'; - -html { - body { - font-family: $default-font-stack; - - h1 { - color: $example-red; - font-family: $modern-font-stack; - } - } -} diff --git a/examples/sass/shared/BUILD b/examples/sass/shared/BUILD deleted file mode 100644 index bc3f3370d8..0000000000 --- a/examples/sass/shared/BUILD +++ /dev/null @@ -1,15 +0,0 @@ -package(default_visibility = ["//visibility:public"]) - -load("//tools/build_defs/sass:sass.bzl", "sass_library") - -# make a :colors target that any sass_binary rules can depend on. -sass_library( - name = "colors", - srcs = ["_colors.scss"], -) - -# make a :fonts target that any sass_binary rules can depend on. -sass_library( - name = "fonts", - srcs = ["_fonts.scss"], -) diff --git a/examples/sass/shared/_colors.scss b/examples/sass/shared/_colors.scss deleted file mode 100644 index cd1430b0a9..0000000000 --- a/examples/sass/shared/_colors.scss +++ /dev/null @@ -1,5 +0,0 @@ -// Colors that all Sass code can share. - -$example-blue: #00f; -$example-red: #f00; -$example-green: #008000; diff --git a/examples/sass/shared/_fonts.scss b/examples/sass/shared/_fonts.scss deleted file mode 100644 index 6fea9aec8d..0000000000 --- a/examples/sass/shared/_fonts.scss +++ /dev/null @@ -1,5 +0,0 @@ -// Fonts that all Sass code can share. - -$default-font-stack: Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif; - -$modern-font-stack: Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif; -- cgit v1.2.3