aboutsummaryrefslogtreecommitdiffstats
path: root/remote-process
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
commitc6de01abbc5539b4eaa7b16f8882f2f22994aaf0 (patch)
tree5770e7a6b7edff90067f8d51b63a53c16cc223be /remote-process
parent7e699468fe1b8a1654905cc4a5978eb35f335475 (diff)
downloadexternal_parameter-framework-c6de01abbc5539b4eaa7b16f8882f2f22994aaf0.zip
external_parameter-framework-c6de01abbc5539b4eaa7b16f8882f2f22994aaf0.tar.gz
external_parameter-framework-c6de01abbc5539b4eaa7b16f8882f2f22994aaf0.tar.bz2
[remote-process] 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: Id3e94c799b98d3414969a184ab8487051d2c2c60 Signed-off-by: Kevin Rocard <kevinx.rocard@intel.com> Reviewed-on: http://android.intel.com:8080/107270 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 'remote-process')
-rw-r--r--remote-process/Android.mk59
1 files changed, 43 insertions, 16 deletions
diff --git a/remote-process/Android.mk b/remote-process/Android.mk
index 4ab2f04..eecd813 100644
--- a/remote-process/Android.mk
+++ b/remote-process/Android.mk
@@ -1,32 +1,59 @@
LOCAL_PATH := $(call my-dir)
-include $(CLEAR_VARS)
+####################
+# Common definitions
-LOCAL_MODULE_PATH :=
+COMMON_SRC_FILES := \
+ main.cpp
+COMMON_MODULE := remote-process
+COMMON_MODULE_TAGS := optional
-LOCAL_SRC_FILES := \
- main.cpp
+COMMON_ERROR_FLAGS := -Wno-non-virtual-dtor
+COMMON_C_INCLUDES := \
+ $(LOCAL_PATH)/../remote-processor/
-LOCAL_MODULE := remote-process
+COMMON_SHARED_LIBRARIES := libremote-processor
-LOCAL_MODULE_TAGS := optional
+#############################
+# Target build
-TARGET_ERROR_FLAGS += -Wno-non-virtual-dtor
+include $(CLEAR_VARS)
-LOCAL_C_INCLUDES += \
- external/stlport/stlport/ \
- bionic/libstdc++ \
- bionic/
+LOCAL_SRC_FILES := $(COMMON_SRC_FILES)
-LOCAL_C_INCLUDES += $(LOCAL_PATH)/../remote-processor/
+LOCAL_MODULE := $(COMMON_MODULE)
+LOCAL_MODULE_TAGS := $(COMMON_MODULE_TAGS)
-LOCAL_SHARED_LIBRARIES := libstlport libicuuc libremote-processor
-LOCAL_STATIC_LIBRARIES :=
+TARGET_ERROR_FLAGS += $(COMMON_ERROR_FLAGS)
+
+LOCAL_C_INCLUDES += \
+ $(COMMON_C_INCLUDES) \
+ external/stlport/stlport/ \
+ bionic/libstdc++ \
+ bionic/
+
+LOCAL_SHARED_LIBRARIES := $(COMMON_SHARED_LIBRARIES) libstlport
-LOCAL_LDLIBS +=
-LOCAL_LDFLAGS +=
include $(BUILD_EXECUTABLE)
+##############################
+# Host build
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(COMMON_SRC_FILES)
+
+LOCAL_MODULE := $(COMMON_MODULE)_host
+LOCAL_MODULE_TAGS := $(COMMON_MODULE_TAGS)
+
+TARGET_ERROR_FLAGS += $(COMMON_ERROR_FLAGS)
+
+LOCAL_C_INCLUDES += \
+ $(COMMON_C_INCLUDES)
+
+LOCAL_SHARED_LIBRARIES := $(COMMON_SHARED_LIBRARIES)
+
+include $(BUILD_HOST_EXECUTABLE)