| Dan Willemsen | 500d85e | 2016-10-05 14:17:13 -0700 | [diff] [blame] | 1 | cc_library_static { |
| 2 | name: "libRSDispatch", |
| Jiyong Park | 316ffa5 | 2017-08-10 20:37:20 +0900 | [diff] [blame] | 3 | vendor_available: true, |
| Dan Willemsen | 500d85e | 2016-10-05 14:17:13 -0700 | [diff] [blame] | 4 | |
| 5 | srcs: ["rsDispatch.cpp"], |
| 6 | |
| Jiyong Park | 316ffa5 | 2017-08-10 20:37:20 +0900 | [diff] [blame] | 7 | include_dirs: [ |
| 8 | "frameworks/rs", |
| Paul Duffin | fef862b | 2019-07-16 14:24:07 +0100 | [diff] [blame^] | 9 | ], |
| 10 | header_libs: [ |
| 11 | "jni_headers", |
| Jiyong Park | 316ffa5 | 2017-08-10 20:37:20 +0900 | [diff] [blame] | 12 | ], |
| Dan Willemsen | 500d85e | 2016-10-05 14:17:13 -0700 | [diff] [blame] | 13 | |
| 14 | cflags: [ |
| Chih-Hung Hsieh | 24ab176 | 2017-09-29 14:54:13 -0700 | [diff] [blame] | 15 | "-Wall", |
| 16 | "-Werror", |
| Dan Willemsen | 500d85e | 2016-10-05 14:17:13 -0700 | [diff] [blame] | 17 | "-Wno-unused-parameter", |
| Jiyong Park | 48446a8 | 2017-07-10 13:14:41 +0900 | [diff] [blame] | 18 | "-DRS_COMPATIBILITY_LIB", |
| Dan Willemsen | 500d85e | 2016-10-05 14:17:13 -0700 | [diff] [blame] | 19 | ], |
| 20 | |
| Jiyong Park | 316ffa5 | 2017-08-10 20:37:20 +0900 | [diff] [blame] | 21 | |
| Dan Willemsen | 500d85e | 2016-10-05 14:17:13 -0700 | [diff] [blame] | 22 | sdk_version: "9", |
| Jiyong Park | 316ffa5 | 2017-08-10 20:37:20 +0900 | [diff] [blame] | 23 | shared_libs: ["libdl", "liblog"], |
| Dan Willemsen | 500d85e | 2016-10-05 14:17:13 -0700 | [diff] [blame] | 24 | // Used in librsjni, which is built as NDK code => no ASan. |
| 25 | sanitize: { |
| 26 | never: true, |
| 27 | }, |
| 28 | stl: "none", |
| 29 | } |
| Colin Cross | 00b1411 | 2017-04-19 15:23:41 -0700 | [diff] [blame] | 30 | |
| 31 | cc_defaults { |
| 32 | name: "libRScpp-defaults", |
| 33 | defaults: ["rs-version"], |
| 34 | |
| 35 | srcs: [ |
| 36 | "RenderScript.cpp", |
| 37 | "BaseObj.cpp", |
| 38 | "Element.cpp", |
| 39 | "Type.cpp", |
| 40 | "Allocation.cpp", |
| 41 | "Script.cpp", |
| 42 | "ScriptC.cpp", |
| 43 | "ScriptIntrinsics.cpp", |
| 44 | "ScriptIntrinsicBLAS.cpp", |
| 45 | "Sampler.cpp", |
| 46 | |
| 47 | // TODO: make this not a symlink |
| 48 | "rsCppUtils.cpp", |
| 49 | ], |
| 50 | |
| 51 | cflags: [ |
| 52 | "-Werror", |
| 53 | "-Wall", |
| 54 | "-Wextra", |
| 55 | "-Wno-unused-parameter", |
| 56 | "-Wno-unused-variable", |
| 57 | ], |
| 58 | |
| 59 | // We need to export not just rs/cpp but also rs. This is because |
| 60 | // RenderScript.h includes rsCppStructs.h, which includes rs/rsDefines.h. |
| 61 | header_libs: ["rs-headers"], |
| 62 | export_header_lib_headers: ["rs-headers"], |
| 63 | export_include_dirs: ["."], |
| 64 | |
| 65 | shared_libs: [ |
| 66 | "libdl", |
| 67 | "liblog", |
| 68 | "libz", |
| 69 | ], |
| 70 | } |
| 71 | |
| 72 | cc_library { |
| 73 | name: "libRScpp", |
| 74 | defaults: ["libRScpp-defaults"], |
| 75 | |
| 76 | shared_libs: [ |
| 77 | "libgui", |
| 78 | "libutils", |
| 79 | ], |
| 80 | |
| 81 | static_libs: ["libRSDispatch"], |
| 82 | } |
| 83 | |
| 84 | cc_library_static { |
| 85 | name: "libRScpp_static", |
| 86 | defaults: ["libRScpp-defaults"], |
| 87 | |
| 88 | cflags: ["-DRS_COMPATIBILITY_LIB"], |
| 89 | |
| 90 | sdk_version: "9", |
| 91 | whole_static_libs: ["libRSDispatch"], |
| 92 | |
| 93 | ldflags: [ |
| 94 | "-Wl,--exclude-libs,libc++_static.a", |
| 95 | ], |
| 96 | stl: "c++_static", |
| 97 | } |