diff options
-rw-r--r-- | Android.bp | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -56,10 +56,31 @@ filegroup { path: "python3/httplib2", } +filegroup { + name: "py2_httplib2_srcs", + srcs: ["python2/httplib2/*.py"], + path: "python2/httplib2", +} + +filegroup { + name: "py3_httplib2_srcs", + srcs: ["python3/httplib2/*.py"], + path: "python3/httplib2", +} + python_library { name: "py-httplib2", host_supported: true, data: [":cacert_data"], pkg_path: "httplib2", - srcs: ["python3/httplib2/*.py"], + version: { + py2: { + enabled: true, + srcs: [":py2_httplib2_srcs"], + }, + py3: { + enabled: true, + srcs: [":py3_httplib2_srcs"], + }, + }, } |