| Kevin Rocard | 6ac99e5 | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 2 | |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 3 | #################### |
| 4 | # Common definitions |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 5 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 6 | common_copy_headers_to := parameter |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 7 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 8 | common_copy_headers := \ |
| Kevin Rocard | a4c39f1 | 2013-05-24 17:23:09 +0200 | [diff] [blame] | 9 | include/ParameterMgrPlatformConnector.h \ |
| 10 | include/SelectionCriterionTypeInterface.h \ |
| 11 | include/SelectionCriterionInterface.h \ |
| 12 | include/ParameterHandle.h |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 13 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 14 | common_src_files := \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 15 | Subsystem.cpp \ |
| 16 | PathNavigator.cpp \ |
| 17 | Element.cpp \ |
| 18 | SystemClass.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 19 | Component.cpp \ |
| 20 | ParameterMgr.cpp \ |
| 21 | SelectionCriteria.cpp \ |
| 22 | SelectionCriterionLibrary.cpp \ |
| 23 | SelectionCriteriaDefinition.cpp \ |
| 24 | SelectionCriterionType.cpp \ |
| 25 | ElementLibrary.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 26 | SubsystemElementBuilder.cpp \ |
| 27 | SubsystemLibrary.cpp \ |
| 28 | SelectionCriterion.cpp \ |
| 29 | ComponentLibrary.cpp \ |
| 30 | ParameterBlock.cpp \ |
| 31 | ConfigurableElement.cpp \ |
| 32 | MappingData.cpp \ |
| 33 | ParameterBlackboard.cpp \ |
| 34 | ComponentType.cpp \ |
| 35 | TypeElement.cpp \ |
| 36 | InstanceConfigurableElement.cpp \ |
| 37 | ComponentInstance.cpp \ |
| 38 | ParameterBlockType.cpp \ |
| 39 | ParameterType.cpp \ |
| 40 | Parameter.cpp \ |
| 41 | BooleanParameterType.cpp \ |
| 42 | IntegerParameterType.cpp \ |
| 43 | ArrayParameter.cpp \ |
| 44 | InstanceDefinition.cpp \ |
| 45 | ParameterMgrPlatformConnector.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 46 | FixedPointParameterType.cpp \ |
| 47 | ParameterAccessContext.cpp \ |
| 48 | XmlFileIncluderElement.cpp \ |
| 49 | ParameterFrameworkConfiguration.cpp \ |
| 50 | FrameworkConfigurationGroup.cpp \ |
| Guillaume Denneulin | a4ec15d | 2012-02-17 14:38:14 +0100 | [diff] [blame] | 51 | SubsystemPlugins.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 52 | FrameworkConfigurationLocation.cpp \ |
| Guillaume Denneulin | a4ec15d | 2012-02-17 14:38:14 +0100 | [diff] [blame] | 53 | PluginLocation.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 54 | KindElement.cpp \ |
| 55 | ElementLibrarySet.cpp \ |
| 56 | ErrorContext.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 57 | AreaConfiguration.cpp \ |
| 58 | DomainConfiguration.cpp \ |
| 59 | ConfigurableDomain.cpp \ |
| 60 | SyncerSet.cpp \ |
| 61 | ConfigurableDomains.cpp \ |
| 62 | BinaryStream.cpp \ |
| 63 | ConfigurationAccessContext.cpp \ |
| 64 | XmlElementSerializingContext.cpp \ |
| 65 | XmlParameterSerializingContext.cpp \ |
| 66 | XmlDomainSerializingContext.cpp \ |
| 67 | BinarySerializableElement.cpp \ |
| Frédéric Boisnard | 9620e44 | 2012-05-30 16:15:02 +0200 | [diff] [blame] | 68 | BitwiseAreaConfiguration.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 69 | BitParameterBlockType.cpp \ |
| 70 | BitParameterBlock.cpp \ |
| 71 | BitParameterType.cpp \ |
| 72 | BitParameter.cpp \ |
| 73 | ElementLocator.cpp \ |
| 74 | ParameterMgrLogger.cpp \ |
| 75 | AutoLog.cpp \ |
| 76 | Rule.cpp \ |
| 77 | CompoundRule.cpp \ |
| 78 | SelectionCriterionRule.cpp \ |
| 79 | ConfigurableElementAggregator.cpp \ |
| 80 | BackSynchronizer.cpp \ |
| 81 | HardwareBackSynchronizer.cpp \ |
| 82 | SimulatedBackSynchronizer.cpp \ |
| 83 | MappingContext.cpp \ |
| 84 | SubsystemObject.cpp \ |
| Frederic Boisnard | 6cae0ec | 2013-05-23 18:48:58 +0200 | [diff] [blame] | 85 | FormattedSubsystemObject.cpp \ |
| Patrick Benavoli | 2ecf900 | 2011-08-31 11:23:24 +0200 | [diff] [blame] | 86 | SubsystemObjectCreator.cpp \ |
| Patrick Benavoli | 1387bda | 2011-08-31 11:23:24 +0200 | [diff] [blame] | 87 | BaseParameter.cpp \ |
| Patrick Benavoli | 1352ae5 | 2011-10-21 16:48:04 +0200 | [diff] [blame] | 88 | AutoLock.cpp \ |
| 89 | StringParameterType.cpp \ |
| Patrick Benavoli | 9fc3c0d | 2011-10-27 14:27:27 +0200 | [diff] [blame] | 90 | StringParameter.cpp \ |
| Patrick Benavoli | 6ccab9d | 2011-11-10 23:21:01 +0100 | [diff] [blame] | 91 | EnumParameterType.cpp \ |
| 92 | VirtualSubsystem.cpp \ |
| Patrick Benavoli | 065264a | 2011-11-20 15:46:41 +0100 | [diff] [blame] | 93 | VirtualSyncer.cpp \ |
| Patrick Benavoli | ee65e6d | 2011-11-20 18:52:24 +0100 | [diff] [blame] | 94 | ParameterHandle.cpp \ |
| 95 | ParameterAdaptation.cpp \ |
| Patrick Benavoli | 0bd5054 | 2011-11-29 11:10:27 +0100 | [diff] [blame] | 96 | LinearParameterAdaptation.cpp \ |
| Patrick Benavoli | 68808c6 | 2012-02-02 17:12:41 +0100 | [diff] [blame] | 97 | RuleParser.cpp \ |
| 98 | EnumValuePair.cpp |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 99 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 100 | common_module := libparameter |
| 101 | common_module_tags := optional |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 102 | |
| Frédéric Boisnard | 11e31ae | 2013-08-06 19:23:46 +0200 | [diff] [blame] | 103 | common_cflags := \ |
| 104 | -Wall \ |
| 105 | -Werror \ |
| 106 | -Wextra \ |
| 107 | -Wno-unused-parameter |
| 108 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 109 | common_c_includes := \ |
| Kevin Rocard | a4c39f1 | 2013-05-24 17:23:09 +0200 | [diff] [blame] | 110 | $(LOCAL_PATH)/include/ \ |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 111 | $(LOCAL_PATH)/../utility/ \ |
| 112 | $(LOCAL_PATH)/../xmlserializer/ \ |
| 113 | $(LOCAL_PATH)/../remote-processor/ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 114 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 115 | common_shared_libraries := libicuuc |
| 116 | common_static_libraries := libxml2 |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 117 | ############################# |
| 118 | # Target build |
| 119 | |
| 120 | include $(CLEAR_VARS) |
| 121 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 122 | LOCAL_COPY_HEADERS_TO := $(common_copy_headers_to) |
| 123 | LOCAL_COPY_HEADERS := $(common_copy_headers) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 124 | |
| 125 | LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES) |
| 126 | |
| Frédéric Boisnard | 11e31ae | 2013-08-06 19:23:46 +0200 | [diff] [blame] | 127 | LOCAL_CFLAGS := $(common_cflags) |
| 128 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 129 | LOCAL_SRC_FILES := $(common_src_files) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 130 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 131 | LOCAL_MODULE := $(common_module) |
| 132 | LOCAL_MODULE_TAGS := $(common_module_tags) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 133 | |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 134 | LOCAL_C_INCLUDES += \ |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 135 | $(common_c_includes) \ |
| Chetan Rao | 55f41bc | 2013-04-29 11:53:42 +0300 | [diff] [blame] | 136 | $(call include-path-for, stlport) \ |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 137 | bionic/ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 138 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 139 | LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) libdl libstlport |
| 140 | LOCAL_STATIC_LIBRARIES := libxmlserializer libutility $(common_static_libraries) |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 141 | |
| 142 | include $(BUILD_SHARED_LIBRARY) |
| 143 | |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 144 | ############################## |
| 145 | # Host build |
| 146 | |
| 147 | include $(CLEAR_VARS) |
| 148 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 149 | LOCAL_COPY_HEADERS_TO := $(common_copy_headers_to) |
| 150 | LOCAL_COPY_HEADERS := $(common_copy_headers) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 151 | |
| Renaud de Chivre | d55f586 | 2013-09-11 14:33:48 +0200 | [diff] [blame^] | 152 | LOCAL_CFLAGS := $(common_cflags) -O0 -ggdb |
| Frédéric Boisnard | 11e31ae | 2013-08-06 19:23:46 +0200 | [diff] [blame] | 153 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 154 | LOCAL_SRC_FILES := $(common_src_files) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 155 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 156 | LOCAL_MODULE := $(common_module)_host |
| 157 | LOCAL_MODULE_TAGS := $(common_module_tags) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 158 | |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 159 | LOCAL_C_INCLUDES += \ |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 160 | $(common_c_includes) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 161 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 162 | LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) |
| 163 | LOCAL_STATIC_LIBRARIES := libxmlserializer_host libutility_host $(common_static_libraries) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 164 | |
| 165 | LOCAL_LDLIBS += -ldl |
| 166 | |
| 167 | include $(BUILD_HOST_SHARED_LIBRARY) |