| David Wagner | b76c9d6 | 2014-02-05 18:30:24 +0100 | [diff] [blame] | 1 | # Copyright (c) 2011-2014, Intel Corporation |
| 2 | # All rights reserved. |
| Guillaume Denneulin | 1080f66 | 2013-12-05 16:24:32 +0100 | [diff] [blame] | 3 | # |
| David Wagner | b76c9d6 | 2014-02-05 18:30:24 +0100 | [diff] [blame] | 4 | # Redistribution and use in source and binary forms, with or without modification, |
| 5 | # are permitted provided that the following conditions are met: |
| Guillaume Denneulin | 1080f66 | 2013-12-05 16:24:32 +0100 | [diff] [blame] | 6 | # |
| David Wagner | b76c9d6 | 2014-02-05 18:30:24 +0100 | [diff] [blame] | 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. |
| Guillaume Denneulin | 1080f66 | 2013-12-05 16:24:32 +0100 | [diff] [blame] | 28 | |
| Kevin Rocard | 6ac99e5 | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 29 | LOCAL_PATH := $(call my-dir) |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 30 | |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 31 | #################### |
| 32 | # Common definitions |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 33 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 34 | common_copy_headers_to := parameter |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 35 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 36 | common_copy_headers := \ |
| Kevin Rocard | a4c39f1 | 2013-05-24 17:23:09 +0200 | [diff] [blame] | 37 | include/ParameterMgrPlatformConnector.h \ |
| 38 | include/SelectionCriterionTypeInterface.h \ |
| 39 | include/SelectionCriterionInterface.h \ |
| 40 | include/ParameterHandle.h |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 41 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 42 | common_src_files := \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 43 | Subsystem.cpp \ |
| 44 | PathNavigator.cpp \ |
| 45 | Element.cpp \ |
| 46 | SystemClass.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 47 | ParameterMgr.cpp \ |
| 48 | SelectionCriteria.cpp \ |
| 49 | SelectionCriterionLibrary.cpp \ |
| 50 | SelectionCriteriaDefinition.cpp \ |
| 51 | SelectionCriterionType.cpp \ |
| 52 | ElementLibrary.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 53 | SubsystemElementBuilder.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 54 | SelectionCriterion.cpp \ |
| 55 | ComponentLibrary.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 56 | ConfigurableElement.cpp \ |
| 57 | MappingData.cpp \ |
| 58 | ParameterBlackboard.cpp \ |
| 59 | ComponentType.cpp \ |
| 60 | TypeElement.cpp \ |
| 61 | InstanceConfigurableElement.cpp \ |
| 62 | ComponentInstance.cpp \ |
| 63 | ParameterBlockType.cpp \ |
| 64 | ParameterType.cpp \ |
| 65 | Parameter.cpp \ |
| 66 | BooleanParameterType.cpp \ |
| 67 | IntegerParameterType.cpp \ |
| 68 | ArrayParameter.cpp \ |
| 69 | InstanceDefinition.cpp \ |
| 70 | ParameterMgrPlatformConnector.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 71 | FixedPointParameterType.cpp \ |
| 72 | ParameterAccessContext.cpp \ |
| 73 | XmlFileIncluderElement.cpp \ |
| 74 | ParameterFrameworkConfiguration.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 75 | FrameworkConfigurationLocation.cpp \ |
| Guillaume Denneulin | a4ec15d | 2012-02-17 14:38:14 +0100 | [diff] [blame] | 76 | PluginLocation.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 77 | ElementLibrarySet.cpp \ |
| 78 | ErrorContext.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 79 | AreaConfiguration.cpp \ |
| 80 | DomainConfiguration.cpp \ |
| 81 | ConfigurableDomain.cpp \ |
| 82 | SyncerSet.cpp \ |
| 83 | ConfigurableDomains.cpp \ |
| 84 | BinaryStream.cpp \ |
| 85 | ConfigurationAccessContext.cpp \ |
| 86 | XmlElementSerializingContext.cpp \ |
| 87 | XmlParameterSerializingContext.cpp \ |
| 88 | XmlDomainSerializingContext.cpp \ |
| 89 | BinarySerializableElement.cpp \ |
| Frédéric Boisnard | 9620e44 | 2012-05-30 16:15:02 +0200 | [diff] [blame] | 90 | BitwiseAreaConfiguration.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 91 | BitParameterBlockType.cpp \ |
| 92 | BitParameterBlock.cpp \ |
| 93 | BitParameterType.cpp \ |
| 94 | BitParameter.cpp \ |
| 95 | ElementLocator.cpp \ |
| 96 | ParameterMgrLogger.cpp \ |
| 97 | AutoLog.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 98 | CompoundRule.cpp \ |
| 99 | SelectionCriterionRule.cpp \ |
| 100 | ConfigurableElementAggregator.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 101 | HardwareBackSynchronizer.cpp \ |
| 102 | SimulatedBackSynchronizer.cpp \ |
| 103 | MappingContext.cpp \ |
| 104 | SubsystemObject.cpp \ |
| Frederic Boisnard | 6cae0ec | 2013-05-23 18:48:58 +0200 | [diff] [blame] | 105 | FormattedSubsystemObject.cpp \ |
| Patrick Benavoli | 2ecf900 | 2011-08-31 11:23:24 +0200 | [diff] [blame] | 106 | SubsystemObjectCreator.cpp \ |
| Patrick Benavoli | 1387bda | 2011-08-31 11:23:24 +0200 | [diff] [blame] | 107 | BaseParameter.cpp \ |
| Patrick Benavoli | 1352ae5 | 2011-10-21 16:48:04 +0200 | [diff] [blame] | 108 | StringParameterType.cpp \ |
| Patrick Benavoli | 9fc3c0d | 2011-10-27 14:27:27 +0200 | [diff] [blame] | 109 | StringParameter.cpp \ |
| Patrick Benavoli | 6ccab9d | 2011-11-10 23:21:01 +0100 | [diff] [blame] | 110 | EnumParameterType.cpp \ |
| 111 | VirtualSubsystem.cpp \ |
| Patrick Benavoli | 065264a | 2011-11-20 15:46:41 +0100 | [diff] [blame] | 112 | VirtualSyncer.cpp \ |
| Patrick Benavoli | ee65e6d | 2011-11-20 18:52:24 +0100 | [diff] [blame] | 113 | ParameterHandle.cpp \ |
| 114 | ParameterAdaptation.cpp \ |
| Patrick Benavoli | 0bd5054 | 2011-11-29 11:10:27 +0100 | [diff] [blame] | 115 | LinearParameterAdaptation.cpp \ |
| Patrick Benavoli | 68808c6 | 2012-02-02 17:12:41 +0100 | [diff] [blame] | 116 | RuleParser.cpp \ |
| 117 | EnumValuePair.cpp |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 118 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 119 | common_module := libparameter |
| 120 | common_module_tags := optional |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 121 | |
| Frédéric Boisnard | 11e31ae | 2013-08-06 19:23:46 +0200 | [diff] [blame] | 122 | common_cflags := \ |
| 123 | -Wall \ |
| 124 | -Werror \ |
| 125 | -Wextra \ |
| 126 | -Wno-unused-parameter |
| 127 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 128 | common_c_includes := \ |
| Kevin Rocard | a4c39f1 | 2013-05-24 17:23:09 +0200 | [diff] [blame] | 129 | $(LOCAL_PATH)/include/ \ |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 130 | $(LOCAL_PATH)/../utility/ \ |
| 131 | $(LOCAL_PATH)/../xmlserializer/ \ |
| 132 | $(LOCAL_PATH)/../remote-processor/ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 133 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 134 | common_shared_libraries := libicuuc |
| Guillaume Denneulin | 1080f66 | 2013-12-05 16:24:32 +0100 | [diff] [blame] | 135 | |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 136 | ############################# |
| 137 | # Target build |
| 138 | |
| 139 | include $(CLEAR_VARS) |
| 140 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 141 | LOCAL_COPY_HEADERS_TO := $(common_copy_headers_to) |
| 142 | LOCAL_COPY_HEADERS := $(common_copy_headers) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 143 | |
| Frédéric Boisnard | 11e31ae | 2013-08-06 19:23:46 +0200 | [diff] [blame] | 144 | LOCAL_CFLAGS := $(common_cflags) |
| 145 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 146 | LOCAL_SRC_FILES := $(common_src_files) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 147 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 148 | LOCAL_MODULE := $(common_module) |
| David Wagner | c943ea6 | 2014-08-26 17:41:53 +0200 | [diff] [blame] | 149 | LOCAL_MODULE_OWNER := intel |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 150 | LOCAL_MODULE_TAGS := $(common_module_tags) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 151 | |
| Mattijs Korpershoek | 23124b7 | 2014-06-27 09:58:03 +0200 | [diff] [blame] | 152 | LOCAL_C_INCLUDES := $(common_c_includes) |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 153 | |
| Mattijs Korpershoek | 23124b7 | 2014-06-27 09:58:03 +0200 | [diff] [blame] | 154 | LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) libdl |
| Mattijs Korpershoek | cce85f6 | 2014-04-08 14:10:03 +0200 | [diff] [blame] | 155 | LOCAL_STATIC_LIBRARIES := libxmlserializer libpfw_utility libxml2 |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 156 | |
| David Wagner | 0c872ff | 2014-10-24 16:39:06 +0200 | [diff] [blame] | 157 | LOCAL_CLANG := false |
| Mattijs Korpershoek | 23124b7 | 2014-06-27 09:58:03 +0200 | [diff] [blame] | 158 | include external/stlport/libstlport.mk |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 159 | include $(BUILD_SHARED_LIBRARY) |
| 160 | |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 161 | ############################## |
| 162 | # Host build |
| 163 | |
| 164 | include $(CLEAR_VARS) |
| 165 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 166 | LOCAL_COPY_HEADERS_TO := $(common_copy_headers_to) |
| 167 | LOCAL_COPY_HEADERS := $(common_copy_headers) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 168 | |
| Renaud de Chivre | d55f586 | 2013-09-11 14:33:48 +0200 | [diff] [blame] | 169 | LOCAL_CFLAGS := $(common_cflags) -O0 -ggdb |
| Frédéric Boisnard | 11e31ae | 2013-08-06 19:23:46 +0200 | [diff] [blame] | 170 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 171 | LOCAL_SRC_FILES := $(common_src_files) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 172 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 173 | LOCAL_MODULE := $(common_module)_host |
| David Wagner | c943ea6 | 2014-08-26 17:41:53 +0200 | [diff] [blame] | 174 | LOCAL_MODULE_OWNER := intel |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 175 | LOCAL_MODULE_TAGS := $(common_module_tags) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 176 | |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 177 | LOCAL_C_INCLUDES += \ |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 178 | $(common_c_includes) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 179 | |
| Jin Wei | bf76f6b | 2013-10-22 12:16:27 +0800 | [diff] [blame] | 180 | LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)-host |
| pafonsoX | cef5bbc | 2014-09-01 18:26:22 +0200 | [diff] [blame^] | 181 | LOCAL_STATIC_LIBRARIES := libxmlserializer_host libpfw_utility_host libxml2 |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 182 | |
| 183 | LOCAL_LDLIBS += -ldl |
| 184 | |
| David Wagner | 0c872ff | 2014-10-24 16:39:06 +0200 | [diff] [blame] | 185 | LOCAL_CLANG := false |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 186 | include $(BUILD_HOST_SHARED_LIBRARY) |
| Mattijs Korpershoek | 93f402c | 2014-06-23 18:07:52 +0200 | [diff] [blame] | 187 | |
| 188 | ################################ |
| 189 | # Export includes for plugins (Target build) |
| 190 | |
| 191 | include $(CLEAR_VARS) |
| 192 | |
| 193 | LOCAL_MODULE := $(common_module)_includes |
| David Wagner | c943ea6 | 2014-08-26 17:41:53 +0200 | [diff] [blame] | 194 | LOCAL_MODULE_OWNER := intel |
| Mattijs Korpershoek | 93f402c | 2014-06-23 18:07:52 +0200 | [diff] [blame] | 195 | |
| 196 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) |
| 197 | |
| 198 | LOCAL_STATIC_LIBRARIES := \ |
| 199 | libxmlserializer \ |
| 200 | libpfw_utility \ |
| Mattijs Korpershoek | cce85f6 | 2014-04-08 14:10:03 +0200 | [diff] [blame] | 201 | libxml2 |
| Mattijs Korpershoek | 93f402c | 2014-06-23 18:07:52 +0200 | [diff] [blame] | 202 | |
| 203 | include $(BUILD_STATIC_LIBRARY) |
| 204 | |
| 205 | ################################ |
| 206 | # Export includes for plugins (Host build) |
| 207 | |
| 208 | include $(CLEAR_VARS) |
| 209 | |
| 210 | LOCAL_MODULE := $(common_module)_includes_host |
| David Wagner | c943ea6 | 2014-08-26 17:41:53 +0200 | [diff] [blame] | 211 | LOCAL_MODULE_OWNER := intel |
| Mattijs Korpershoek | 93f402c | 2014-06-23 18:07:52 +0200 | [diff] [blame] | 212 | |
| 213 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) |
| 214 | |
| 215 | LOCAL_STATIC_LIBRARIES := \ |
| 216 | libxmlserializer_host \ |
| 217 | libpfw_utility_host \ |
| Mattijs Korpershoek | cce85f6 | 2014-04-08 14:10:03 +0200 | [diff] [blame] | 218 | libxml2 |
| Mattijs Korpershoek | 93f402c | 2014-06-23 18:07:52 +0200 | [diff] [blame] | 219 | |
| 220 | include $(BUILD_HOST_STATIC_LIBRARY) |