summaryrefslogtreecommitdiff
path: root/zephyr/test/skyrim/tests/common/CMakeLists.txt
blob: 52f21d1ec23b22df8e81e1e3069dce0e4ae0cdf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright 2023 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

target_sources(app PRIVATE src/common.c)

# Alt charger
if (DEFINED CONFIG_TEST_BOARD_ALT_CHARGER)
	target_sources(app PRIVATE ${PLATFORM_EC_PROGRAM_DIR}/skyrim/${CONFIG_TEST_BOARD_NAME}/src/alt_charger.c)
	if (NOT DEFINED CONFIG_TEST_BOARD_ALT_CHARGER_CUSTOM)
		target_sources(app PRIVATE src/alt_charger.c)
	endif()
endif()

# PPC config
if (DEFINED CONFIG_TEST_BOARD_PPC_CONFIG)
	target_sources(app PRIVATE ${PLATFORM_EC_PROGRAM_DIR}/skyrim/${CONFIG_TEST_BOARD_NAME}/src/ppc_config.c)
	if (NOT DEFINED CONFIG_TEST_BOARD_PPC_CONFIG_CUSTOM)
		target_sources(app PRIVATE src/ppc_config.c)
	endif()
endif()