summaryrefslogtreecommitdiff
path: root/jni/libsigc++.mk
blob: 91cc98ba960cc123f8ef7c0070255fa87fccff7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
include $(CLEAR_VARS)
LOCAL_MODULE := libsigc++
LOCAL_CPP_EXTENSION := .cc
LOCAL_SRC_FILES := $(wildcard jni/libsigc++/sigc++/*.cc jni/libsigc++/sigc++/functors/*.cc)
LOCAL_C_INCLUDES := jni/libsigc++
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES)

%.h:
        m4 -Ijni/libsigc++/sigc++/macros $(dir $@)/macros/$(notdir $@).m4 > $@

jni/libsigc++/sigc++config.h: jni/libsigc++/sigc++config.h.in jni/libsigc++.config.h
        cat $^ > $@

mkxp: $(subst /macros/,/,$(subst .m4,,$(filter-out %/template.macros.m4, \
      $(wildcard jni/libsigc++/sigc++/macros/*.m4 jni/libsigc++/sigc++/*/macros/*.m4)))) \
      jni/libsigc++/sigc++config.h
include $(BUILD_STATIC_LIBRARY)