rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | # |
| 2 | # Copyright (C) 2017 MediaTek, Inc. |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at: |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | # This is the root build file for GN. GN will start processing by loading this |
| 17 | # file, and recursively load all dependencies until all dependencies are either |
| 18 | # resolved or known not to exist (which will cause the build to fail). So if |
| 19 | # you add a new build file, there must be some path of dependencies from this |
| 20 | # file to your new one or GN won't know about it. |
| 21 | # This pulls in main/BUILD.gn and all of its dependencies. |
| 22 | |
| 23 | group("bluetooth_boots") { |
| 24 | deps = [ |
| 25 | "//:boots", |
| 26 | "//:boots_srv", |
| 27 | ] |
| 28 | } |
| 29 | |
| 30 | executable("boots") { |
| 31 | output_name = "boots" |
| 32 | sources = [ |
| 33 | "boots.c", |
| 34 | "boots_pkt.c", |
| 35 | "boots_skt.c", |
| 36 | "boots_eth.c", |
| 37 | "boots_uart.c", |
| 38 | "boots_script.c", |
| 39 | "boots_stress.c", |
| 40 | "boots_country.c", |
| 41 | "boots_osi.c", |
| 42 | ] |
| 43 | |
| 44 | libs = [ |
| 45 | "-lpthread" |
| 46 | ] |
| 47 | } |
| 48 | |
| 49 | executable("boots_srv") { |
| 50 | output_name = "boots_srv" |
| 51 | sources = [ |
| 52 | "boots_srv.c", |
| 53 | "boots_btif.c", |
| 54 | "boots_hci.c", |
| 55 | "boots_pkt.c", |
| 56 | "boots_skt.c", |
| 57 | "boots_eth.c", |
| 58 | "boots_mt6xx.c", |
| 59 | "boots_uart.c", |
| 60 | "boots_script.c", |
| 61 | "boots_stress.c", |
| 62 | "boots_osi.c", |
| 63 | ] |
| 64 | |
| 65 | include_dirs = [ |
| 66 | ] |
| 67 | |
| 68 | deps = [ |
| 69 | ] |
| 70 | |
| 71 | cflags_c = [ |
| 72 | ] |
| 73 | |
| 74 | libs = [ |
| 75 | "-lpthread" |
| 76 | ] |
| 77 | } |