From 9ca3fb824639c2f15c104ca99be872e0e55035cb Mon Sep 17 00:00:00 2001 From: Arman Uguray Date: Tue, 26 May 2015 14:50:36 -0700 Subject: [PATCH] build: Add missing copyright headers to new GN build files BUG=21339022 Change-Id: I946fad7bf8116054f9081e064748793e79a6f85a --- .gn | 20 ++++++++++++++++++++ BUILD.gn | 22 ++++++++++++++++++++++ bta/BUILD.gn | 16 ++++++++++++++++ btcore/BUILD.gn | 16 ++++++++++++++++ build/BUILD.gn | 16 ++++++++++++++++ build/config/BUILDCONFIG.gn | 16 ++++++++++++++++ build/toolchain/gcc/BUILD.gn | 23 +++++++++++++++++++---- device/BUILD.gn | 16 ++++++++++++++++ gki/BUILD.gn | 16 ++++++++++++++++ hci/BUILD.gn | 16 ++++++++++++++++ main/BUILD.gn | 16 ++++++++++++++++ osi/BUILD.gn | 16 ++++++++++++++++ stack/BUILD.gn | 16 ++++++++++++++++ utils/BUILD.gn | 16 ++++++++++++++++ 14 files changed, 237 insertions(+), 4 deletions(-) diff --git a/.gn b/.gn index c6fefbae8..901518df0 100644 --- a/.gn +++ b/.gn @@ -1 +1,21 @@ +# +# Copyright (C) 2015 Google, Inc. +# +# 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 used by the GN meta build system to find the root of the source +# tree and to set startup options. For documentation on the values set in this +# file, run "gn help dotfile" at the command line. + buildconfig = "//build/config/BUILDCONFIG.gn" diff --git a/BUILD.gn b/BUILD.gn index 1af5ea4c8..10cefaac3 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -1,3 +1,25 @@ +# +# Copyright (C) 2015 Google, Inc. +# +# 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 is the root build file for GN. GN will start processing by loading this +# file, and recursively load all dependencies until all dependencies are either +# resolved or known not to exist (which will cause the build to fail). So if +# you add a new build file, there must be some path of dependencies from this +# file to your new one or GN won't know about it. + # This pulls in main/BUILD.gn and all of its dependencies. group("bluetooth") { deps = [ diff --git a/bta/BUILD.gn b/bta/BUILD.gn index 1869f39b9..04b75d415 100644 --- a/bta/BUILD.gn +++ b/bta/BUILD.gn @@ -1,3 +1,19 @@ +# +# Copyright (C) 2015 Google, Inc. +# +# 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. +# + source_set("bta") { sources = [ "dm/bta_dm_ci.c", diff --git a/btcore/BUILD.gn b/btcore/BUILD.gn index 202759a38..08c5cb24b 100644 --- a/btcore/BUILD.gn +++ b/btcore/BUILD.gn @@ -1,3 +1,19 @@ +# +# Copyright (C) 2015 Google, Inc. +# +# 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. +# + source_set("btcore") { sources = [ "src/bdaddr.c", diff --git a/build/BUILD.gn b/build/BUILD.gn index a09153409..f7f78c5ee 100644 --- a/build/BUILD.gn +++ b/build/BUILD.gn @@ -1,3 +1,19 @@ +# +# Copyright (C) 2015 Google, Inc. +# +# 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. +# + config("linux") { # TODO: include from system/core, libhardware # TODO: AndroidConfig.h or equivalent diff --git a/build/config/BUILDCONFIG.gn b/build/config/BUILDCONFIG.gn index 9b4d3bf32..82a830a18 100644 --- a/build/config/BUILDCONFIG.gn +++ b/build/config/BUILDCONFIG.gn @@ -1,3 +1,19 @@ +# +# Copyright (C) 2015 Google, Inc. +# +# 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. +# + set_default_toolchain("//build/toolchain/gcc") set_defaults("executable") { diff --git a/build/toolchain/gcc/BUILD.gn b/build/toolchain/gcc/BUILD.gn index e32d750f2..d5a4cf69b 100644 --- a/build/toolchain/gcc/BUILD.gn +++ b/build/toolchain/gcc/BUILD.gn @@ -1,7 +1,18 @@ -# Copyright 2014 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. - +# +# Copyright (C) 2015 Google, Inc. +# +# 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. +# cc = "gcc" cxx = "g++" @@ -35,6 +46,8 @@ toolchain("gcc") { "{{target_out_dir}}/{{target_output_name}}{{output_extension}}", ] default_output_extension = ".a" + + # TODO(armansito): is the following needed? #output_prefix = "lib" } @@ -57,6 +70,8 @@ toolchain("gcc") { ] link_output = soname depend_output = soname + + # TODO(armansito): is the following needed? #output_prefix = "lib" } diff --git a/device/BUILD.gn b/device/BUILD.gn index 41016efb6..d72d57893 100644 --- a/device/BUILD.gn +++ b/device/BUILD.gn @@ -1,3 +1,19 @@ +# +# Copyright (C) 2015 Google, Inc. +# +# 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. +# + source_set("device") { sources = [ "src/classic/peer.c", diff --git a/gki/BUILD.gn b/gki/BUILD.gn index 0e7425927..54b15fa47 100644 --- a/gki/BUILD.gn +++ b/gki/BUILD.gn @@ -1,3 +1,19 @@ +# +# Copyright (C) 2015 Google, Inc. +# +# 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. +# + source_set("gki") { sources = [ "common/gki_buffer.c", diff --git a/hci/BUILD.gn b/hci/BUILD.gn index 96bb12a55..5d9163c07 100644 --- a/hci/BUILD.gn +++ b/hci/BUILD.gn @@ -1,3 +1,19 @@ +# +# Copyright (C) 2015 Google, Inc. +# +# 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. +# + source_set("hci") { sources = [ "src/btsnoop.c", diff --git a/main/BUILD.gn b/main/BUILD.gn index 0c520c885..d92282482 100644 --- a/main/BUILD.gn +++ b/main/BUILD.gn @@ -1,3 +1,19 @@ +# +# Copyright (C) 2015 Google, Inc. +# +# 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. +# + shared_library("bluetooth.default") { # HAL layer sources = [ diff --git a/osi/BUILD.gn b/osi/BUILD.gn index e2af09e22..d5e7ae1a5 100644 --- a/osi/BUILD.gn +++ b/osi/BUILD.gn @@ -1,3 +1,19 @@ +# +# Copyright (C) 2015 Google, Inc. +# +# 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. +# + source_set("osi") { sources = [ "src/alarm.c", diff --git a/stack/BUILD.gn b/stack/BUILD.gn index 5954eb85b..3740a0a6f 100644 --- a/stack/BUILD.gn +++ b/stack/BUILD.gn @@ -1,3 +1,19 @@ +# +# Copyright (C) 2015 Google, Inc. +# +# 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. +# + source_set("stack") { sources = [ "a2dp/a2d_api.c", diff --git a/utils/BUILD.gn b/utils/BUILD.gn index 8d74aead0..961bc7cd7 100644 --- a/utils/BUILD.gn +++ b/utils/BUILD.gn @@ -1,3 +1,19 @@ +# +# Copyright (C) 2015 Google, Inc. +# +# 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. +# + source_set("utils") { sources = [ "src/bt_utils.c" -- 2.11.0