| 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", | 
|  | 11 | ], | 
|  | 12 | static_libs: ["libbase"], | 
|  | 13 | target: { | 
|  | 14 | android: { | 
|  | 15 | shared_libs: ["libdl"], | 
|  | 16 | }, | 
|  | 17 | host: { | 
|  | 18 | host_ldlibs: ["-ldl"], | 
|  | 19 | }, | 
|  | 20 | }, | 
|  | 21 | clang: true, | 
|  | 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 | } |