| Guillaume Denneulin | 1080f66 | 2013-12-05 16:24:32 +0100 | [diff] [blame^] | 1 | # INTEL CONFIDENTIAL |
| 2 | # |
| 3 | # Copyright 2013 Intel Corporation All Rights Reserved. |
| 4 | # The source code contained or described herein and all documents |
| 5 | # related to the source code ("Material") are owned by Intel |
| 6 | # Corporation or its suppliers or licensors. Title to the Material |
| 7 | # remains with Intel Corporation or its suppliers and licensors. The |
| 8 | # Material contains trade secrets and proprietary and confidential |
| 9 | # information of Intel or its suppliers and licensors. The Material is |
| 10 | # protected by worldwide copyright and trade secret laws and treaty |
| 11 | # provisions. No part of the Material may be used, copied, reproduced, |
| 12 | # modified, published, uploaded, posted, transmitted, distributed, or |
| 13 | # disclosed in any way without Intel's prior express written permission. |
| 14 | # |
| 15 | # No license under any patent, copyright, trade secret or other |
| 16 | # intellectual property right is granted to or conferred upon you by |
| 17 | # disclosure or delivery of the Materials, either expressly, by |
| 18 | # implication, inducement, estoppel or otherwise. Any license under |
| 19 | # such intellectual property rights must be express and approved by |
| 20 | # Intel in writing. |
| 21 | |
| Kevin Rocard | 6ac99e5 | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 22 | LOCAL_PATH := $(call my-dir) |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 23 | |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 24 | #################### |
| 25 | # Common definitions |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 26 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 27 | common_copy_headers_to := parameter |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 28 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 29 | common_copy_headers := \ |
| Kevin Rocard | a4c39f1 | 2013-05-24 17:23:09 +0200 | [diff] [blame] | 30 | include/ParameterMgrPlatformConnector.h \ |
| 31 | include/SelectionCriterionTypeInterface.h \ |
| 32 | include/SelectionCriterionInterface.h \ |
| 33 | include/ParameterHandle.h |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 34 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 35 | common_src_files := \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 36 | Subsystem.cpp \ |
| 37 | PathNavigator.cpp \ |
| 38 | Element.cpp \ |
| 39 | SystemClass.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 40 | Component.cpp \ |
| 41 | ParameterMgr.cpp \ |
| 42 | SelectionCriteria.cpp \ |
| 43 | SelectionCriterionLibrary.cpp \ |
| 44 | SelectionCriteriaDefinition.cpp \ |
| 45 | SelectionCriterionType.cpp \ |
| 46 | ElementLibrary.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 47 | SubsystemElementBuilder.cpp \ |
| 48 | SubsystemLibrary.cpp \ |
| 49 | SelectionCriterion.cpp \ |
| 50 | ComponentLibrary.cpp \ |
| 51 | ParameterBlock.cpp \ |
| 52 | ConfigurableElement.cpp \ |
| 53 | MappingData.cpp \ |
| 54 | ParameterBlackboard.cpp \ |
| 55 | ComponentType.cpp \ |
| 56 | TypeElement.cpp \ |
| 57 | InstanceConfigurableElement.cpp \ |
| 58 | ComponentInstance.cpp \ |
| 59 | ParameterBlockType.cpp \ |
| 60 | ParameterType.cpp \ |
| 61 | Parameter.cpp \ |
| 62 | BooleanParameterType.cpp \ |
| 63 | IntegerParameterType.cpp \ |
| 64 | ArrayParameter.cpp \ |
| 65 | InstanceDefinition.cpp \ |
| 66 | ParameterMgrPlatformConnector.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 67 | FixedPointParameterType.cpp \ |
| 68 | ParameterAccessContext.cpp \ |
| 69 | XmlFileIncluderElement.cpp \ |
| 70 | ParameterFrameworkConfiguration.cpp \ |
| 71 | FrameworkConfigurationGroup.cpp \ |
| Guillaume Denneulin | a4ec15d | 2012-02-17 14:38:14 +0100 | [diff] [blame] | 72 | SubsystemPlugins.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 73 | FrameworkConfigurationLocation.cpp \ |
| Guillaume Denneulin | a4ec15d | 2012-02-17 14:38:14 +0100 | [diff] [blame] | 74 | PluginLocation.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 75 | KindElement.cpp \ |
| 76 | ElementLibrarySet.cpp \ |
| 77 | ErrorContext.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 78 | AreaConfiguration.cpp \ |
| 79 | DomainConfiguration.cpp \ |
| 80 | ConfigurableDomain.cpp \ |
| 81 | SyncerSet.cpp \ |
| 82 | ConfigurableDomains.cpp \ |
| 83 | BinaryStream.cpp \ |
| 84 | ConfigurationAccessContext.cpp \ |
| 85 | XmlElementSerializingContext.cpp \ |
| 86 | XmlParameterSerializingContext.cpp \ |
| 87 | XmlDomainSerializingContext.cpp \ |
| 88 | BinarySerializableElement.cpp \ |
| Frédéric Boisnard | 9620e44 | 2012-05-30 16:15:02 +0200 | [diff] [blame] | 89 | BitwiseAreaConfiguration.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 90 | BitParameterBlockType.cpp \ |
| 91 | BitParameterBlock.cpp \ |
| 92 | BitParameterType.cpp \ |
| 93 | BitParameter.cpp \ |
| 94 | ElementLocator.cpp \ |
| 95 | ParameterMgrLogger.cpp \ |
| 96 | AutoLog.cpp \ |
| 97 | Rule.cpp \ |
| 98 | CompoundRule.cpp \ |
| 99 | SelectionCriterionRule.cpp \ |
| 100 | ConfigurableElementAggregator.cpp \ |
| 101 | BackSynchronizer.cpp \ |
| 102 | HardwareBackSynchronizer.cpp \ |
| 103 | SimulatedBackSynchronizer.cpp \ |
| 104 | MappingContext.cpp \ |
| 105 | SubsystemObject.cpp \ |
| Frederic Boisnard | 6cae0ec | 2013-05-23 18:48:58 +0200 | [diff] [blame] | 106 | FormattedSubsystemObject.cpp \ |
| Patrick Benavoli | 2ecf900 | 2011-08-31 11:23:24 +0200 | [diff] [blame] | 107 | SubsystemObjectCreator.cpp \ |
| Patrick Benavoli | 1387bda | 2011-08-31 11:23:24 +0200 | [diff] [blame] | 108 | BaseParameter.cpp \ |
| Patrick Benavoli | 1352ae5 | 2011-10-21 16:48:04 +0200 | [diff] [blame] | 109 | AutoLock.cpp \ |
| 110 | StringParameterType.cpp \ |
| Patrick Benavoli | 9fc3c0d | 2011-10-27 14:27:27 +0200 | [diff] [blame] | 111 | StringParameter.cpp \ |
| Patrick Benavoli | 6ccab9d | 2011-11-10 23:21:01 +0100 | [diff] [blame] | 112 | EnumParameterType.cpp \ |
| 113 | VirtualSubsystem.cpp \ |
| Patrick Benavoli | 065264a | 2011-11-20 15:46:41 +0100 | [diff] [blame] | 114 | VirtualSyncer.cpp \ |
| Patrick Benavoli | ee65e6d | 2011-11-20 18:52:24 +0100 | [diff] [blame] | 115 | ParameterHandle.cpp \ |
| 116 | ParameterAdaptation.cpp \ |
| Patrick Benavoli | 0bd5054 | 2011-11-29 11:10:27 +0100 | [diff] [blame] | 117 | LinearParameterAdaptation.cpp \ |
| Patrick Benavoli | 68808c6 | 2012-02-02 17:12:41 +0100 | [diff] [blame] | 118 | RuleParser.cpp \ |
| 119 | EnumValuePair.cpp |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 120 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 121 | common_module := libparameter |
| 122 | common_module_tags := optional |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 123 | |
| Frédéric Boisnard | 11e31ae | 2013-08-06 19:23:46 +0200 | [diff] [blame] | 124 | common_cflags := \ |
| 125 | -Wall \ |
| 126 | -Werror \ |
| 127 | -Wextra \ |
| 128 | -Wno-unused-parameter |
| 129 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 130 | common_c_includes := \ |
| Kevin Rocard | a4c39f1 | 2013-05-24 17:23:09 +0200 | [diff] [blame] | 131 | $(LOCAL_PATH)/include/ \ |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 132 | $(LOCAL_PATH)/../utility/ \ |
| 133 | $(LOCAL_PATH)/../xmlserializer/ \ |
| 134 | $(LOCAL_PATH)/../remote-processor/ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 135 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 136 | common_shared_libraries := libicuuc |
| 137 | common_static_libraries := libxml2 |
| Guillaume Denneulin | 1080f66 | 2013-12-05 16:24:32 +0100 | [diff] [blame^] | 138 | |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 139 | ############################# |
| 140 | # Target build |
| 141 | |
| 142 | include $(CLEAR_VARS) |
| 143 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 144 | LOCAL_COPY_HEADERS_TO := $(common_copy_headers_to) |
| 145 | LOCAL_COPY_HEADERS := $(common_copy_headers) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 146 | |
| 147 | LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES) |
| 148 | |
| Frédéric Boisnard | 11e31ae | 2013-08-06 19:23:46 +0200 | [diff] [blame] | 149 | LOCAL_CFLAGS := $(common_cflags) |
| 150 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 151 | LOCAL_SRC_FILES := $(common_src_files) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 152 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 153 | LOCAL_MODULE := $(common_module) |
| 154 | LOCAL_MODULE_TAGS := $(common_module_tags) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 155 | |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 156 | LOCAL_C_INCLUDES += \ |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 157 | $(common_c_includes) \ |
| Chetan Rao | 55f41bc | 2013-04-29 11:53:42 +0300 | [diff] [blame] | 158 | $(call include-path-for, stlport) \ |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 159 | bionic/ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 160 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 161 | LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) libdl libstlport |
| 162 | LOCAL_STATIC_LIBRARIES := libxmlserializer libutility $(common_static_libraries) |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 163 | |
| 164 | include $(BUILD_SHARED_LIBRARY) |
| 165 | |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 166 | ############################## |
| 167 | # Host build |
| 168 | |
| 169 | include $(CLEAR_VARS) |
| 170 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 171 | LOCAL_COPY_HEADERS_TO := $(common_copy_headers_to) |
| 172 | LOCAL_COPY_HEADERS := $(common_copy_headers) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 173 | |
| Renaud de Chivre | d55f586 | 2013-09-11 14:33:48 +0200 | [diff] [blame] | 174 | LOCAL_CFLAGS := $(common_cflags) -O0 -ggdb |
| Frédéric Boisnard | 11e31ae | 2013-08-06 19:23:46 +0200 | [diff] [blame] | 175 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 176 | LOCAL_SRC_FILES := $(common_src_files) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 177 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 178 | LOCAL_MODULE := $(common_module)_host |
| 179 | LOCAL_MODULE_TAGS := $(common_module_tags) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 180 | |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 181 | LOCAL_C_INCLUDES += \ |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 182 | $(common_c_includes) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 183 | |
| Jin Wei | bf76f6b | 2013-10-22 12:16:27 +0800 | [diff] [blame] | 184 | LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)-host |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 185 | LOCAL_STATIC_LIBRARIES := libxmlserializer_host libutility_host $(common_static_libraries) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 186 | |
| 187 | LOCAL_LDLIBS += -ldl |
| 188 | |
| 189 | include $(BUILD_HOST_SHARED_LIBRARY) |
| Guillaume Denneulin | 1080f66 | 2013-12-05 16:24:32 +0100 | [diff] [blame^] | 190 | |
| 191 | ################################ |
| 192 | # Export includes for plugins (Target build) |
| 193 | |
| 194 | include $(CLEAR_VARS) |
| 195 | |
| 196 | LOCAL_MODULE := $(common_module)_includes |
| 197 | |
| 198 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) |
| 199 | |
| 200 | LOCAL_STATIC_LIBRARIES := \ |
| 201 | libxmlserializer \ |
| 202 | libutility \ |
| 203 | $(common_static_libraries) |
| 204 | |
| 205 | include $(BUILD_STATIC_LIBRARY) |
| 206 | |
| 207 | ################################ |
| 208 | # Export includes for plugins (Host build) |
| 209 | |
| 210 | include $(CLEAR_VARS) |
| 211 | |
| 212 | LOCAL_MODULE := $(common_module)_includes_host |
| 213 | |
| 214 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) |
| 215 | |
| 216 | LOCAL_STATIC_LIBRARIES := \ |
| 217 | libxmlserializer_host \ |
| 218 | libutility_host \ |
| 219 | $(common_static_libraries) |
| 220 | |
| 221 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 222 | |