#!/usr/bin/env python3
#
# Copyright 2020 - The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""The iml/xml templates of AIDEgen."""
# Content of iml file.
FILE_IML = """
@FACETS@
@SOURCES@
@SRCJAR@
@MODULE_DEPENDENCIES@
"""
# TODO(b/153704028): Refactor to create iml file.
IML = """
{FACET}
{SOURCES}
{SRCJARS}{DEPENDENCIES}{JARS}
"""
FACET = """
"""
CONTENT = """
{EXCLUDES}{SOURCES}
"""
SOURCE = """
"""
OTHER_SOURCE = """
"""
SRCJAR = """
"""
JAR = """
"""
DEPENDENCIES = """
"""
# The template content of modules.xml.
XML_MODULES = """
@MODULES@
@ENABLE_DEBUGGER_MODULE@
"""
# The template content of vcs.xml.
XML_VCS = """
{GIT_MAPPINGS}
"""
# The template content of misc.xml
XML_MISC = """
http://www.w3.org/1999/xhtml
"""
# The template content of compiler.xml
XML_COMPILER = """
"""
# The template content of codeStyleConfig.xml
XML_CODE_STYLE_CONFIG = """
"""
# The template content of Apache_2.xml
XML_APACHE_2 = """
"""
# The template content of profiles_settings.xml
XML_PROFILES_SETTINGS = """
"""
# The configuration of JDK on Linux.
LINUX_JDK_XML = """
"""
# The configuration of JDK on Mac.
MAC_JDK_XML = """
"""
# The file's header of CLion project file.
CMAKELISTS_HEADER = """# THIS FILE WAS AUTOMATICALLY GENERATED!
# ANY MODIFICATION WILL BE OVERWRITTEN!
# To improve project view in Clion :
# Tools > CMake > Change Project Root
cmake_minimum_required(VERSION @MINVERSION@)
project(@PROJNAME@)
set(ANDROID_ROOT @ANDROIDROOT@)
"""
# The configuration of Android SDK.
ANDROID_SDK_XML = """
"""
# The configuration of TEST_MAPPING in jsonSchemas.xml.
TEST_MAPPING_SCHEMAS_XML = """
"""
# The xml templates for Eclipse.
# .classpath template
ECLIPSE_CLASSPATH_XML = """
{SRC}
{LIB}
"""
# .project template
ECLIPSE_PROJECT_XML = """
{PROJECTNAME}org.eclipse.jdt.core.javabuilderorg.eclipse.jdt.core.javanature
{LINKEDRESOURCES}
"""
# The template of default AndroidManifest.xml.
ANDROID_MANIFEST_CONTENT = """
"""
# The xml template for enabling debugger.
XML_ENABLE_DEBUGGER = """
"""
# The default empty template of the jdk.table.xml.
JDK_TABLE_XML = """
"""
XML_WORKSPACE = """
{GITS}
"""
IGNORED_GITS = """{GITS}
"""