Colin Cross | d4ce20a | 2016-07-27 10:36:36 -0700 | [diff] [blame] | 1 | // Shared library for target |
| 2 | // ======================================================== |
| 3 | cc_library { |
| 4 | name: "libnativeloader", |
| 5 | host_supported: true, |
| 6 | srcs: ["native_loader.cpp"], |
| 7 | shared_libs: [ |
| 8 | "libnativehelper", |
| 9 | "liblog", |
| 10 | "libcutils", |
Zhenhua WANG | f2804e5 | 2016-05-30 11:16:08 +0800 | [diff] [blame] | 11 | "libnativebridge", |
Jaekyun Seok | 86e80b9 | 2016-12-21 14:22:00 +0900 | [diff] [blame] | 12 | "libbase", |
Colin Cross | d4ce20a | 2016-07-27 10:36:36 -0700 | [diff] [blame] | 13 | ], |
Colin Cross | d4ce20a | 2016-07-27 10:36:36 -0700 | [diff] [blame] | 14 | target: { |
| 15 | android: { |
| 16 | shared_libs: ["libdl"], |
| 17 | }, |
| 18 | host: { |
| 19 | host_ldlibs: ["-ldl"], |
| 20 | }, |
| 21 | }, |
Colin Cross | d4ce20a | 2016-07-27 10:36:36 -0700 | [diff] [blame] | 22 | cflags: [ |
| 23 | "-Werror", |
| 24 | "-Wall", |
| 25 | ], |
| 26 | cppflags: [ |
Colin Cross | d4ce20a | 2016-07-27 10:36:36 -0700 | [diff] [blame] | 27 | "-fvisibility=hidden", |
| 28 | ], |
| 29 | export_include_dirs: ["include"], |
| 30 | local_include_dirs: ["include"], |
| 31 | } |