aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Rocard <kevinx.rocard@intel.com>2013-05-07 17:29:53 +0200
committerDavid Wagner <david.wagner@intel.com>2014-02-12 17:03:54 +0100
commitb9e635ea27a3497d8d0daafafa692b1fd37d634d (patch)
treebc00c16d6d9b3c5051457b4cde261ec20a735ec0
parentc6de01abbc5539b4eaa7b16f8882f2f22994aaf0 (diff)
downloadexternal_parameter-framework-b9e635ea27a3497d8d0daafafa692b1fd37d634d.zip
external_parameter-framework-b9e635ea27a3497d8d0daafafa692b1fd37d634d.tar.gz
external_parameter-framework-b9e635ea27a3497d8d0daafafa692b1fd37d634d.tar.bz2
[utility] Add support for host build
BZ: 107991 In order to generate setting xml at build time, one need to build and run PFW environement on host. Add an host compilation target. Change-Id: I3a8a2b8d0826bcabf76ce6f52f5482044623d87f Signed-off-by: Kevin Rocard <kevinx.rocard@intel.com> Reviewed-on: http://android.intel.com:8080/107271 Reviewed-by: cactus <cactus@intel.com> Reviewed-by: Gonzalve, Sebastien <sebastien.gonzalve@intel.com> Tested-by: Dixon, CharlesX <charlesx.dixon@intel.com> Reviewed-by: buildbot <buildbot@intel.com> Tested-by: buildbot <buildbot@intel.com>
-rw-r--r--utility/Android.mk35
1 files changed, 22 insertions, 13 deletions
diff --git a/utility/Android.mk b/utility/Android.mk
index 21ae2d7..2ec8467 100644
--- a/utility/Android.mk
+++ b/utility/Android.mk
@@ -1,31 +1,40 @@
LOCAL_PATH := $(call my-dir)
-include $(CLEAR_VARS)
-
+####################
+# Common definitions
-LOCAL_SRC_FILES := \
+COMMON_SRC_FILES := \
Tokenizer.cpp \
Utility.cpp
-LOCAL_MODULE := libutility
+COMMON_MODULE := libutility
+COMMON_MODULE_TAGS := optional
-LOCAL_MODULE_TAGS :=
+#############################
+# Target build
+include $(CLEAR_VARS)
-LOCAL_C_INCLUDES +=
+LOCAL_SRC_FILES := $(COMMON_SRC_FILES)
+LOCAL_MODULE := $(COMMON_MODULE)
+LOCAL_MODULE_TAGS := $(COMMON_MODULE_TAGS)
LOCAL_C_INCLUDES += \
- external/stlport/stlport/ \
- bionic/libstdc++ \
- bionic/
+ external/stlport/stlport/ \
+ bionic/libstdc++ \
+ bionic/
-LOCAL_C_INCLUDES +=
+include $(BUILD_STATIC_LIBRARY)
-LOCAL_SHARED_LIBRARIES :=
+##############################
+# Host build
-LOCAL_LDLIBS +=
+include $(CLEAR_VARS)
+LOCAL_SRC_FILES := $(COMMON_SRC_FILES)
-include $(BUILD_STATIC_LIBRARY)
+LOCAL_MODULE := $(COMMON_MODULE)
+LOCAL_MODULE_TAGS := $(COMMON_MODULE_TAGS)
+include $(BUILD_HOST_STATIC_LIBRARY)