Enable libcxx_static for Windows
am: 5383d2f0ba
Change-Id: I63706cdea1b999a2d60cd04b9c5f5bee6b6f30f4
diff --git a/Android.bp b/Android.bp
index 795ce6a..e9b1008 100644
--- a/Android.bp
+++ b/Android.bp
@@ -70,6 +70,24 @@
linux_bionic: {
enabled: true,
},
+ windows: {
+ enabled: true,
+ cflags: [
+ "-D_LIBCPP_HAS_THREAD_API_WIN32",
+ "-D_LIBCXXABI_BUILDING_LIBRARY",
+ "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
+ "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
+ "-UWIN32_LEAN_AND_MEAN",
+ ],
+ srcs: [
+ "src/support/win32/*.cpp",
+ ]
+ },
+ windows_x86: {
+ cflags: [
+ "-fsjlj-exceptions",
+ ],
+ },
},
}