aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp23
1 files changed, 22 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index 32aafcd..c77abc6 100644
--- a/Android.bp
+++ b/Android.bp
@@ -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"],
+ },
+ },
}