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