summaryrefslogtreecommitdiff
path: root/rsApiContext.cpp
diff options
context:
space:
mode:
authorMiao Wang <miaowang@google.com>2017-03-14 14:23:52 -0700
committerMiao Wang <miaowang@google.com>2017-03-15 18:04:29 -0700
commit59f6142d7657e43b4d21e077a28387431db02edf (patch)
tree717db53d36b0d31524044e38e67e5a8403ee387f /rsApiContext.cpp
parenta681bdded5327f682c01b231c64257824e5746d8 (diff)
downloadrs-59f6142d7657e43b4d21e077a28387431db02edf.tar.gz
Remove libgui and libui dependencies for vendor libs.
- This CL removes dependencies on libgui, libui and other remaining dependences, if build with RS_VENDOR_LIB defined. - We cannot remove the dependencies for platform RenderScript CPU fallback, because of the legacy graphics APIs. - Vendor drivers will be built without graphics APIs, the reference build file will be posted in another CL. Bug: 34396220 Test: mm, CTS test pass with the vendor libs. Change-Id: If90b600a58d0f81488f56a1e21ca332f1a235162
Diffstat (limited to 'rsApiContext.cpp')
-rw-r--r--rsApiContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rsApiContext.cpp b/rsApiContext.cpp
index 9912c89b..11609851 100644
--- a/rsApiContext.cpp
+++ b/rsApiContext.cpp
@@ -45,7 +45,7 @@ extern "C" void rsaContextSetNativeLibDir(RsContext con, char *libDir, size_t le
// TODO: Figure out better naming schemes for all the rs* functions.
// Currently they share the same names as the NDK counterparts, and that is
// causing lots of confusion.
-#ifndef RS_COMPATIBILITY_LIB
+#if !defined(RS_VENDOR_LIB) && !defined(RS_COMPATIBILITY_LIB)
extern "C" RsContext rsContextCreateGL(RsDevice vdev, uint32_t version,
uint32_t sdkVersion, RsSurfaceConfig sc,
uint32_t dpi) {