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