Home | History | Annotate | Download | only in parameter-framework
      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 
     29 ifneq ($(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 #
     35 ifeq ($(TARGET_BUILD_VARIANT),user)
     36 PFW_NETWORKING := false
     37 PFW_NETWORKING_SUFFIX := -no-networking
     38 endif
     39 
     40 LOCAL_PATH := $(call my-dir)
     41 
     42 include $(CLEAR_VARS)
     43 include $(LOCAL_PATH)/LibPfwUtility.mk
     44 include $(BUILD_STATIC_LIBRARY)
     45 
     46 include $(CLEAR_VARS)
     47 LOCAL_IS_HOST_MODULE := true
     48 include $(LOCAL_PATH)/LibPfwUtility.mk
     49 include $(BUILD_HOST_STATIC_LIBRARY)
     50 
     51 include $(CLEAR_VARS)
     52 include $(LOCAL_PATH)/LibRemoteProcessor.mk
     53 include $(BUILD_SHARED_LIBRARY)
     54 
     55 include $(CLEAR_VARS)
     56 LOCAL_IS_HOST_MODULE := true
     57 include $(LOCAL_PATH)/LibRemoteProcessor.mk
     58 LOCAL_LDLIBS += -lpthread
     59 include $(BUILD_HOST_SHARED_LIBRARY)
     60 
     61 # build libparameter
     62 include $(CLEAR_VARS)
     63 include $(LOCAL_PATH)/LibParameter.mk
     64 LOCAL_SHARED_LIBRARIES += libicuuc libdl
     65 include $(BUILD_SHARED_LIBRARY)
     66 
     67 include $(CLEAR_VARS)
     68 LOCAL_IS_HOST_MODULE := true
     69 include $(LOCAL_PATH)/LibParameter.mk
     70 LOCAL_SHARED_LIBRARIES += libicuuc-host
     71 LOCAL_LDLIBS := -ldl
     72 include $(BUILD_HOST_SHARED_LIBRARY)
     73 
     74 include $(CLEAR_VARS)
     75 include $(LOCAL_PATH)/TestPlatform.mk
     76 include $(BUILD_EXECUTABLE)
     77 
     78 include $(CLEAR_VARS)
     79 LOCAL_IS_HOST_MODULE := true
     80 include $(LOCAL_PATH)/TestPlatform.mk
     81 LOCAL_LDLIBS := -lpthread
     82 include $(BUILD_HOST_EXECUTABLE)
     83 
     84 ifneq ($(PFW_NETWORKING),false)
     85 
     86 include $(CLEAR_VARS)
     87 include $(LOCAL_PATH)/RemoteProcess.mk
     88 include $(BUILD_EXECUTABLE)
     89 
     90 include $(CLEAR_VARS)
     91 LOCAL_IS_HOST_MODULE := true
     92 include $(LOCAL_PATH)/RemoteProcess.mk
     93 include $(BUILD_HOST_EXECUTABLE)
     94 
     95 endif #ifneq ($(PFW_NETWORKING),false)
     96 
     97 include $(LOCAL_PATH)/XmlGenerator.mk
     98 include $(LOCAL_PATH)/Schemas.mk
     99 
    100 endif #ifneq ($(USE_CUSTOM_PARAMETER_FRAMEWORK), true)
    101