| 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 \ |
| 19 | ElementBuilder.cpp \ |
| 20 | Component.cpp \ |
| 21 | ParameterMgr.cpp \ |
| 22 | SelectionCriteria.cpp \ |
| 23 | SelectionCriterionLibrary.cpp \ |
| 24 | SelectionCriteriaDefinition.cpp \ |
| 25 | SelectionCriterionType.cpp \ |
| 26 | ElementLibrary.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 27 | SubsystemElementBuilder.cpp \ |
| 28 | SubsystemLibrary.cpp \ |
| 29 | SelectionCriterion.cpp \ |
| 30 | ComponentLibrary.cpp \ |
| 31 | ParameterBlock.cpp \ |
| 32 | ConfigurableElement.cpp \ |
| 33 | MappingData.cpp \ |
| 34 | ParameterBlackboard.cpp \ |
| 35 | ComponentType.cpp \ |
| 36 | TypeElement.cpp \ |
| 37 | InstanceConfigurableElement.cpp \ |
| 38 | ComponentInstance.cpp \ |
| 39 | ParameterBlockType.cpp \ |
| 40 | ParameterType.cpp \ |
| 41 | Parameter.cpp \ |
| 42 | BooleanParameterType.cpp \ |
| 43 | IntegerParameterType.cpp \ |
| 44 | ArrayParameter.cpp \ |
| 45 | InstanceDefinition.cpp \ |
| 46 | ParameterMgrPlatformConnector.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 47 | FixedPointParameterType.cpp \ |
| 48 | ParameterAccessContext.cpp \ |
| 49 | XmlFileIncluderElement.cpp \ |
| 50 | ParameterFrameworkConfiguration.cpp \ |
| 51 | FrameworkConfigurationGroup.cpp \ |
| Guillaume Denneulin | a4ec15d | 2012-02-17 14:38:14 +0100 | [diff] [blame] | 52 | SubsystemPlugins.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 53 | FrameworkConfigurationLocation.cpp \ |
| Guillaume Denneulin | a4ec15d | 2012-02-17 14:38:14 +0100 | [diff] [blame] | 54 | PluginLocation.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 55 | KindElement.cpp \ |
| 56 | ElementLibrarySet.cpp \ |
| 57 | ErrorContext.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 58 | AreaConfiguration.cpp \ |
| 59 | DomainConfiguration.cpp \ |
| 60 | ConfigurableDomain.cpp \ |
| 61 | SyncerSet.cpp \ |
| 62 | ConfigurableDomains.cpp \ |
| 63 | BinaryStream.cpp \ |
| 64 | ConfigurationAccessContext.cpp \ |
| 65 | XmlElementSerializingContext.cpp \ |
| 66 | XmlParameterSerializingContext.cpp \ |
| 67 | XmlDomainSerializingContext.cpp \ |
| 68 | BinarySerializableElement.cpp \ |
| Frédéric Boisnard | 9620e44 | 2012-05-30 16:15:02 +0200 | [diff] [blame] | 69 | BitwiseAreaConfiguration.cpp \ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 70 | BitParameterBlockType.cpp \ |
| 71 | BitParameterBlock.cpp \ |
| 72 | BitParameterType.cpp \ |
| 73 | BitParameter.cpp \ |
| 74 | ElementLocator.cpp \ |
| 75 | ParameterMgrLogger.cpp \ |
| 76 | AutoLog.cpp \ |
| 77 | Rule.cpp \ |
| 78 | CompoundRule.cpp \ |
| 79 | SelectionCriterionRule.cpp \ |
| 80 | ConfigurableElementAggregator.cpp \ |
| 81 | BackSynchronizer.cpp \ |
| 82 | HardwareBackSynchronizer.cpp \ |
| 83 | SimulatedBackSynchronizer.cpp \ |
| 84 | MappingContext.cpp \ |
| 85 | SubsystemObject.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 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 103 | common_c_includes := \ |
| Kevin Rocard | a4c39f1 | 2013-05-24 17:23:09 +0200 | [diff] [blame] | 104 | $(LOCAL_PATH)/include/ \ |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 105 | $(LOCAL_PATH)/../utility/ \ |
| 106 | $(LOCAL_PATH)/../xmlserializer/ \ |
| 107 | $(LOCAL_PATH)/../remote-processor/ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 108 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 109 | common_shared_libraries := libicuuc |
| 110 | common_static_libraries := libxml2 |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 111 | ############################# |
| 112 | # Target build |
| 113 | |
| 114 | include $(CLEAR_VARS) |
| 115 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 116 | LOCAL_COPY_HEADERS_TO := $(common_copy_headers_to) |
| 117 | LOCAL_COPY_HEADERS := $(common_copy_headers) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 118 | |
| 119 | LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES) |
| 120 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 121 | LOCAL_SRC_FILES := $(common_src_files) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 122 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 123 | LOCAL_MODULE := $(common_module) |
| 124 | LOCAL_MODULE_TAGS := $(common_module_tags) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 125 | |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 126 | LOCAL_C_INCLUDES += \ |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 127 | $(common_c_includes) \ |
| Chetan Rao | 55f41bc | 2013-04-29 11:53:42 +0300 | [diff] [blame^] | 128 | $(call include-path-for, stlport) \ |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 129 | bionic/ |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 130 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 131 | LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) libdl libstlport |
| 132 | LOCAL_STATIC_LIBRARIES := libxmlserializer libutility $(common_static_libraries) |
| Patrick Benavoli | 68a9128 | 2011-08-31 11:23:23 +0200 | [diff] [blame] | 133 | |
| 134 | include $(BUILD_SHARED_LIBRARY) |
| 135 | |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 136 | ############################## |
| 137 | # Host 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 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 144 | LOCAL_SRC_FILES := $(common_src_files) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 145 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 146 | LOCAL_MODULE := $(common_module)_host |
| 147 | LOCAL_MODULE_TAGS := $(common_module_tags) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 148 | |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 149 | LOCAL_C_INCLUDES += \ |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 150 | $(common_c_includes) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 151 | |
| Kevin Rocard | 310c499 | 2013-06-24 18:12:18 +0200 | [diff] [blame] | 152 | LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) |
| 153 | LOCAL_STATIC_LIBRARIES := libxmlserializer_host libutility_host $(common_static_libraries) |
| Kevin Rocard | 7d7de5f | 2013-05-07 17:29:53 +0200 | [diff] [blame] | 154 | |
| 155 | LOCAL_LDLIBS += -ldl |
| 156 | |
| 157 | include $(BUILD_HOST_SHARED_LIBRARY) |