modules/battery: fix compiling on OS X

Summary:
Battery module relies on Apple's CoreFoundation (CF), but CF's CFLAGS
were not provided to this module.

Test Plan: Enlightenment now compiles on OS X.

Reviewers: zmike, raster

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2328
This commit is contained in:
Jean Guyomarc'h 2015-04-09 17:41:22 -04:00 committed by Mike Blumenkrantz
parent 128338952e
commit 0ea7858f77
2 changed files with 3 additions and 2 deletions

View File

@ -644,7 +644,8 @@ have_freebsd="no"
BATTERY_LDFLAGS=
case "$host_os" in
darwin*)
BATTERY_LDFLAGS="-framework Foundation -framework IOKit"
BATTERY_LDFLAGS="${cf_libs}"
BATTERY_CFLAGS="${BATTERY_CFLAGS} ${cf_cflags}"
;;
openbsd*)
have_openbsd="yes"

View File

@ -35,7 +35,7 @@ endif
src_modules_battery_batgetdir = $(batterypkgdir)
src_modules_battery_batget_PROGRAMS = src/modules/battery/batget
src_modules_battery_batget_CPPFLAGS = $(MOD_CPPFLAGS)
src_modules_battery_batget_CPPFLAGS = $(MOD_CPPFLAGS) @BATTERY_CFLAGS@
src_modules_battery_batget_SOURCES = src/modules/battery/batget.c
src_modules_battery_batget_LDADD = @BATTERY_LIBS@
src_modules_battery_batget_LDFLAGS = @BATTERY_LDFLAGS@