Zhanglong Xia | 24e5274 | 2023-06-14 05:25:55 +0000 | [diff] [blame^] | 1 | // |
| 2 | // Copyright (c) 2022 Google LLC. |
| 3 | // All rights reserved. |
| 4 | // |
| 5 | // This document is the property of Google LLC, Inc. It is |
| 6 | // considered proprietary and confidential information. |
| 7 | // |
| 8 | // This document may not be reproduced or transmitted in any form, |
| 9 | // in whole or in part, without the express written permission of |
| 10 | // Google LLC. |
| 11 | |
| 12 | cc_defaults { |
| 13 | name: "threadnetwork_service_default", |
| 14 | vintf_fragments: ["threadnetwork-default.xml"], |
| 15 | vendor: true, |
| 16 | relative_install_path: "hw", |
| 17 | |
| 18 | shared_libs: [ |
| 19 | "android.hardware.threadnetwork-V1-ndk", |
| 20 | "libbase", |
| 21 | "libbinder_ndk", |
| 22 | "libcutils", |
| 23 | "liblog", |
| 24 | "libutils", |
| 25 | ], |
| 26 | |
| 27 | cppflags: [ |
| 28 | "-Wno-non-virtual-dtor", |
| 29 | ], |
| 30 | |
| 31 | static_libs: [ |
| 32 | "openthread-common", |
| 33 | "openthread-hdlc", |
| 34 | "openthread-platform", |
| 35 | "openthread-posix", |
| 36 | "openthread-url", |
| 37 | ], |
| 38 | |
| 39 | srcs: [ |
| 40 | "main.cpp", |
| 41 | "service.cpp", |
| 42 | "thread_chip.cpp", |
| 43 | "utils.cpp", |
| 44 | ], |
| 45 | } |
| 46 | |
| 47 | cc_binary { |
| 48 | name: "android.hardware.threadnetwork-service.sim", |
| 49 | defaults: ["threadnetwork_service_default"], |
| 50 | init_rc: ["android.hardware.threadnetwork-service.sim.rc"], |
| 51 | } |
| 52 | |
| 53 | cc_binary { |
| 54 | name: "android.hardware.threadnetwork-service", |
| 55 | defaults: ["threadnetwork_service_default"], |
| 56 | } |