aboutsummaryrefslogtreecommitdiffstats
path: root/parameter
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
commit7d7de5f13448677f235ce481f6fcc4bdc2d25db7 (patch)
tree5b6891a4c30d23f1659ee647a7cfda457e166c36 /parameter
parentb9e635ea27a3497d8d0daafafa692b1fd37d634d (diff)
downloadexternal_parameter-framework-7d7de5f13448677f235ce481f6fcc4bdc2d25db7.zip
external_parameter-framework-7d7de5f13448677f235ce481f6fcc4bdc2d25db7.tar.gz
external_parameter-framework-7d7de5f13448677f235ce481f6fcc4bdc2d25db7.tar.bz2
[PFW core] 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: I7e3c9731ba855585b9d85e96400ace0a861910e1 Signed-off-by: Kevin Rocard <kevinx.rocard@intel.com> Reviewed-on: http://android.intel.com:8080/107272 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>
Diffstat (limited to 'parameter')
-rw-r--r--parameter/Android.mk78
1 files changed, 59 insertions, 19 deletions
diff --git a/parameter/Android.mk b/parameter/Android.mk
index 2a3de7e..80a0363 100644
--- a/parameter/Android.mk
+++ b/parameter/Android.mk
@@ -1,18 +1,17 @@
LOCAL_PATH := $(call my-dir)
-include $(CLEAR_VARS)
-
-LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)
+####################
+# Common definitions
-LOCAL_COPY_HEADERS_TO := parameter
+COMMON_COPY_HEADERS_TO := parameter
-LOCAL_COPY_HEADERS := \
+COMMON_COPY_HEADERS := \
ParameterMgrPlatformConnector.h \
SelectionCriterionTypeInterface.h \
SelectionCriterionInterface.h \
ParameterHandle.h
-LOCAL_SRC_FILES := \
+COMMON_SRC_FILES := \
Subsystem.cpp \
PathNavigator.cpp \
Element.cpp \
@@ -98,27 +97,68 @@ LOCAL_SRC_FILES := \
RuleParser.cpp \
EnumValuePair.cpp
+COMMON_MODULE := libparameter
+COMMON_MODULE_TAGS := optional
-LOCAL_MODULE := libparameter
+COMMON_ERROR_FLAGS := -Wno-non-virtual-dtor
-LOCAL_MODULE_TAGS := optional
+COMMON_C_INCLUDES := \
+ $(LOCAL_PATH)/../utility/ \
+ $(LOCAL_PATH)/../xmlserializer/ \
+ $(LOCAL_PATH)/../remote-processor/
-TARGET_ERROR_FLAGS += -Wno-non-virtual-dtor
+COMMON_SHARED_LIBRARIES := libicuuc libxmlserializer
+COMMON_STATIC_LIBRARIES := libutility libxml2
-LOCAL_C_INCLUDES += $(LOCAL_PATH)/../utility/ $(LOCAL_PATH)/../xmlserializer/ $(LOCAL_PATH)/../remote-processor/
+#############################
+# Target build
-LOCAL_C_INCLUDES += \
- external/stlport/stlport/ \
- bionic/libstdc++ \
- bionic/
+include $(CLEAR_VARS)
-LOCAL_C_INCLUDES +=
+LOCAL_COPY_HEADERS_TO := $(COMMON_COPY_HEADERS_TO)
+LOCAL_COPY_HEADERS := $(COMMON_COPY_HEADERS)
-LOCAL_SHARED_LIBRARIES := libstlport libdl libxmlserializer
-LOCAL_STATIC_LIBRARIES := libutility
+LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)
+
+LOCAL_SRC_FILES := $(COMMON_SRC_FILES)
+
+LOCAL_MODULE := $(COMMON_MODULE)
+LOCAL_MODULE_TAGS := $(COMMON_MODULE_TAGS)
+
+TARGET_ERROR_FLAGS += $(COMMON_ERROR_FLAGS)
+
+LOCAL_C_INCLUDES += \
+ $(COMMON_C_INCLUDES) \
+ external/stlport/stlport/ \
+ bionic/libstdc++ \
+ bionic/
-LOCAL_LDLIBS +=
-LOCAL_LDFLAGS +=
+LOCAL_SHARED_LIBRARIES := $(COMMON_SHARED_LIBRARIES) libdl libstlport
+LOCAL_STATIC_LIBRARIES := $(COMMON_STATIC_LIBRARIES)
include $(BUILD_SHARED_LIBRARY)
+##############################
+# Host build
+
+include $(CLEAR_VARS)
+
+LOCAL_COPY_HEADERS_TO := $(COMMON_COPY_HEADERS_TO)
+LOCAL_COPY_HEADERS := $(COMMON_COPY_HEADERS)
+
+LOCAL_SRC_FILES := $(COMMON_SRC_FILES)
+
+LOCAL_MODULE := $(COMMON_MODULE)
+LOCAL_MODULE_TAGS := $(COMMON_MODULE_TAGS)
+
+TARGET_ERROR_FLAGS += $(COMMON_ERROR_FLAGS)
+
+LOCAL_C_INCLUDES += \
+ $(COMMON_C_INCLUDES)
+
+LOCAL_SHARED_LIBRARIES := $(COMMON_SHARED_LIBRARIES)
+LOCAL_STATIC_LIBRARIES := $(COMMON_STATIC_LIBRARIES)
+
+LOCAL_LDLIBS += -ldl
+
+include $(BUILD_HOST_SHARED_LIBRARY)