11bd4fe43Sopenharmony_ci# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved. 21bd4fe43Sopenharmony_ci# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved. 31bd4fe43Sopenharmony_ci# 41bd4fe43Sopenharmony_ci# Redistribution and use in source and binary forms, with or without modification, 51bd4fe43Sopenharmony_ci# are permitted provided that the following conditions are met: 61bd4fe43Sopenharmony_ci# 71bd4fe43Sopenharmony_ci# 1. Redistributions of source code must retain the above copyright notice, this list of 81bd4fe43Sopenharmony_ci# conditions and the following disclaimer. 91bd4fe43Sopenharmony_ci# 101bd4fe43Sopenharmony_ci# 2. Redistributions in binary form must reproduce the above copyright notice, this list 111bd4fe43Sopenharmony_ci# of conditions and the following disclaimer in the documentation and/or other materials 121bd4fe43Sopenharmony_ci# provided with the distribution. 131bd4fe43Sopenharmony_ci# 141bd4fe43Sopenharmony_ci# 3. Neither the name of the copyright holder nor the names of its contributors may be used 151bd4fe43Sopenharmony_ci# to endorse or promote products derived from this software without specific prior written 161bd4fe43Sopenharmony_ci# permission. 171bd4fe43Sopenharmony_ci# 181bd4fe43Sopenharmony_ci# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 191bd4fe43Sopenharmony_ci# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 201bd4fe43Sopenharmony_ci# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 211bd4fe43Sopenharmony_ci# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 221bd4fe43Sopenharmony_ci# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 231bd4fe43Sopenharmony_ci# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 241bd4fe43Sopenharmony_ci# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 251bd4fe43Sopenharmony_ci# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 261bd4fe43Sopenharmony_ci# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 271bd4fe43Sopenharmony_ci# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 281bd4fe43Sopenharmony_ci# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 291bd4fe43Sopenharmony_ci 301bd4fe43Sopenharmony_ciimport("//build/lite/config/component/lite_component.gni") 311bd4fe43Sopenharmony_ci 321bd4fe43Sopenharmony_cistatic_library("posix") { 331bd4fe43Sopenharmony_ci sources = [ 341bd4fe43Sopenharmony_ci "src/file.c", 351bd4fe43Sopenharmony_ci "src/libc.c", 361bd4fe43Sopenharmony_ci "src/pthread.c", 371bd4fe43Sopenharmony_ci "src/pthread_attr.c", 381bd4fe43Sopenharmony_ci "src/time.c", 391bd4fe43Sopenharmony_ci ] 401bd4fe43Sopenharmony_ci 411bd4fe43Sopenharmony_ci include_dirs = [ "include" ] 421bd4fe43Sopenharmony_ci defines = [ 431bd4fe43Sopenharmony_ci "LIBC_VERSION_NUM=0x00010000", 441bd4fe43Sopenharmony_ci "LIBC_VERSION_STR=\"1.0.0-liteos_m\"", 451bd4fe43Sopenharmony_ci ] 461bd4fe43Sopenharmony_ci 471bd4fe43Sopenharmony_ci cflags = [ "-Werror" ] 481bd4fe43Sopenharmony_ci} 49