2021-01-23 04:48:22 +08:00
|
|
|
# SPDX-license-identifier: Apache-2.0
|
|
|
|
# Copyright 2012-2021 The Meson development team
|
2023-12-14 03:38:41 +08:00
|
|
|
# Copyright © 2021-2023 Intel Corporation
|
2021-01-23 04:48:22 +08:00
|
|
|
|
2022-09-13 21:38:19 +08:00
|
|
|
# pylint: skip-file
|
2022-08-11 19:13:33 +08:00
|
|
|
|
2021-01-23 04:48:22 +08:00
|
|
|
"""Helper functions and classes."""
|
|
|
|
|
|
|
|
import os
|
|
|
|
|
2022-09-13 21:38:19 +08:00
|
|
|
from .utils.core import *
|
|
|
|
from .utils.vsenv import *
|
|
|
|
|
|
|
|
from .utils.universal import *
|
2021-01-23 04:48:22 +08:00
|
|
|
|
|
|
|
# Here we import either the posix implementations, the windows implementations,
|
|
|
|
# or a generic no-op implementation
|
|
|
|
if os.name == 'posix':
|
2022-09-13 21:38:19 +08:00
|
|
|
from .utils.posix import *
|
2021-01-23 04:48:22 +08:00
|
|
|
elif os.name == 'nt':
|
2022-09-13 21:38:19 +08:00
|
|
|
from .utils.win32 import *
|
2021-01-23 04:48:22 +08:00
|
|
|
else:
|
2022-09-13 21:38:19 +08:00
|
|
|
from .utils.platform import *
|