Home | History | Annotate | Download | only in jni
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 include $(CLEAR_VARS)
      4 LOCAL_MODULE := test-c-only-flags
      5 LOCAL_SRC_FILES := test-c-only-flags.cpp
      6 LOCAL_CFLAGS += -Werror
      7 
      8 # LOCAL_CFLAGS is passed for C++ compilation as well.  This is by design
      9 # to save developers from the trouble of specifying flags twice for both
     10 # LOCAL_CFLAGS and LOCAL_CPPFLAGS.  Unfortunately for flags like -std=gnu99
     11 # is harmful to g++ (warning) and clang++ (error)
     12 LOCAL_CONLYFLAGS += -std=gnu99
     13 
     14 include $(BUILD_EXECUTABLE)
     15