Laisheng Hu | 33fb67b | 2018-08-27 16:32:06 +0800 | [diff] [blame^] | 1 | AM_CFLAGS = -Werror |
| 2 | AM_CFLAGS += -Wall |
| 3 | AM_CFLAGS += -g -O3 |
| 4 | |
| 5 | AM_CPPFLAGS = -g -O3 |
| 6 | AM_CFLAGS += "-std=c++11" |
| 7 | AM_CPPFLAGS += -Wno-error=unused-variable |
| 8 | AM_CPPFLAGS += -D__unused=__attribute__\(\(__unused__\)\) |
| 9 | |
| 10 | |
| 11 | AM_CPPFLAGS += "-Dstrlcpy=g_strlcpy" |
| 12 | AM_CPPFLAGS += "-Dstrlcat=g_strlcat" |
| 13 | AM_CPPFLAGS += -Wextra |
| 14 | AM_CPPFLAGS += -Wno-missing-field-initializers |
| 15 | AM_CPPFLAGS += -fexceptions |
| 16 | |
| 17 | |
| 18 | AM_CPPFLAGS += -I$(top_srcdir)/mm-core/inc/ |
| 19 | AM_CPPFLAGS += -I$(top_srcdir)/mm-video-v4l2/vidc/common/inc/ |
| 20 | c_sources := PlatformConfig.cpp |
| 21 | c_sources += ConfigParser.cpp |
| 22 | |
| 23 | lib_LTLIBRARIES = libplatformconfig.la |
| 24 | libplatformconfig_la_SOURCES = $(c_sources) |
| 25 | libplatformconfig_la_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC |
| 26 | libplatformconfig_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC |
| 27 | libplatformconfig_la_LIBADD = -lexpat -llog -lcutils -lutils |