1# Copyright (c) 2016, Intel Corporation 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without modification, 5# are permitted provided that the following conditions are met: 6# 7# 1. Redistributions of source code must retain the above copyright notice, this 8# list of conditions and the following disclaimer. 9# 10# 2. Redistributions in binary form must reproduce the above copyright notice, 11# this list of conditions and the following disclaimer in the documentation and/or 12# other materials provided with the distribution. 13# 14# 3. Neither the name of the copyright holder nor the names of its contributors 15# may be used to endorse or promote products derived from this software without 16# specific prior written permission. 17# 18# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 19# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 20# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR 22# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 23# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 24# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 25# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 29ifneq ($(USE_CUSTOM_PARAMETER_FRAMEWORK), true) 30 31# 32# Do not allow to use the networking feature through socket (debug purpose of the PFW) 33# for user build. 34# 35ifeq ($(TARGET_BUILD_VARIANT),user) 36PFW_NETWORKING := false 37PFW_NETWORKING_SUFFIX := -no-networking 38endif 39 40LOCAL_PATH := $(call my-dir) 41 42include $(CLEAR_VARS) 43include $(LOCAL_PATH)/LibPfwUtility.mk 44include $(BUILD_STATIC_LIBRARY) 45 46include $(CLEAR_VARS) 47LOCAL_IS_HOST_MODULE := true 48include $(LOCAL_PATH)/LibPfwUtility.mk 49include $(BUILD_HOST_STATIC_LIBRARY) 50 51include $(CLEAR_VARS) 52include $(LOCAL_PATH)/LibRemoteProcessor.mk 53include $(BUILD_SHARED_LIBRARY) 54 55include $(CLEAR_VARS) 56LOCAL_IS_HOST_MODULE := true 57include $(LOCAL_PATH)/LibRemoteProcessor.mk 58LOCAL_LDLIBS += -lpthread 59include $(BUILD_HOST_SHARED_LIBRARY) 60 61# build libparameter 62include $(CLEAR_VARS) 63include $(LOCAL_PATH)/LibParameter.mk 64LOCAL_SHARED_LIBRARIES += libicuuc libdl 65include $(BUILD_SHARED_LIBRARY) 66 67include $(CLEAR_VARS) 68LOCAL_IS_HOST_MODULE := true 69include $(LOCAL_PATH)/LibParameter.mk 70LOCAL_SHARED_LIBRARIES += libicuuc-host 71LOCAL_LDLIBS := -ldl 72include $(BUILD_HOST_SHARED_LIBRARY) 73 74include $(CLEAR_VARS) 75include $(LOCAL_PATH)/TestPlatform.mk 76include $(BUILD_EXECUTABLE) 77 78include $(CLEAR_VARS) 79LOCAL_IS_HOST_MODULE := true 80include $(LOCAL_PATH)/TestPlatform.mk 81LOCAL_LDLIBS := -lpthread 82include $(BUILD_HOST_EXECUTABLE) 83 84ifneq ($(PFW_NETWORKING),false) 85 86include $(CLEAR_VARS) 87include $(LOCAL_PATH)/RemoteProcess.mk 88include $(BUILD_EXECUTABLE) 89 90include $(CLEAR_VARS) 91LOCAL_IS_HOST_MODULE := true 92include $(LOCAL_PATH)/RemoteProcess.mk 93include $(BUILD_HOST_EXECUTABLE) 94 95endif #ifneq ($(PFW_NETWORKING),false) 96 97include $(LOCAL_PATH)/XmlGenerator.mk 98include $(LOCAL_PATH)/Schemas.mk 99 100endif #ifneq ($(USE_CUSTOM_PARAMETER_FRAMEWORK), true) 101