diff options
-rw-r--r-- | CMakeLists.txt | 19 | ||||
-rw-r--r-- | parameter/CMakeLists.txt | 176 | ||||
-rw-r--r-- | remote-process/CMakeLists.txt | 8 | ||||
-rw-r--r-- | remote-processor/CMakeLists.txt | 14 | ||||
-rw-r--r-- | test/test-platform/CMakeLists.txt | 12 | ||||
-rw-r--r-- | utility/CMakeLists.txt | 7 | ||||
-rw-r--r-- | xmlserializer/CMakeLists.txt | 16 |
7 files changed, 252 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..283f452 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,19 @@ +# has been tested on 2.8 only - might work on older versions +cmake_minimum_required(VERSION 2.8) + +# linking policy (see cmake --help-policy CMP0003) +if(COMMAND cmake_policy) + cmake_policy(SET CMP0003 NEW) +endif(COMMAND cmake_policy) + +project(parameter-framework) + +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall -Wextra") # -Wno-unused-parameter + +add_subdirectory(xmlserializer) +add_subdirectory(parameter) +add_subdirectory(utility) +add_subdirectory(remote-processor) + +add_subdirectory(remote-process) +add_subdirectory(test/test-platform) diff --git a/parameter/CMakeLists.txt b/parameter/CMakeLists.txt new file mode 100644 index 0000000..9d097da --- /dev/null +++ b/parameter/CMakeLists.txt @@ -0,0 +1,176 @@ +add_library(parameter SHARED + Subsystem.cpp + PathNavigator.cpp + Element.cpp + SystemClass.cpp + Component.cpp + ParameterMgr.cpp + SelectionCriteria.cpp + SelectionCriterionLibrary.cpp + SelectionCriteriaDefinition.cpp + SelectionCriterionType.cpp + ElementLibrary.cpp + SubsystemElementBuilder.cpp + SubsystemLibrary.cpp + SelectionCriterion.cpp + ComponentLibrary.cpp + ParameterBlock.cpp + ConfigurableElement.cpp + MappingData.cpp + ParameterBlackboard.cpp + ComponentType.cpp + TypeElement.cpp + InstanceConfigurableElement.cpp + ComponentInstance.cpp + ParameterBlockType.cpp + ParameterType.cpp + Parameter.cpp + BooleanParameterType.cpp + IntegerParameterType.cpp + ArrayParameter.cpp + InstanceDefinition.cpp + ParameterMgrPlatformConnector.cpp + FixedPointParameterType.cpp + ParameterAccessContext.cpp + XmlFileIncluderElement.cpp + ParameterFrameworkConfiguration.cpp + FrameworkConfigurationGroup.cpp + SubsystemPlugins.cpp + FrameworkConfigurationLocation.cpp + PluginLocation.cpp + KindElement.cpp + ElementLibrarySet.cpp + ErrorContext.cpp + AreaConfiguration.cpp + DomainConfiguration.cpp + ConfigurableDomain.cpp + SyncerSet.cpp + ConfigurableDomains.cpp + BinaryStream.cpp + ConfigurationAccessContext.cpp + XmlElementSerializingContext.cpp + XmlParameterSerializingContext.cpp + XmlDomainSerializingContext.cpp + BinarySerializableElement.cpp + BitwiseAreaConfiguration.cpp + BitParameterBlockType.cpp + BitParameterBlock.cpp + BitParameterType.cpp + BitParameter.cpp + ElementLocator.cpp + ParameterMgrLogger.cpp + AutoLog.cpp + Rule.cpp + CompoundRule.cpp + SelectionCriterionRule.cpp + ConfigurableElementAggregator.cpp + BackSynchronizer.cpp + HardwareBackSynchronizer.cpp + SimulatedBackSynchronizer.cpp + MappingContext.cpp + SubsystemObject.cpp + FormattedSubsystemObject.cpp + SubsystemObjectCreator.cpp + BaseParameter.cpp + AutoLock.cpp + StringParameterType.cpp + StringParameter.cpp + EnumParameterType.cpp + VirtualSubsystem.cpp + VirtualSyncer.cpp + ParameterHandle.cpp + ParameterAdaptation.cpp + LinearParameterAdaptation.cpp + RuleParser.cpp + EnumValuePair.cpp + Subsystem.cpp + PathNavigator.cpp + Element.cpp + SystemClass.cpp + Component.cpp + ParameterMgr.cpp + SelectionCriteria.cpp + SelectionCriterionLibrary.cpp + SelectionCriteriaDefinition.cpp + SelectionCriterionType.cpp + ElementLibrary.cpp + SubsystemElementBuilder.cpp + SubsystemLibrary.cpp + SelectionCriterion.cpp + ComponentLibrary.cpp + ParameterBlock.cpp + ConfigurableElement.cpp + MappingData.cpp + ParameterBlackboard.cpp + ComponentType.cpp + TypeElement.cpp + InstanceConfigurableElement.cpp + ComponentInstance.cpp + ParameterBlockType.cpp + ParameterType.cpp + Parameter.cpp + BooleanParameterType.cpp + IntegerParameterType.cpp + ArrayParameter.cpp + InstanceDefinition.cpp + ParameterMgrPlatformConnector.cpp + FixedPointParameterType.cpp + ParameterAccessContext.cpp + XmlFileIncluderElement.cpp + ParameterFrameworkConfiguration.cpp + FrameworkConfigurationGroup.cpp + SubsystemPlugins.cpp + FrameworkConfigurationLocation.cpp + PluginLocation.cpp + KindElement.cpp + ElementLibrarySet.cpp + ErrorContext.cpp + AreaConfiguration.cpp + DomainConfiguration.cpp + ConfigurableDomain.cpp + SyncerSet.cpp + ConfigurableDomains.cpp + BinaryStream.cpp + ConfigurationAccessContext.cpp + XmlElementSerializingContext.cpp + XmlParameterSerializingContext.cpp + XmlDomainSerializingContext.cpp + BinarySerializableElement.cpp + BitwiseAreaConfiguration.cpp + BitParameterBlockType.cpp + BitParameterBlock.cpp + BitParameterType.cpp + BitParameter.cpp + ElementLocator.cpp + ParameterMgrLogger.cpp + AutoLog.cpp + Rule.cpp + CompoundRule.cpp + SelectionCriterionRule.cpp + ConfigurableElementAggregator.cpp + BackSynchronizer.cpp + HardwareBackSynchronizer.cpp + SimulatedBackSynchronizer.cpp + MappingContext.cpp + SubsystemObject.cpp + FormattedSubsystemObject.cpp + SubsystemObjectCreator.cpp + BaseParameter.cpp + AutoLock.cpp + StringParameterType.cpp + StringParameter.cpp + EnumParameterType.cpp + VirtualSubsystem.cpp + VirtualSyncer.cpp + ParameterHandle.cpp + ParameterAdaptation.cpp + LinearParameterAdaptation.cpp + RuleParser.cpp + EnumValuePair.cpp) + +include_directories("include") +include_directories("${PROJECT_SOURCE_DIR}/xmlserializer") +include_directories("${PROJECT_SOURCE_DIR}/utility") +include_directories("${PROJECT_SOURCE_DIR}/remote-processor") + +target_link_libraries(parameter xmlserializer pfw_utility) diff --git a/remote-process/CMakeLists.txt b/remote-process/CMakeLists.txt new file mode 100644 index 0000000..7f8a5ee --- /dev/null +++ b/remote-process/CMakeLists.txt @@ -0,0 +1,8 @@ +add_executable(remote-process main.cpp) # TODO: WIN32 ? + +# TODO: separate remote-processor's includes in half (public/private) +# And use only public headers here +include_directories("${PROJECT_SOURCE_DIR}/remote-processor") +include_directories("${PROJECT_SOURCE_DIR}/utility") + +target_link_libraries(remote-process remote-processor pfw_utility) diff --git a/remote-processor/CMakeLists.txt b/remote-processor/CMakeLists.txt new file mode 100644 index 0000000..5cecf98 --- /dev/null +++ b/remote-processor/CMakeLists.txt @@ -0,0 +1,14 @@ +add_library(remote-processor SHARED + Socket.cpp + ListeningSocket.cpp + ConnectionSocket.cpp + Message.cpp + RequestMessage.cpp + AnswerMessage.cpp + RemoteProcessorServer.cpp + RemoteProcessorServerBuilder.cpp) + +include(FindThreads) +# TODO: use the "prefer pthread" option; check if we are using pthread (what to +# do else ?) +target_link_libraries(remote-processor ${CMAKE_THREAD_LIBS_INIT}) diff --git a/test/test-platform/CMakeLists.txt b/test/test-platform/CMakeLists.txt new file mode 100644 index 0000000..17979d0 --- /dev/null +++ b/test/test-platform/CMakeLists.txt @@ -0,0 +1,12 @@ +add_executable(test-platform # WIN32 ? + main.cpp + TestPlatform.cpp) + +# FIXME +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-parameter") + +include_directories("${PROJECT_SOURCE_DIR}/parameter/include") +include_directories("${PROJECT_SOURCE_DIR}/remote-processor") +include_directories("${PROJECT_SOURCE_DIR}/utility") + +target_link_libraries(test-platform parameter remote-processor) diff --git a/utility/CMakeLists.txt b/utility/CMakeLists.txt new file mode 100644 index 0000000..ac4d5b7 --- /dev/null +++ b/utility/CMakeLists.txt @@ -0,0 +1,7 @@ +add_library(pfw_utility STATIC + Tokenizer.cpp + Utility.cpp + NaiveTokenizer.cpp) + +# Needed for linking libpfw_utility against shared libraries e.g. libparameter) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") diff --git a/xmlserializer/CMakeLists.txt b/xmlserializer/CMakeLists.txt new file mode 100644 index 0000000..052ca2e --- /dev/null +++ b/xmlserializer/CMakeLists.txt @@ -0,0 +1,16 @@ +add_library(xmlserializer SHARED + XmlElement.cpp + XmlSerializingContext.cpp + XmlDocSource.cpp + XmlDocSink.cpp + XmlMemoryDocSink.cpp + XmlMemoryDocSource.cpp + XmlStringDocSink.cpp + XmlFileDocSink.cpp + XmlFileDocSource.cpp + XmlStringDocSource.cpp) + +include(FindLibXml2) +# TODO: check for the "XInclude" feature in libxml2 +include_directories(${LIBXML2_INCLUDE_DIR}) +target_link_libraries(xmlserializer ${LIBXML2_LIBRARIES}) |