1package { 2 default_applicable_licenses: ["Android-Apache-2.0"], 3} 4 5cc_library_static { 6 name: "libRSDispatch", 7 native_bridge_supported: true, 8 vendor_available: true, 9 10 srcs: ["rsDispatch.cpp"], 11 12 include_dirs: [ 13 "frameworks/rs", 14 ], 15 header_libs: [ 16 "jni_headers", 17 ], 18 19 cflags: [ 20 "-Wno-unused-parameter", 21 "-DRS_COMPATIBILITY_LIB", 22 ], 23 24 sdk_version: "9", 25 shared_libs: [ 26 "libdl", 27 "liblog", 28 ], 29 // Used in librsjni, which is built as NDK code => no ASan. 30 sanitize: { 31 never: true, 32 }, 33 stl: "none", 34} 35 36cc_defaults { 37 name: "libRScpp-defaults", 38 defaults: ["rs-version"], 39 40 srcs: [ 41 "RenderScript.cpp", 42 "BaseObj.cpp", 43 "Element.cpp", 44 "Type.cpp", 45 "Allocation.cpp", 46 "Script.cpp", 47 "ScriptC.cpp", 48 "ScriptIntrinsics.cpp", 49 "ScriptIntrinsicBLAS.cpp", 50 "Sampler.cpp", 51 52 // TODO: make this not a symlink 53 "rsCppUtils.cpp", 54 ], 55 56 cflags: [ 57 "-Wno-unused-parameter", 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: [ 62 "jni_headers", 63 "rs-headers", 64 ], 65 export_header_lib_headers: [ 66 "jni_headers", 67 "rs-headers", 68 ], 69 export_include_dirs: ["."], 70 71 shared_libs: [ 72 "libdl", 73 "liblog", 74 ], 75} 76 77cc_library { 78 name: "libRScpp", 79 defaults: ["libRScpp-defaults"], 80 81 header_libs: [ 82 "libarect_headers", 83 "libbase_headers", 84 "libnativebase_headers", 85 "libnativewindow_headers", 86 ], 87 88 shared_libs: [ 89 "libgui", 90 "libutils", 91 ], 92 93 static_libs: ["libRSDispatch"], 94} 95 96cc_library_static { 97 name: "libRScpp_static", 98 defaults: ["libRScpp-defaults"], 99 100 cflags: [ 101 "-Wno-unused-parameter", 102 "-DRS_COMPATIBILITY_LIB", 103 ], 104 105 sdk_version: "9", 106 whole_static_libs: ["libRSDispatch"], 107 108 ldflags: [ 109 "-Wl,--exclude-libs,libc++_static.a", 110 ], 111 stl: "c++_static", 112} 113