2021-01-02 15:10:28 +08:00
|
|
|
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
|
2020-03-28 22:10:31 +08:00
|
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2021-01-07 02:01:07 +08:00
|
|
|
from llnl.util.filesystem import LibraryList
|
2020-03-28 22:10:31 +08:00
|
|
|
|
|
|
|
|
|
|
|
class Libc(Package):
|
2020-05-26 08:20:04 +08:00
|
|
|
"""Dummy package to provide interfaces available in libc."""
|
2020-03-28 22:10:31 +08:00
|
|
|
|
|
|
|
homepage = "https://en.wikipedia.org/wiki/C_standard_library"
|
|
|
|
has_code = False
|
|
|
|
phases = []
|
|
|
|
|
|
|
|
version('1.0') # Dummy
|
2020-05-26 08:20:04 +08:00
|
|
|
|
|
|
|
variant('iconv', default=False, description='Provides interfaces for Localization Functions')
|
|
|
|
variant('rpc', default=False, description='Provides interfaces for RPC')
|
|
|
|
|
2020-03-28 22:10:31 +08:00
|
|
|
provides('iconv', when='+iconv')
|
2020-05-26 08:20:04 +08:00
|
|
|
provides('rpc', when='+rpc')
|
2021-01-07 02:01:07 +08:00
|
|
|
|
|
|
|
@property
|
|
|
|
def libs(self):
|
|
|
|
return LibraryList([])
|