1# Copyright 2024 Google LLC 2# SPDX-License-Identifier: Apache-2.0 3build = 'Soong' 4 5# Base project config which contain shared attributes which 6# all other projects must contain / override 7[base_project_config] 8name = 'base_project_config' 9inherits_from = '' 10 11[base_project_config.host_machine] 12cpu_family = '' 13cpu = '' 14host_machine = '' 15build_machine = '' 16 17[base_project_config.meson_options] 18platforms = '' 19gallium-drivers = '' 20vulkan-drivers = '' 21 22[base_project_config.header_not_supported] 23headers = [] 24 25[base_project_config.symbol_not_supported] 26symbols = [] 27 28[base_project_config.function_not_supported] 29functions = [] 30 31[base_project_config.link_not_supported] 32links = [] 33 34[base_project_config.ext_dependencies] 35# DependencyTargetType 36# SHARED_LIBRARY = 1 37# STATIC_LIBRARY = 2 38# HEADER_LIBRARY = 3 39# See meson_impl.py 40zlib = [ 41 { target_name = 'libz', target_type = 2 } 42] 43hardware = [ 44 { target_name = 'libhardware', target_type = 1 }, 45 { target_name = 'hwvulkan_headers', target_type = 3 } 46] 47cutils = [ 48 { target_name = 'libcutils', target_type = 1 } 49] 50log = [ 51 { target_name = 'liblog', target_type = 1 } 52] 53nativewindow = [ 54 { target_name = 'libnativewindow', target_type = 1 } 55] 56sync = [ 57 { target_name = 'libsync', target_type = 2 } 58] 59'android.hardware.graphics.mapper' = [ 60 { target_name = 'libgralloctypes', target_type = 2 }, 61 { target_name = '[email protected]', target_type = 2 }, 62 { target_name = 'libhidlbase', target_type = 1 }, 63 { target_name = 'libutils', target_type = 1 } 64] 65 66[[project_config]] # Turnip + gfxstream 67name = 'android_aarch64_drivers' 68inherits_from = 'base_project_config' 69 70[project_config.host_machine] 71cpu_family = 'aarch64' 72cpu = 'aarch64' 73host_machine = 'android' 74build_machine = 'linux' 75 76[project_config.meson_options] 77platforms = 'android' 78android-libbacktrace = 'disabled' 79gallium-drivers = '' 80vulkan-drivers = 'freedreno,gfxstream-experimental' 81freedreno-kmds = 'kgsl' 82platform-sdk-version = 33 83 84[project_config.header_not_supported] 85headers = [] 86 87[project_config.symbol_not_supported] 88symbols = [] 89 90[project_config.function_not_supported] 91functions = [] 92 93[project_config.link_not_supported] 94links = [] 95 96[project_config.ext_dependencies] 97# DependencyTargetType 98# SHARED_LIBRARY = 1 99# STATIC_LIBRARY = 2 100# HEADER_LIBRARY = 3 101# See meson_impl.py 102 103# Define new project configs 104[[project_config]] 105name = 'glibc_x86_64_build' 106inherits_from = 'base_project_config' 107 108[project_config.meson_options] 109platforms = 'none' 110gallium-drivers = '' 111vulkan-drivers = 'gfxstream-experimental,swrast' 112glx = 'disabled' 113shared-glapi = 'disabled' 114 115[project_config.header_not_supported] 116headers = [] 117 118[project_config.symbol_not_supported] 119symbols = [] 120 121[project_config.function_not_supported] 122functions = [] 123 124[project_config.link_not_supported] 125links = [] 126 127[project_config.host_machine] 128cpu_family = 'x86_64' 129cpu = 'x86_64' 130host_machine = 'linux' 131build_machine = 'linux' 132 133[project_config.ext_dependencies] 134# DependencyTargetType 135# SHARED_LIBRARY = 1 136# STATIC_LIBRARY = 2 137# HEADER_LIBRARY = 3 138# See meson_impl.py 139