aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bestas <mkbestas@lineageos.org>2017-12-23 21:35:25 +0200
committerMichael Bestas <mkbestas@lineageos.org>2017-12-23 22:38:03 +0200
commit01a5bcb126b95d49df1df1dff80b8342c77694f6 (patch)
tree8dcf18f53da1ee0a3c15c23d4668f2483b0e7b19
parentf80e577c5973069c1c84d7435eec60adc968da82 (diff)
downloadandroid_external_htop-staging/lineage-15.1.tar.gz
android_external_htop-staging/lineage-15.1.tar.bz2
android_external_htop-staging/lineage-15.1.zip
htop: Add support for android buildsstaging/lineage-15.1lineage-15.1
Change-Id: I0d9ee32a1e367c367dbb576c505d2537b3d0e52b
-rw-r--r--Android.mk75
-rw-r--r--config.h222
2 files changed, 297 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
new file mode 100644
index 0000000..782d15d
--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,75 @@
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_CFLAGS := \
+ -pedantic -Wall -Wextra -std=c99 -DSYSCONFDIR=\"/system/etc\"
+
+LOCAL_C_INCLUDES := \
+ $(LOCAL_PATH) \
+ $(LOCAL_PATH)/linux \
+ external/libncurses/include
+
+LOCAL_SRC_FILES := \
+ Action.c \
+ Affinity.c \
+ AffinityPanel.c \
+ AvailableColumnsPanel.c \
+ AvailableMetersPanel.c \
+ BatteryMeter.c \
+ CPUMeter.c \
+ CRT.c \
+ CategoriesPanel.c \
+ CheckItem.c \
+ ClockMeter.c \
+ ColorsPanel.c \
+ ColumnsPanel.c \
+ DisplayOptionsPanel.c \
+ EnvScreen.c \
+ FunctionBar.c \
+ Hashtable.c \
+ Header.c \
+ HostnameMeter.c \
+ IncSet.c \
+ InfoScreen.c \
+ ListItem.c \
+ LoadAverageMeter.c \
+ MainPanel.c \
+ MemoryMeter.c \
+ Meter.c \
+ MetersPanel.c \
+ Object.c \
+ OpenFilesScreen.c \
+ Panel.c \
+ Process.c \
+ ProcessList.c \
+ RichString.c \
+ ScreenManager.c \
+ Settings.c \
+ SignalsPanel.c \
+ StringUtils.c \
+ SwapMeter.c \
+ TasksMeter.c \
+ TraceScreen.c \
+ UptimeMeter.c \
+ UsersTable.c \
+ Vector.c \
+ XAlloc.c \
+ htop.c \
+ linux/Battery.c \
+ linux/IOPriority.c \
+ linux/IOPriorityPanel.c \
+ linux/LinuxCRT.c \
+ linux/LinuxProcess.c \
+ linux/LinuxProcessList.c \
+ linux/Platform.c
+
+LOCAL_SHARED_LIBRARIES := libncurses
+
+LOCAL_MODULE_TAGS := optional
+
+LOCAL_MODULE := htop
+
+LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
+
+include $(BUILD_EXECUTABLE)
diff --git a/config.h b/config.h
new file mode 100644
index 0000000..cd846e4
--- /dev/null
+++ b/config.h
@@ -0,0 +1,222 @@
+/* config.h. Generated from config.h.in by configure. */
+/* config.h.in. Generated from configure.ac by autoheader. */
+
+/* Define to 1 if the `closedir' function returns void instead of `int'. */
+/* #undef CLOSEDIR_VOID */
+
+/* Copyright message. */
+#define COPYRIGHT "(C) 2004-2017 Hisham Muhammad"
+
+/* Define if ancient vserver support enabled. */
+/* #undef HAVE_ANCIENT_VSERVER */
+
+/* Define if cgroup support enabled. */
+/* #undef HAVE_CGROUP */
+
+/* Define to 1 if you have the <curses.h> header file. */
+#define HAVE_CURSES_H 1
+
+/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
+ */
+#define HAVE_DIRENT_H 1
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#define HAVE_DLFCN_H 1
+
+/* Define to 1 if you have the <execinfo.h> header file. */
+/* #undef HAVE_EXECINFO_H */
+
+/* Define to 1 if you have the <hwloc.h> header file. */
+/* #undef HAVE_HWLOC_H */
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#define HAVE_INTTYPES_H 1
+
+/* Define to 1 if you have the `hwloc' library (-lhwloc). */
+/* #undef HAVE_LIBHWLOC */
+
+/* Define to 1 if you have the `kvm' library (-lkvm). */
+/* #undef HAVE_LIBKVM */
+
+/* Define to 1 if you have the `m' library (-lm). */
+#define HAVE_LIBM 1
+
+/* The library is present. */
+#define HAVE_LIBNCURSES 1
+
+/* The library is present. */
+/* #undef HAVE_LIBNCURSESW */
+
+/* Define if Linux sched_setaffinity and sched_getaffinity are to be used. */
+#define HAVE_LINUX_AFFINITY 1
+
+/* Define to 1 if you have the `memmove' function. */
+#define HAVE_MEMMOVE 1
+
+/* Define to 1 if you have the <memory.h> header file. */
+#define HAVE_MEMORY_H 1
+
+/* Define to 1 if you have the <ncursesw/curses.h> header file. */
+/* #undef HAVE_NCURSESW_CURSES_H */
+
+/* Define to 1 if you have the <ncurses/curses.h> header file. */
+/* #undef HAVE_NCURSES_CURSES_H */
+
+/* Define to 1 if you have the <ncurses.h> header file. */
+/* #undef HAVE_NCURSES_H */
+
+/* Define to 1 if you have the <ncurses/ncurses.h> header file. */
+/* #undef HAVE_NCURSES_NCURSES_H */
+
+/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
+/* #undef HAVE_NDIR_H */
+
+/* Define if openvz support enabled. */
+/* #undef HAVE_OPENVZ */
+
+/* Define if using a Linux-compatible proc filesystem. */
+/* #undef HAVE_PROC */
+
+/* Define to 1 if `stat' has the bug that it succeeds when given the
+ zero-length file name argument. */
+/* #undef HAVE_STAT_EMPTY_STRING_BUG */
+
+/* Define to 1 if stdbool.h conforms to C99. */
+#define HAVE_STDBOOL_H 1
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#define HAVE_STDINT_H 1
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#define HAVE_STDLIB_H 1
+
+/* Define to 1 if you have the `strdup' function. */
+#define HAVE_STRDUP 1
+
+/* Define to 1 if you have the <strings.h> header file. */
+#define HAVE_STRINGS_H 1
+
+/* Define to 1 if you have the <string.h> header file. */
+#define HAVE_STRING_H 1
+
+/* Define to 1 if you have the `strncasecmp' function. */
+#define HAVE_STRNCASECMP 1
+
+/* Define to 1 if you have the `strstr' function. */
+#define HAVE_STRSTR 1
+
+/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
+ */
+/* #undef HAVE_SYS_DIR_H */
+
+/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
+ */
+/* #undef HAVE_SYS_NDIR_H */
+
+/* Define to 1 if you have the <sys/param.h> header file. */
+#define HAVE_SYS_PARAM_H 1
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#define HAVE_SYS_STAT_H 1
+
+/* Define to 1 if you have the <sys/time.h> header file. */
+#define HAVE_SYS_TIME_H 1
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define if taskstats support enabled. */
+#define HAVE_TASKSTATS 1
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#define HAVE_UNISTD_H 1
+
+/* Define if vserver support enabled. */
+/* #undef HAVE_VSERVER */
+
+/* Define to 1 if the system has the type `_Bool'. */
+#define HAVE__BOOL 1
+
+/* Define to 1 if `lstat' dereferences a symlink specified with a trailing
+ slash. */
+#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
+
+/* Define to the sub-directory where libtool stores uninstalled libraries. */
+#define LT_OBJDIR ".libs/"
+
+/* Name of package */
+#define PACKAGE "htop"
+
+/* Define to the address where bug reports for this package should be sent. */
+#define PACKAGE_BUGREPORT "hisham@gobolinux.org"
+
+/* Define to the full name of this package. */
+#define PACKAGE_NAME "htop"
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING "htop 2.0.2"
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME "htop"
+
+/* Define to the home page for this package. */
+#define PACKAGE_URL ""
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION "2.0.2"
+
+/* Path of proc filesystem */
+#define PROCDIR "/proc"
+
+/* Define as the return type of signal handlers (`int' or `void'). */
+#define RETSIGTYPE void
+
+/* Define to 1 if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Enable extensions on AIX 3, Interix. */
+#ifndef _ALL_SOURCE
+# define _ALL_SOURCE 1
+#endif
+/* Enable GNU extensions on systems that have them. */
+#ifndef _GNU_SOURCE
+# define _GNU_SOURCE 1
+#endif
+/* Enable threading extensions on Solaris. */
+#ifndef _POSIX_PTHREAD_SEMANTICS
+# define _POSIX_PTHREAD_SEMANTICS 1
+#endif
+/* Enable extensions on HP NonStop. */
+#ifndef _TANDEM_SOURCE
+# define _TANDEM_SOURCE 1
+#endif
+/* Enable general extensions on Solaris. */
+#ifndef __EXTENSIONS__
+# define __EXTENSIONS__ 1
+#endif
+
+
+/* Version number of package */
+#define VERSION "2.0.2"
+
+/* Define to 1 if on MINIX. */
+/* #undef _MINIX */
+
+/* Define to 2 if the system does not provide POSIX.1 features except with
+ this defined. */
+/* #undef _POSIX_1_SOURCE */
+
+/* Define to 1 if you need to in order for `stat' and other things to work. */
+/* #undef _POSIX_SOURCE */
+
+/* Define to empty if `const' does not conform to ANSI C. */
+/* #undef const */
+
+/* Define to `int' if <sys/types.h> doesn't define. */
+/* #undef gid_t */
+
+/* Define to `int' if <sys/types.h> does not define. */
+/* #undef pid_t */
+
+/* Define to `int' if <sys/types.h> doesn't define. */
+/* #undef uid_t */