diff options
Diffstat (limited to 'Android.mk')
-rw-r--r-- | Android.mk | 49 |
1 files changed, 36 insertions, 13 deletions
@@ -1,17 +1,35 @@ +# Please run this before building +# ./src/csstoh.sh src/powertop.css src/css.h + LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE_TAGS := debug -LOCAL_SHARED_LIBRARIES := libstlport \ - libnl \ - libpci \ - libtraceevnet \ -LOCAL_MODULE := powertop +LOCAL_SHARED_LIBRARIES := libnl + +LOCAL_MODULE := powertop #LOCAL_CFLAGS += -Wall -O2 -g -fno-omit-frame-pointer -fstack-protector -Wshadow -Wformat -D_FORTIFY_SOURCE=2 #LOCAL_CPPFLAGS += -Wall -O2 -g -fno-omit-frame-pointer -LOCAL_C_INCLUDES += external/stlport/stlport/ external/stlport/stlport/stl external/stlport/stlport/using/h/ bionic external/libnl/include/ +LOCAL_CFLAGS += -fexceptions -DHAVE_LIBNL20 +LOCAL_CPPFLAGS += -DPACKAGE_VERSION=\"2.8\" -DPACKAGE=powertop -DHAVE_LIBNL20 -DHAVE_NO_PCI + +LOCAL_C_INCLUDES += bionic external/libnl/include/ + +# ncurses +LOCAL_C_INCLUDES += external/ncurses/include/ +LOCAL_STATIC_LIBRARIES += libncurses + +# pciutils +#LOCAL_C_INCLUDES += external/pciutils/include/ +#LOCAL_STATIC_LIBRARIES += libpci_static + +# libtraceevent +LOCAL_C_INCLUDES += $(LOCAL_PATH)/traceevent/ + +# local includes +LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/ LOCAL_SRC_FILES += \ src/parameters/parameters.cpp \ @@ -21,10 +39,11 @@ LOCAL_SRC_FILES += \ src/process/work.cpp \ src/process/process.cpp \ src/process/timer.cpp \ - src/process/device.cpp \ + src/process/processdevice.cpp \ src/process/interrupt.cpp \ src/process/do_process.cpp \ src/cpu/intel_cpus.cpp \ + src/cpu/intel_gpu.cpp \ src/cpu/cpu.cpp \ src/cpu/cpu_linux.cpp \ src/cpu/cpudevice.cpp \ @@ -34,24 +53,29 @@ LOCAL_SRC_FILES += \ src/cpu/cpu_rapl_device.cpp \ src/cpu/dram_rapl_device.cpp \ src/cpu/rapl/rapl_interface.cpp \ + src/measurement/opal-sensors.cpp \ src/measurement/measurement.cpp \ src/measurement/acpi.cpp \ src/measurement/extech.cpp \ src/measurement/sysfs.cpp \ src/display.cpp \ - src/report.cpp \ + src/report/report.cpp \ + src/report/report-maker.cpp \ + src/report/report-formatter-base.cpp \ + src/report/report-formatter-csv.cpp \ + src/report/report-formatter-html.cpp \ + src/report/report-data-html.cpp \ src/main.cpp \ src/tuning/tuning.cpp \ src/tuning/tuningi2c.cpp \ - src/tuning/usb.cpp \ + src/tuning/tuningusb.cpp \ src/tuning/bluetooth.cpp \ src/tuning/ethernet.cpp \ src/tuning/runtime.cpp \ src/tuning/iw.c \ src/tuning/iw.h \ src/tuning/tunable.cpp \ - src/tuning/sysfs.cpp \ - src/tuning/cpufreq.cpp \ + src/tuning/tuningsysfs.cpp \ src/tuning/wifi.cpp \ src/perf/perf_bundle.cpp \ src/perf/perf.cpp \ @@ -67,12 +91,11 @@ LOCAL_SRC_FILES += \ src/devices/network.cpp \ src/devices/device.cpp \ src/devices/gpu_rapl_device.cpp \ + src/devices/devfreq.cpp \ src/devlist.cpp \ src/calibrate/calibrate.cpp \ src/lib.cpp \ traceevent/event-parse.c \ - traceevent/event-parse.h \ - traceevent/event-utils.h \ traceevent/parse-filter.c \ traceevent/parse-utils.c \ traceevent/trace-seq.c |