tibia/templates/ios-make/project.yml

76 lines
2.5 KiB
YAML

#
# Tibia
#
# Copyright (C) 2023, 2024 Orastron Srl unipersonale
#
# Tibia is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# Tibia is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Tibia. If not, see <http://www.gnu.org/licenses/>.
#
# File author: Stefano D'Angelo
#
name: {{=it.product.bundleName}}
targets:
{{=it.product.bundleName}}:
{{?it.ios_make.supportedDestinations}}
supportedDestinations: {{=Array.isArray(it.ios_make.supportedDestinations) ? "[" + it.ios_make.supportedDestinations.toString() + "]" : it.ios_make.supportedDestinations}}
{{??}}
platform: [iOS]
{{?}}
deploymentTarget: "{{=it.ios_make.deploymentTarget}}"
type: application
sources:
- path: src
- path: res
type: folder
{{?it.ios_make.dependencies}}
dependencies:
{{~it.ios_make.dependencies :d}}
- target: {{=d}}{{~}}
{{?}}
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: {{=it.ios.productBundleIdentifier}}
{{?it.ios_make.development_team}}
CODE_SIGN_STYLE: Automatic
DEVELOPMENT_TEAM: {{=it.ios_make.development_team}}
{{?}}
OTHER_CFLAGS: "$(inherited) @CFLAGS_ALL@"
OTHER_CPLUSPLUSFLAGS: "$(inherited) @CXXFLAGS_ALL@"
OTHER_LDFLAGS: "$(inherited) @LDFLAGS_ALL@"
SWIFT_OBJC_BRIDGING_HEADER: src/app-Bridging-Header.h
{{?it.ios_make.headerSearchPaths}}
HEADER_SEARCH_PATHS: {{~it.ios_make.headerSearchPaths :p}}
- {{=p}}{{~}}
{{?}}
info:
path: Info.plist
{{?(it.product.buses.filter(x => x.type == "audio" && x.direction == "input").length > 0) || it.ios_make.infoProperties || it.ios_make.uiLaunchScreen}}
properties:
{{?it.product.buses.filter(x => x.type == "audio" && x.direction == "input").length > 0}}
NSMicrophoneUsageDescription: Need audio input for processing sound
{{?}}
{{?it.ios_make.infoProperties}}
{{~it.ios_make.infoProperties :p}}
{{=p.key}}: {{=Array.isArray(p.value) ? "[" + p.value.toString() + "]" : p.value}}
{{~}}
{{?}}
{{?it.ios_make.launchScreen}}
UILaunchScreen:
UIColorName: {{=it.ios_make.launchScreen.colorName}}
UIImageName: {{=it.ios_make.launchScreen.imageName}}
{{?}}
{{?}}