From dcbc3ecc3ac9dbf1065161422467658a3cc5dc4e Mon Sep 17 00:00:00 2001 From: Mattijs Korpershoek Date: Thu, 17 Apr 2014 16:02:07 +0200 Subject: Added copying of xsd files to host build output BZ: 188323 In order to validate the .xml parameter framework files, we use XSDs. Those must be in the same directory as the .xml files when they are validated. This patch copies the .xsd files towards a directory that hostDomainGenerator knows, so that he can use the files and copy them towards /tmp. Change-Id: I938fc3791006777ff65c96d4259596111f93d7b8 Signed-off-by: Mattijs Korpershoek --- Schemas/Android.mk | 132 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 Schemas/Android.mk (limited to 'Schemas') diff --git a/Schemas/Android.mk b/Schemas/Android.mk new file mode 100644 index 0000000..c7d7dca --- /dev/null +++ b/Schemas/Android.mk @@ -0,0 +1,132 @@ +# INTEL CONFIDENTIAL +# Copyright (c) 2014 Intel +# Corporation All Rights Reserved. +# +# The source code contained or described herein and all documents related to +# the source code ("Material") are owned by Intel Corporation or its suppliers +# or licensors. Title to the Material remains with Intel Corporation or its +# suppliers and licensors. The Material contains trade secrets and proprietary +# and confidential information of Intel or its suppliers and licensors. The +# Material is protected by worldwide copyright and trade secret laws and +# treaty provisions. No part of the Material may be used, copied, reproduced, +# modified, published, uploaded, posted, transmitted, distributed, or +# disclosed in any way without Intel's prior express written permission. +# +# No license under any patent, copyright, trade secret or other intellectual +# property right is granted to or conferred upon you by disclosure or delivery +# of the Materials, either expressly, by implication, inducement, estoppel or +# otherwise. Any license under such intellectual property rights must be +# express and approved by Intel in writing. + +LOCAL_PATH := $(call my-dir) + +# Phony package containing XSD files +################################################## + +include $(CLEAR_VARS) +LOCAL_MODULE := parameter-framework.schemas +LOCAL_IS_HOST_MODULE := true +LOCAL_MODULE_PATH := $(HOST_OUT)/etc/parameter-framework/Schemas +LOCAL_REQUIRED_MODULES := \ + ParameterFrameworkConfiguration.xsd \ + ConfigurableDomains.xsd \ + SystemClass.xsd +include $(BUILD_PHONY_PACKAGE) + +# Resources are not compiled so the prebuild mechanism is used to export them. +# Schemas are only used by host, in order to validate xml files +################################################## + +include $(CLEAR_VARS) +LOCAL_MODULE := ParameterFrameworkConfiguration.xsd +LOCAL_SRC_FILES := ParameterFrameworkConfiguration.xsd +LOCAL_MODULE_PATH := $(HOST_OUT)/etc/parameter-framework/Schemas +LOCAL_IS_HOST_MODULE := true +LOCAL_MODULE_CLASS = ETC +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := ConfigurableDomains.xsd +LOCAL_SRC_FILES := ConfigurableDomains.xsd +LOCAL_MODULE_PATH := $(HOST_OUT)/etc/parameter-framework/Schemas +LOCAL_IS_HOST_MODULE := true +LOCAL_MODULE_CLASS = ETC +LOCAL_REQUIRED_MODULES := \ + ParameterSettings.xsd +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := SystemClass.xsd +LOCAL_SRC_FILES := SystemClass.xsd +LOCAL_MODULE_PATH := $(HOST_OUT)/etc/parameter-framework/Schemas +LOCAL_IS_HOST_MODULE := true +LOCAL_MODULE_CLASS = ETC +LOCAL_REQUIRED_MODULES := \ + FileIncluder.xsd \ + Subsystem.xsd +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := ParameterSettings.xsd +LOCAL_SRC_FILES := ParameterSettings.xsd +LOCAL_MODULE_PATH := $(HOST_OUT)/etc/parameter-framework/Schemas +LOCAL_IS_HOST_MODULE := true +LOCAL_MODULE_CLASS = ETC +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := FileIncluder.xsd +LOCAL_SRC_FILES := FileIncluder.xsd +LOCAL_MODULE_PATH := $(HOST_OUT)/etc/parameter-framework/Schemas +LOCAL_IS_HOST_MODULE := true +LOCAL_MODULE_CLASS = ETC +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := Subsystem.xsd +LOCAL_SRC_FILES := Subsystem.xsd +LOCAL_MODULE_PATH := $(HOST_OUT)/etc/parameter-framework/Schemas +LOCAL_IS_HOST_MODULE := true +LOCAL_MODULE_CLASS = ETC +LOCAL_REQUIRED_MODULES := \ + ComponentLibrary.xsd +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := ComponentLibrary.xsd +LOCAL_SRC_FILES := ComponentLibrary.xsd +LOCAL_MODULE_PATH := $(HOST_OUT)/etc/parameter-framework/Schemas +LOCAL_IS_HOST_MODULE := true +LOCAL_MODULE_CLASS = ETC +LOCAL_REQUIRED_MODULES := \ + ComponentTypeSet.xsd \ + W3cXmlAttributes.xsd +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := ComponentTypeSet.xsd +LOCAL_SRC_FILES := ComponentTypeSet.xsd +LOCAL_MODULE_PATH := $(HOST_OUT)/etc/parameter-framework/Schemas +LOCAL_IS_HOST_MODULE := true +LOCAL_MODULE_CLASS = ETC +LOCAL_REQUIRED_MODULES := \ + Parameter.xsd \ + W3cXmlAttributes.xsd +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := W3cXmlAttributes.xsd +LOCAL_SRC_FILES := W3cXmlAttributes.xsd +LOCAL_MODULE_PATH := $(HOST_OUT)/etc/parameter-framework/Schemas +LOCAL_IS_HOST_MODULE := true +LOCAL_MODULE_CLASS = ETC +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := Parameter.xsd +LOCAL_SRC_FILES := Parameter.xsd +LOCAL_MODULE_PATH := $(HOST_OUT)/etc/parameter-framework/Schemas +LOCAL_IS_HOST_MODULE := true +LOCAL_MODULE_CLASS = ETC +include $(BUILD_PREBUILT) +################################################## -- cgit v1.1