Project import generated by Copybara.

GitOrigin-RevId: dac7fecfe1396f0efc737ff446b0f4b7993d328f
diff --git a/Android.mk b/Android.mk
index 5b590ed..70c1559 100644
--- a/Android.mk
+++ b/Android.mk
@@ -1,187 +1,88 @@
 LOCAL_PATH := $(call my-dir)
 
-nspr_cflags := \
-	-UHAVE_CVAR_BUILT_ON_SEM \
-	-UNDEBUG \
-	-fno-inline \
-	-fvisibility=hidden \
-	-nostdinc++ \
-	-pthread \
-	-fexceptions \
-	-DDEBUG=1 \
-	-DFORCE_PR_LOG \
-	-DHAVE_DLADDR=1 \
-	-DHAVE_FCNTL_FILE_LOCKING=1 \
-	-DHAVE_LCHOWN=1 \
-	-DHAVE_SECURE_GETENV=1 \
-	-DHAVE_SETPRIORITY=1 \
-	-DHAVE_STRERROR=1 \
-	-DHAVE_SYSCALL=1 \
-	-DHAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1 \
-	-DHAVE_VISIBILITY_PRAGMA=1 \
-	-DLINUX=1 \
-	-DPACKAGE_BUGREPORT=\"\" \
-	-DPACKAGE_NAME=\"\" \
-	-DPACKAGE_STRING=\"\" \
-	-DPACKAGE_TARNAME=\"\" \
-	-DPACKAGE_URL=\"\" \
-	-DPACKAGE_VERSION=\"\" \
-	-DXP_UNIX=1 \
-	-D_GNU_SOURCE=1 \
-	-D_NSPR_BUILD_ \
-	-D_PR_PTHREADS \
-	-D_REENTRANT \
-	-UANDROID
-
-nspr_includes := \
-	$(LOCAL_PATH)/dist/include/nspr \
-	$(LOCAL_PATH) \
-	$(LOCAL_PATH)/pr/include \
-	$(LOCAL_PATH)/pr/include/private \
-	$(ANDROID_BUILD_TOP)/frameworks/native/include \
-	$(ANDROID_BUILD_TOP)/hardware/libhardware/include \
-	$(ANDROID_BUILD_TOP)/system/core/base/include \
-	$(ANDROID_BUILD_TOP)/system/core/include \
-	$(LOCAL_PATH)/dist/include/nspr
-
-nspr_sources := \
-	pr/src/prvrsion.c \
-	pr/src/io/prfdcach.c \
-	pr/src/io/prmwait.c \
-	pr/src/io/prmapopt.c \
-	pr/src/io/priometh.c \
-	pr/src/io/pripv6.c \
-	pr/src/io/prlayer.c \
-	pr/src/io/prlog.c \
-	pr/src/io/prmmap.c \
-	pr/src/io/prpolevt.c \
-	pr/src/io/prprf.c \
-	pr/src/io/prscanf.c \
-	pr/src/io/prstdio.c \
-	pr/src/threads/prcmon.c \
-	pr/src/threads/prrwlock.c \
-	pr/src/threads/prtpd.c \
-	pr/src/linking/prlink.c \
-	pr/src/malloc/prmalloc.c \
-	pr/src/malloc/prmem.c \
-	pr/src/md/prosdep.c \
-	pr/src/memory/prshm.c \
-	pr/src/memory/prshma.c \
-	pr/src/memory/prseg.c \
-	pr/src/misc/pralarm.c \
-	pr/src/misc/pratom.c \
-	pr/src/misc/prcountr.c \
-	pr/src/misc/prdtoa.c \
-	pr/src/misc/prenv.c \
-	pr/src/misc/prerr.c \
-	pr/src/misc/prerror.c \
-	pr/src/misc/prerrortable.c \
-	pr/src/misc/prinit.c \
-	pr/src/misc/prinrval.c \
-	pr/src/misc/pripc.c \
-	pr/src/misc/prlog2.c \
-	pr/src/misc/prlong.c \
-	pr/src/misc/prnetdb.c \
-	pr/src/misc/praton.c \
-	pr/src/misc/prolock.c \
-	pr/src/misc/prrng.c \
-	pr/src/misc/prsystem.c \
-	pr/src/misc/prthinfo.c \
-	pr/src/misc/prtpool.c \
-	pr/src/misc/prtrace.c \
-	pr/src/misc/prtime.c \
-	pr/src/pthreads/ptsynch.c \
-	pr/src/pthreads/ptio.c \
-	pr/src/pthreads/ptthread.c \
-	pr/src/pthreads/ptmisc.c \
-	pr/src/md/unix/unix.c \
-	pr/src/md/unix/unix_errors.c \
-	pr/src/md/unix/uxproces.c \
-	pr/src/md/unix/uxrng.c \
-	pr/src/md/unix/uxshm.c \
-	pr/src/md/unix/uxwrap.c \
-	pr/src/md/unix/linux.c
-ifeq ($(TARGET_ARCH),x86-64)
-nspr_sources += \
-	pr/src/md/unix/os_Linux_x86_64.s
+ifeq ($(TARGET_PRODUCT),antares)
+android_ndk=${ANDROID_BUILD_TOP}/prebuilts/ndk/current
+android_toolchain=${ANDROID_BUILD_TOP}/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9
+android_platform=${ANDROID_BUILD_TOP}/prebuilts/ndk/current/platforms/android-24/arch-arm64
+android_target=aarch64-linux-android
+HOST_BUILD_TYPE=x86_64-unknown-linux-gnu
+else ifeq ($(TARGET_PRODUCT),iot_cygnus)
+android_ndk=${ANDROID_BUILD_TOP}/prebuilts/ndk/current
+android_toolchain=${ANDROID_BUILD_TOP}/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9
+android_platform=${ANDROID_BUILD_TOP}/prebuilts/ndk/current/platforms/android-24/arch-arm
+android_target=arm-linux-androideabi
+HOST_BUILD_TYPE=x86_64-unknown-linux-gnu
+else
+android_toolchain=${ANDROID_BUILD_TOP}/prebuilt/toolchain/$(TARGET_TOOLS_TRIPLET)
+android_target=$(TARGET_TOOLS_NAME)
 endif
 
-nspr_export_c_include_dirs := \
-	$(LOCAL_PATH)/dist/include \
-	$(LOCAL_PATH)/pr/include
-
-include $(CLEAR_VARS)
+include $(CLEAR_AUTOTOOLS_VARS)
 LOCAL_MODULE := libnspr4
-LOCAL_CFLAGS += $(nspr_cflags)
-LOCAL_C_INCLUDES += $(nspr_includes)
-LOCAL_SRC_FILES += $(nspr_sources)
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(nspr_export_c_include_dirs)
-include $(BUILD_SHARED_LIBRARY)
+#LOCAL_CLANG is required by iot_cygnus script, but not used as compiler
+LOCAL_CLANG := true
+LOCAL_CONFIGURE_OPTIONS := --build=$(HOST_BUILD_TYPE) --target=$(android_target) --with-android-ndk=$(android_ndk) --with-android-toolchain=$(android_toolchain) --with-android-platform=$(android_platform) --disable-cplus --verbose
+LOCAL_CONFIGURE_HOST := $(HOST_BUILD_TYPE)
+LOCAL_CPPFLAGS := -fexceptions
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
+LOCAL_EXPORT_C_INCLUDE_DIRS += $(LOCAL_PATH)/pr/include
+LOCAL_EXPORT_C_INCLUDE_DIRS += $(TARGET_OUT_INTERMEDIATES)/STATIC_LIBRARIES/libnspr4_intermediates/dist/include
+LOCAL_SOURCE_DIR := $(LOCAL_PATH)
+include $(BUILD_AUTOTOOLS_SHARED_LIBRARY)
 
-$(TARGET_OUT_TOOLCHAIN_LIBRARIES)/libnspr4.so: $(LOCAL_BUILT_MODULE)
-	$(ACP) $< $@
+include $(CLEAR_AUTOTOOLS_VARS)
+LOCAL_MODULE := libplc4
+#LOCAL_CLANG is required by iot_cygnus script, but not used as compiler
+LOCAL_CLANG := true
+LOCAL_CONFIGURE_OPTIONS := --build=$(HOST_BUILD_TYPE) --target=$(android_target) --with-android-ndk=$(android_ndk) --with-android-toolchain=$(android_toolchain) --with-android-platform=$(android_platform) --disable-cplus --verbose
+LOCAL_CONFIGURE_HOST := $(HOST_BUILD_TYPE)
+LOCAL_CPPFLAGS := -fexceptions
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
+LOCAL_SOURCE_DIR := $(LOCAL_PATH)
+include $(BUILD_AUTOTOOLS_SHARED_LIBRARY)
 
-include $(CLEAR_VARS)
+include $(CLEAR_AUTOTOOLS_VARS)
+LOCAL_MODULE := libplds4
+#LOCAL_CLANG is required by iot_cygnus script, but not used as compiler
+LOCAL_CLANG := true
+LOCAL_CONFIGURE_OPTIONS := --build=$(HOST_BUILD_TYPE) --target=$(android_target) --with-android-ndk=$(android_ndk) --with-android-toolchain=$(android_toolchain) --with-android-platform=$(android_platform) --disable-cplus --verbose
+LOCAL_CONFIGURE_HOST := $(HOST_BUILD_TYPE)
+LOCAL_CPPFLAGS := -fexceptions
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
+LOCAL_SOURCE_DIR := $(LOCAL_PATH)
+include $(BUILD_AUTOTOOLS_SHARED_LIBRARY)
+
+include $(CLEAR_AUTOTOOLS_VARS)
 LOCAL_MODULE := libnspr4
-LOCAL_CFLAGS += $(nspr_cflags)
-LOCAL_C_INCLUDES += $(nspr_includes)
-LOCAL_SRC_FILES += $(nspr_sources)
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(nspr_export_c_include_dirs)
-include $(BUILD_STATIC_LIBRARY)
+#LOCAL_CLANG is required by iot_cygnus script, but not used as compiler
+LOCAL_CLANG := true
+LOCAL_CONFIGURE_OPTIONS := --build=$(HOST_BUILD_TYPE) --target=$(android_target) --with-android-ndk=$(android_ndk) --with-android-toolchain=$(android_toolchain) --with-android-platform=$(android_platform) --disable-cplus --verbose
+LOCAL_CONFIGURE_HOST := $(HOST_BUILD_TYPE)
+LOCAL_CPPFLAGS := -fexceptions
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
+LOCAL_EXPORT_C_INCLUDE_DIRS += $(LOCAL_PATH)/pr/include
+LOCAL_EXPORT_C_INCLUDE_DIRS += $(TARGET_OUT_INTERMEDIATES)/STATIC_LIBRARIES/libnspr4_intermediates/dist/include
+LOCAL_SOURCE_DIR := $(LOCAL_PATH)
+include $(BUILD_AUTOTOOLS_STATIC_LIBRARY)
 
-plc_sources := \
-	lib/libc/src/plvrsion.c \
-	lib/libc/src/strlen.c \
-	lib/libc/src/strcpy.c \
-	lib/libc/src/strdup.c \
-	lib/libc/src/strcase.c \
-	lib/libc/src/strcat.c \
-	lib/libc/src/strcmp.c \
-	lib/libc/src/strchr.c \
-	lib/libc/src/strpbrk.c \
-	lib/libc/src/strstr.c \
-	lib/libc/src/strtok.c \
-	lib/libc/src/base64.c \
-	lib/libc/src/plerror.c \
-	lib/libc/src/plgetopt.c
-
-include $(CLEAR_VARS)
+include $(CLEAR_AUTOTOOLS_VARS)
 LOCAL_MODULE := libplc4
-LOCAL_CFLAGS += $(nspr_cflags)
-LOCAL_C_INCLUDES += $(nspr_includes)
-LOCAL_SRC_FILES += $(plc_sources)
-LOCAL_SHARED_LIBRARIES := libnspr4
-include $(BUILD_SHARED_LIBRARY)
+#LOCAL_CLANG is required by iot_cygnus script, but not used as compiler
+LOCAL_CLANG := true
+LOCAL_CONFIGURE_OPTIONS := --build=$(HOST_BUILD_TYPE) --target=$(android_target) --with-android-ndk=$(android_ndk) --with-android-toolchain=$(android_toolchain) --with-android-platform=$(android_platform) --disable-cplus --verbose
+LOCAL_CONFIGURE_HOST := $(HOST_BUILD_TYPE)
+LOCAL_CPPFLAGS := -fexceptions
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
+LOCAL_SOURCE_DIR := $(LOCAL_PATH)
+include $(BUILD_AUTOTOOLS_STATIC_LIBRARY)
 
-$(TARGET_OUT_TOOLCHAIN_LIBRARIES)/libplc4.so: $(LOCAL_BUILT_MODULE)
-	$(ACP) $< $@
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := libplc4
-LOCAL_CFLAGS += $(nspr_cflags)
-LOCAL_C_INCLUDES += $(nspr_includes)
-LOCAL_SRC_FILES += $(plc_sources)
-include $(BUILD_STATIC_LIBRARY)
-
-plds_sources := \
-	lib/ds/plarena.c \
-	lib/ds/plhash.c \
-	lib/ds/plvrsion.c
-
-include $(CLEAR_VARS)
+include $(CLEAR_AUTOTOOLS_VARS)
 LOCAL_MODULE := libplds4
-LOCAL_CFLAGS += $(nspr_cflags)
-LOCAL_C_INCLUDES += $(nspr_includes)
-LOCAL_SRC_FILES += $(plds_sources)
-LOCAL_SHARED_LIBRARIES := libnspr4
-include $(BUILD_SHARED_LIBRARY)
-
-$(TARGET_OUT_TOOLCHAIN_LIBRARIES)/libplds4.so: $(LOCAL_BUILT_MODULE)
-	$(ACP) $< $@
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := libplds4
-LOCAL_CFLAGS += $(nspr_cflags)
-LOCAL_C_INCLUDES += $(nspr_includes)
-LOCAL_SRC_FILES += $(plds_sources)
-include $(BUILD_STATIC_LIBRARY)
+#LOCAL_CLANG is required by iot_cygnus script, but not used as compiler
+LOCAL_CLANG := true
+LOCAL_CONFIGURE_OPTIONS := --build=$(HOST_BUILD_TYPE) --target=$(android_target) --with-android-ndk=$(android_ndk) --with-android-toolchain=$(android_toolchain) --with-android-platform=$(android_platform) --disable-cplus --verbose
+LOCAL_CONFIGURE_HOST := $(HOST_BUILD_TYPE)
+LOCAL_CPPFLAGS := -fexceptions
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
+LOCAL_SOURCE_DIR := $(LOCAL_PATH)
+include $(BUILD_AUTOTOOLS_STATIC_LIBRARY)
diff --git a/BUILD.gn b/BUILD.gn
deleted file mode 100644
index cbc8590..0000000
--- a/BUILD.gn
+++ /dev/null
@@ -1,247 +0,0 @@
-
-#eurekaroot = rebase_path("//../../")
-#boostroot = rebase_path("//../../external/boost")
-#target_product = getenv("TARGET_PRODUCT")
-
-import("//chromecast/internal/iot_services/iot_nldaemon/configs.gni")
-
-nl_source_set("nspr4") {
-  cflags_c = [
-    "-UHAVE_CVAR_BUILT_ON_SEM",
-    "-UNDEBUG",
-    "-fno-inline",
-    "-fvisibility=hidden",
-    #"-nostdinc++",
-    #"-pthread",
-    #"-fexceptions",
-    "-Wno-implicit-function-declaration",
-    "-Wno-int-conversion",
-    "-Wno-sign-compare",
-    "-Wno-shadow",
-    "-Wno-unused-result",
-    "-DDEBUG=1",
-    "-DDEBUG_eliribble",
-    "-DFORCE_PR_LOG",
-    "-DHAVE_DLADDR=1",
-    "-DHAVE_FCNTL_FILE_LOCKING=1",
-    "-DHAVE_LCHOWN=1",
-    "-DHAVE_SECURE_GETENV=1",
-    "-DHAVE_SETPRIORITY=1",
-    "-DHAVE_STRERROR=1",
-    "-DHAVE_SYSCALL=1",
-    "-DHAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1",
-    "-DHAVE_VISIBILITY_PRAGMA=1",
-    "-DLINUX=1",
-    "-DPACKAGE_BUGREPORT=\"\"",
-    "-DPACKAGE_NAME=\"\"",
-    "-DPACKAGE_STRING=\"\"",
-    "-DPACKAGE_TARNAME=\"\"",
-    "-DPACKAGE_URL=\"\"",
-    "-DPACKAGE_VERSION=\"\"",
-    "-DXP_UNIX=1",
-    "-D_GNU_SOURCE=1",
-    "-D_NSPR_BUILD_",
-    "-D_PR_PTHREADS",
-    "-D_REENTRANT",
-    "-UANDRO",
-  ]
-
-  sources = [
-    #"pr/src/prvrsion.c",
-    "pr/src/io/prfdcach.c",
-    "pr/src/io/prmwait.c",
-    "pr/src/io/prmapopt.c",
-    "pr/src/io/priometh.c",
-    "pr/src/io/pripv6.c",
-    "pr/src/io/prlayer.c",
-    "pr/src/io/prlog.c",
-    "pr/src/io/prmmap.c",
-    "pr/src/io/prpolevt.c",
-    "pr/src/io/prprf.c",
-    "pr/src/io/prscanf.c",
-    "pr/src/io/prstdio.c",
-    "pr/src/threads/prcmon.c",
-    "pr/src/threads/prrwlock.c",
-    "pr/src/threads/prtpd.c",
-    "pr/src/linking/prlink.c",
-    "pr/src/malloc/prmalloc.c",
-    "pr/src/malloc/prmem.c",
-    "pr/src/md/prosdep.c",
-    "pr/src/memory/prshm.c",
-    "pr/src/memory/prshma.c",
-    "pr/src/memory/prseg.c",
-    "pr/src/misc/pralarm.c",
-    "pr/src/misc/pratom.c",
-    "pr/src/misc/prcountr.c",
-    "pr/src/misc/prdtoa.c",
-    "pr/src/misc/prenv.c",
-    "pr/src/misc/prerr.c",
-    "pr/src/misc/prerror.c",
-    "pr/src/misc/prerrortable.c",
-    "pr/src/misc/prinit.c",
-    "pr/src/misc/prinrval.c",
-    "pr/src/misc/pripc.c",
-    "pr/src/misc/prlog2.c",
-    "pr/src/misc/prlong.c",
-    "pr/src/misc/prnetdb.c",
-    "pr/src/misc/praton.c",
-    "pr/src/misc/prolock.c",
-    "pr/src/misc/prrng.c",
-    "pr/src/misc/prsystem.c",
-    "pr/src/misc/prthinfo.c",
-    "pr/src/misc/prtpool.c",
-    "pr/src/misc/prtrace.c",
-    "pr/src/misc/prtime.c",
-    "pr/src/pthreads/ptsynch.c",
-    "pr/src/pthreads/ptio.c",
-    "pr/src/pthreads/ptthread.c",
-    "pr/src/pthreads/ptmisc.c",
-    "pr/src/md/unix/unix.c",
-    "pr/src/md/unix/unix_errors.c",
-    "pr/src/md/unix/uxproces.c",
-    "pr/src/md/unix/uxrng.c",
-    "pr/src/md/unix/uxshm.c",
-    "pr/src/md/unix/uxwrap.c",
-    "pr/src/md/unix/linux.c",
-  ]
-  
-  include_dirs = [
-    "$eurekaroot/external/nspr",
-    "$eurekaroot/external/nspr/dist/include/nspr",
-    "$eurekaroot/external/nspr/pr/include",
-    "$eurekaroot/external/nspr/pr/include/private",
-    "$eurekaroot/frameworks/native/include",
-    "$eurekaroot/hardware/libhardware/include",
-    "$eurekaroot/system/core/base/include",
-    "$eurekaroot/system/core/include",
-  ]
-}
-
-nl_source_set("plc4") {
-  cflags_c = [
-    "-UHAVE_CVAR_BUILT_ON_SEM",
-    "-UNDEBUG",
-    "-fno-inline",
-    "-fvisibility=hidden",
-    "-nostdinc++",
-    "-pthread",
-    "-fexceptions",
-    "-Wno-implicit-function-declaration",
-    "-Wno-int-conversion",
-    "-Wno-sign-compare",
-    "-Wno-shadow",
-    "-Wno-unused-result",
-    "-DDEBUG=1",
-    "-DDEBUG_eliribble",
-    "-DFORCE_PR_LOG",
-    "-DHAVE_DLADDR=1",
-    "-DHAVE_FCNTL_FILE_LOCKING=1",
-    "-DHAVE_LCHOWN=1",
-    "-DHAVE_SECURE_GETENV=1",
-    "-DHAVE_SETPRIORITY=1",
-    "-DHAVE_STRERROR=1",
-    "-DHAVE_SYSCALL=1",
-    "-DHAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1",
-    "-DHAVE_VISIBILITY_PRAGMA=1",
-    "-DLINUX=1",
-    "-DPACKAGE_BUGREPORT=\"\"",
-    "-DPACKAGE_NAME=\"\"",
-    "-DPACKAGE_STRING=\"\"",
-    "-DPACKAGE_TARNAME=\"\"",
-    "-DPACKAGE_URL=\"\"",
-    "-DPACKAGE_VERSION=\"\"",
-    "-DXP_UNIX=1",
-    "-D_GNU_SOURCE=1",
-    "-D_NSPR_BUILD_",
-    "-D_PR_PTHREADS",
-    "-D_REENTRANT",
-    "-UANDRO",
-  ]
-
-  sources = [
-    "lib/libc/src/plvrsion.c",
-    "lib/libc/src/strlen.c",
-    "lib/libc/src/strcpy.c",
-    "lib/libc/src/strdup.c",
-    "lib/libc/src/strcase.c",
-    "lib/libc/src/strcat.c",
-    "lib/libc/src/strcmp.c",
-    "lib/libc/src/strchr.c",
-    "lib/libc/src/strpbrk.c",
-    "lib/libc/src/strstr.c",
-    "lib/libc/src/strtok.c",
-    "lib/libc/src/base64.c",
-    "lib/libc/src/plerror.c",
-    "lib/libc/src/plgetopt.c",
-  ]
-
-  include_dirs = [
-    "$eurekaroot/external/nspr",
-    "$eurekaroot/external/nspr/dist/include/nspr",
-    "$eurekaroot/external/nspr/pr/include",
-    "$eurekaroot/external/nspr/pr/include/private",
-    "$eurekaroot/frameworks/native/include",
-    "$eurekaroot/hardware/libhardware/include",
-    "$eurekaroot/system/core/base/include",
-    "$eurekaroot/system/core/include",
-  ]
-}
-
-nl_source_set("plds4") {
-  cflags_c = [
-    "-UHAVE_CVAR_BUILT_ON_SEM",
-    "-UNDEBUG",
-    "-fno-inline",
-    "-fvisibility=hidden",
-    "-nostdinc++",
-    "-pthread",
-    "-fexceptions",
-    "-Wno-implicit-function-declaration",
-    "-Wno-int-conversion",
-    "-Wno-sign-compare",
-    "-Wno-shadow",
-    "-Wno-unused-result",
-    "-DDEBUG=1",
-    "-DDEBUG_eliribble",
-    "-DFORCE_PR_LOG",
-    "-DHAVE_DLADDR=1",
-    "-DHAVE_FCNTL_FILE_LOCKING=1",
-    "-DHAVE_LCHOWN=1",
-    "-DHAVE_SECURE_GETENV=1",
-    "-DHAVE_SETPRIORITY=1",
-    "-DHAVE_STRERROR=1",
-    "-DHAVE_SYSCALL=1",
-    "-DHAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1",
-    "-DHAVE_VISIBILITY_PRAGMA=1",
-    "-DLINUX=1",
-    "-DPACKAGE_BUGREPORT=\"\"",
-    "-DPACKAGE_NAME=\"\"",
-    "-DPACKAGE_STRING=\"\"",
-    "-DPACKAGE_TARNAME=\"\"",
-    "-DPACKAGE_URL=\"\"",
-    "-DPACKAGE_VERSION=\"\"",
-    "-DXP_UNIX=1",
-    "-D_GNU_SOURCE=1",
-    "-D_NSPR_BUILD_",
-    "-D_PR_PTHREADS",
-    "-D_REENTRANT",
-    "-UANDRO",
-  ]
-
-  sources = [
-    "lib/ds/plarena.c",
-    "lib/ds/plhash.c",
-    #"lib/ds/plvrsion.c",
-  ]
-
-  include_dirs = [
-    "$eurekaroot/external/nspr",
-    "$eurekaroot/external/nspr/dist/include/nspr",
-    "$eurekaroot/external/nspr/pr/include",
-    "$eurekaroot/external/nspr/pr/include/private",
-    "$eurekaroot/frameworks/native/include",
-    "$eurekaroot/hardware/libhardware/include",
-    "$eurekaroot/system/core/base/include",
-    "$eurekaroot/system/core/include",
-  ]
-}
diff --git a/NOTICE b/NOTICE
deleted file mode 120000
index 7a694c9..0000000
--- a/NOTICE
+++ /dev/null
@@ -1 +0,0 @@
-LICENSE
\ No newline at end of file
diff --git a/dist/include/nspr/_pl_bld.h b/dist/include/nspr/_pl_bld.h
deleted file mode 100644
index 44649ef..0000000
--- a/dist/include/nspr/_pl_bld.h
+++ /dev/null
@@ -1,3 +0,0 @@
-#define _BUILD_STRING "2021-01-27 08:54:24"
-#define _BUILD_TIME 1611766464000000LL
-#define _PRODUCTION "libplds4.so"
diff --git a/dist/include/nspr/_pr_bld.h b/dist/include/nspr/_pr_bld.h
deleted file mode 100644
index 27e96c8..0000000
--- a/dist/include/nspr/_pr_bld.h
+++ /dev/null
@@ -1,3 +0,0 @@
-#define _BUILD_STRING "2021-01-27 08:54:23"
-#define _BUILD_TIME 1611766463000000LL
-#define _PRODUCTION "libnspr4.so"
diff --git a/dist/include/nspr/nspr.h b/dist/include/nspr/nspr.h
deleted file mode 120000
index a97260f..0000000
--- a/dist/include/nspr/nspr.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./nspr.h
\ No newline at end of file
diff --git a/dist/include/nspr/plarena.h b/dist/include/nspr/plarena.h
deleted file mode 120000
index 848346e..0000000
--- a/dist/include/nspr/plarena.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../lib/ds/./plarena.h
\ No newline at end of file
diff --git a/dist/include/nspr/plarenas.h b/dist/include/nspr/plarenas.h
deleted file mode 120000
index 92e43aa..0000000
--- a/dist/include/nspr/plarenas.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../lib/ds/./plarenas.h
\ No newline at end of file
diff --git a/dist/include/nspr/plbase64.h b/dist/include/nspr/plbase64.h
deleted file mode 120000
index c776da5..0000000
--- a/dist/include/nspr/plbase64.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../lib/libc/include/./plbase64.h
\ No newline at end of file
diff --git a/dist/include/nspr/plerror.h b/dist/include/nspr/plerror.h
deleted file mode 120000
index 43536fd..0000000
--- a/dist/include/nspr/plerror.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../lib/libc/include/./plerror.h
\ No newline at end of file
diff --git a/dist/include/nspr/plgetopt.h b/dist/include/nspr/plgetopt.h
deleted file mode 120000
index 9d4e0a2..0000000
--- a/dist/include/nspr/plgetopt.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../lib/libc/include/./plgetopt.h
\ No newline at end of file
diff --git a/dist/include/nspr/plhash.h b/dist/include/nspr/plhash.h
deleted file mode 120000
index 2acff91..0000000
--- a/dist/include/nspr/plhash.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../lib/ds/./plhash.h
\ No newline at end of file
diff --git a/dist/include/nspr/plstr.h b/dist/include/nspr/plstr.h
deleted file mode 120000
index 8200e15..0000000
--- a/dist/include/nspr/plstr.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../lib/libc/include/./plstr.h
\ No newline at end of file
diff --git a/dist/include/nspr/pratom.h b/dist/include/nspr/pratom.h
deleted file mode 120000
index f103077..0000000
--- a/dist/include/nspr/pratom.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./pratom.h
\ No newline at end of file
diff --git a/dist/include/nspr/prbit.h b/dist/include/nspr/prbit.h
deleted file mode 120000
index c057b08..0000000
--- a/dist/include/nspr/prbit.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prbit.h
\ No newline at end of file
diff --git a/dist/include/nspr/prclist.h b/dist/include/nspr/prclist.h
deleted file mode 120000
index ab60d58..0000000
--- a/dist/include/nspr/prclist.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prclist.h
\ No newline at end of file
diff --git a/dist/include/nspr/prcmon.h b/dist/include/nspr/prcmon.h
deleted file mode 120000
index 7c2327d..0000000
--- a/dist/include/nspr/prcmon.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prcmon.h
\ No newline at end of file
diff --git a/dist/include/nspr/prcountr.h b/dist/include/nspr/prcountr.h
deleted file mode 120000
index 2ea34dd..0000000
--- a/dist/include/nspr/prcountr.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prcountr.h
\ No newline at end of file
diff --git a/dist/include/nspr/prcpucfg.h b/dist/include/nspr/prcpucfg.h
deleted file mode 120000
index 33e1936..0000000
--- a/dist/include/nspr/prcpucfg.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/md/./_linux.cfg
\ No newline at end of file
diff --git a/dist/include/nspr/prcvar.h b/dist/include/nspr/prcvar.h
deleted file mode 120000
index e005cf6..0000000
--- a/dist/include/nspr/prcvar.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prcvar.h
\ No newline at end of file
diff --git a/dist/include/nspr/prdtoa.h b/dist/include/nspr/prdtoa.h
deleted file mode 120000
index 5cb4089..0000000
--- a/dist/include/nspr/prdtoa.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prdtoa.h
\ No newline at end of file
diff --git a/dist/include/nspr/prenv.h b/dist/include/nspr/prenv.h
deleted file mode 120000
index f41a4d6..0000000
--- a/dist/include/nspr/prenv.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prenv.h
\ No newline at end of file
diff --git a/dist/include/nspr/prerr.h b/dist/include/nspr/prerr.h
deleted file mode 120000
index 33ad150..0000000
--- a/dist/include/nspr/prerr.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prerr.h
\ No newline at end of file
diff --git a/dist/include/nspr/prerror.h b/dist/include/nspr/prerror.h
deleted file mode 120000
index 3a31317..0000000
--- a/dist/include/nspr/prerror.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prerror.h
\ No newline at end of file
diff --git a/dist/include/nspr/prinet.h b/dist/include/nspr/prinet.h
deleted file mode 120000
index 2615132..0000000
--- a/dist/include/nspr/prinet.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prinet.h
\ No newline at end of file
diff --git a/dist/include/nspr/prinit.h b/dist/include/nspr/prinit.h
deleted file mode 120000
index bb302cc..0000000
--- a/dist/include/nspr/prinit.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prinit.h
\ No newline at end of file
diff --git a/dist/include/nspr/prinrval.h b/dist/include/nspr/prinrval.h
deleted file mode 120000
index 2b46d9d..0000000
--- a/dist/include/nspr/prinrval.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prinrval.h
\ No newline at end of file
diff --git a/dist/include/nspr/prio.h b/dist/include/nspr/prio.h
deleted file mode 120000
index 04eb491..0000000
--- a/dist/include/nspr/prio.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prio.h
\ No newline at end of file
diff --git a/dist/include/nspr/pripcsem.h b/dist/include/nspr/pripcsem.h
deleted file mode 120000
index 63f4248..0000000
--- a/dist/include/nspr/pripcsem.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./pripcsem.h
\ No newline at end of file
diff --git a/dist/include/nspr/private b/dist/include/nspr/private
deleted file mode 120000
index 3cfedeb..0000000
--- a/dist/include/nspr/private
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/private
\ No newline at end of file
diff --git a/dist/include/nspr/prlink.h b/dist/include/nspr/prlink.h
deleted file mode 120000
index 47df7cf..0000000
--- a/dist/include/nspr/prlink.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prlink.h
\ No newline at end of file
diff --git a/dist/include/nspr/prlock.h b/dist/include/nspr/prlock.h
deleted file mode 120000
index 59b7151..0000000
--- a/dist/include/nspr/prlock.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prlock.h
\ No newline at end of file
diff --git a/dist/include/nspr/prlog.h b/dist/include/nspr/prlog.h
deleted file mode 120000
index bad5dbb..0000000
--- a/dist/include/nspr/prlog.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prlog.h
\ No newline at end of file
diff --git a/dist/include/nspr/prlong.h b/dist/include/nspr/prlong.h
deleted file mode 120000
index 462ca92..0000000
--- a/dist/include/nspr/prlong.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prlong.h
\ No newline at end of file
diff --git a/dist/include/nspr/prmem.h b/dist/include/nspr/prmem.h
deleted file mode 120000
index 61262c7..0000000
--- a/dist/include/nspr/prmem.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prmem.h
\ No newline at end of file
diff --git a/dist/include/nspr/prmon.h b/dist/include/nspr/prmon.h
deleted file mode 120000
index 2979778..0000000
--- a/dist/include/nspr/prmon.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prmon.h
\ No newline at end of file
diff --git a/dist/include/nspr/prmwait.h b/dist/include/nspr/prmwait.h
deleted file mode 120000
index 4500793..0000000
--- a/dist/include/nspr/prmwait.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prmwait.h
\ No newline at end of file
diff --git a/dist/include/nspr/prnetdb.h b/dist/include/nspr/prnetdb.h
deleted file mode 120000
index 1cf52a3..0000000
--- a/dist/include/nspr/prnetdb.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prnetdb.h
\ No newline at end of file
diff --git a/dist/include/nspr/prolock.h b/dist/include/nspr/prolock.h
deleted file mode 120000
index 1cd9518..0000000
--- a/dist/include/nspr/prolock.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prolock.h
\ No newline at end of file
diff --git a/dist/include/nspr/prpdce.h b/dist/include/nspr/prpdce.h
deleted file mode 120000
index eab2649..0000000
--- a/dist/include/nspr/prpdce.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prpdce.h
\ No newline at end of file
diff --git a/dist/include/nspr/prprf.h b/dist/include/nspr/prprf.h
deleted file mode 120000
index 3deb84d..0000000
--- a/dist/include/nspr/prprf.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prprf.h
\ No newline at end of file
diff --git a/dist/include/nspr/prproces.h b/dist/include/nspr/prproces.h
deleted file mode 120000
index e18da7f..0000000
--- a/dist/include/nspr/prproces.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prproces.h
\ No newline at end of file
diff --git a/dist/include/nspr/prrng.h b/dist/include/nspr/prrng.h
deleted file mode 120000
index 8ce7946..0000000
--- a/dist/include/nspr/prrng.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prrng.h
\ No newline at end of file
diff --git a/dist/include/nspr/prrwlock.h b/dist/include/nspr/prrwlock.h
deleted file mode 120000
index a1863d6..0000000
--- a/dist/include/nspr/prrwlock.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prrwlock.h
\ No newline at end of file
diff --git a/dist/include/nspr/prshm.h b/dist/include/nspr/prshm.h
deleted file mode 120000
index ff63f50..0000000
--- a/dist/include/nspr/prshm.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prshm.h
\ No newline at end of file
diff --git a/dist/include/nspr/prshma.h b/dist/include/nspr/prshma.h
deleted file mode 120000
index 06b27a1..0000000
--- a/dist/include/nspr/prshma.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prshma.h
\ No newline at end of file
diff --git a/dist/include/nspr/prsystem.h b/dist/include/nspr/prsystem.h
deleted file mode 120000
index 76b1f43..0000000
--- a/dist/include/nspr/prsystem.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prsystem.h
\ No newline at end of file
diff --git a/dist/include/nspr/prthread.h b/dist/include/nspr/prthread.h
deleted file mode 120000
index a7e2d5c..0000000
--- a/dist/include/nspr/prthread.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prthread.h
\ No newline at end of file
diff --git a/dist/include/nspr/prtime.h b/dist/include/nspr/prtime.h
deleted file mode 120000
index a8a62ef..0000000
--- a/dist/include/nspr/prtime.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prtime.h
\ No newline at end of file
diff --git a/dist/include/nspr/prtpool.h b/dist/include/nspr/prtpool.h
deleted file mode 120000
index f372848..0000000
--- a/dist/include/nspr/prtpool.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prtpool.h
\ No newline at end of file
diff --git a/dist/include/nspr/prtrace.h b/dist/include/nspr/prtrace.h
deleted file mode 120000
index 5a9ac52..0000000
--- a/dist/include/nspr/prtrace.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prtrace.h
\ No newline at end of file
diff --git a/dist/include/nspr/prtypes.h b/dist/include/nspr/prtypes.h
deleted file mode 120000
index a6bb42e..0000000
--- a/dist/include/nspr/prtypes.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prtypes.h
\ No newline at end of file
diff --git a/dist/include/nspr/prvrsion.h b/dist/include/nspr/prvrsion.h
deleted file mode 120000
index d0dfbde..0000000
--- a/dist/include/nspr/prvrsion.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prvrsion.h
\ No newline at end of file
diff --git a/dist/include/nspr/prwin16.h b/dist/include/nspr/prwin16.h
deleted file mode 120000
index 73cb594..0000000
--- a/dist/include/nspr/prwin16.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../pr/include/./prwin16.h
\ No newline at end of file