blob: 32bf7c5388d6ae26e98fb2c585958174262e886b [file] [log] [blame]
# Copyright 2021 The Cobalt Authors. All Rights Reserved.
#
# 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.
import("//starboard/build/config/base_configuration.gni")
declare_args() {
android_sdk_path = getenv("ANDROID_HOME")
android_ndk_path = ""
sb_android_ndk_version = "21.1.6352462"
android_ndk_api_level = 21
enable_vulkan = false
}
if (android_sdk_path == "") {
_home_dir = getenv("HOME")
android_sdk_path = "$_home_dir/starboard-toolchains/AndroidSdk"
}
if (android_ndk_path == "") {
android_ndk_path = "$android_sdk_path/ndk/$sb_android_ndk_version"
}
final_executable_type = "shared_library"
gtest_target_type = "shared_library"
sb_enable_benchmark = true
size_config_path = "//starboard/android/shared/platform_configuration:size"
speed_config_path = "//starboard/android/shared/platform_configuration:speed"
pedantic_warnings_config_path =
"//starboard/android/shared/platform_configuration:pedantic_warnings"
if (current_toolchain == default_toolchain) {
executable_configs +=
[ "//starboard/android/shared/platform_configuration:executable_config" ]
shared_library_configs +=
[ "//starboard/android/shared/platform_configuration:library_config" ]
static_library_configs +=
[ "//starboard/android/shared/platform_configuration:library_config" ]
}
install_target_path = "//starboard/android/shared/install_target.gni"
sb_widevine_platform = "android"
platform_tests_path = "//starboard/android/shared:starboard_platform_tests"
cobalt_licenses_platform = "android"
enable_account_manager = true
cobalt_platform_dependencies =
[ "//starboard/android/shared/cobalt:cobalt_platform" ]