1# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved. 2# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without modification, 5# are permitted provided that the following conditions are met: 6# 7# 1. Redistributions of source code must retain the above copyright notice, this list of 8# conditions and the following disclaimer. 9# 10# 2. Redistributions in binary form must reproduce the above copyright notice, this list 11# of conditions and the following disclaimer in the documentation and/or other materials 12# provided with the distribution. 13# 14# 3. Neither the name of the copyright holder nor the names of its contributors may be used 15# to endorse or promote products derived from this software without specific prior written 16# permission. 17# 18# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 20# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 21# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 22# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 23# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 24# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 25# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 26# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 27# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 28# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 30static_library("test_posix") { 31 sources = [ 32 "mem/It_posix_mem.c", 33 "mqueue/It_posix_queue.c", 34 "mutex/It_posix_mutex.c", 35 "pthread/It_posix_pthread.c", 36 "sched/It_posix_sched.c", 37 "sem/It_posix_sem.c", 38 "smp/It_posix_smp.c", 39 "smp/It_posix_smp_001.c", 40 "smp/It_posix_smp_002.c", 41 "smp/It_posix_smp_003.c", 42 "smp/It_posix_smp_004.c", 43 "smp/It_posix_smp_005.c", 44 "smp/It_posix_smp_006.c", 45 "smp/It_posix_smp_007.c", 46 "smp/It_posix_smp_008.c", 47 "smp/It_posix_smp_009.c", 48 "smp/It_posix_smp_010.c", 49 "smp/It_posix_smp_011.c", 50 "smp/It_posix_smp_012.c", 51 "smp/It_posix_smp_013.c", 52 "smp/It_posix_smp_014.c", 53 "smp/It_posix_smp_015.c", 54 "smp/It_posix_smp_016.c", 55 "smp/It_posix_smp_017.c", 56 "smp/It_posix_smp_018.c", 57 "swtmr/It_posix_swtmr.c", 58 ] 59 60 if (LOSCFG_TEST_SMOKE) { 61 sources += [ 62 "mem/smoke/It_posix_mem_001.c", 63 "mem/smoke/It_posix_mem_002.c", 64 "mem/smoke/It_posix_mem_003.c", 65 "mqueue/smoke/It_posix_queue_001.c", 66 "mqueue/smoke/It_posix_queue_003.c", 67 "mqueue/smoke/It_posix_queue_028.c", 68 "mqueue/smoke/It_posix_queue_062.c", 69 "mutex/smoke/It_posix_mutex_001.c", 70 "mutex/smoke/It_posix_mutex_007.c", 71 "mutex/smoke/It_posix_mutex_012.c", 72 "mutex/smoke/It_posix_mutex_015.c", 73 "mutex/smoke/It_posix_mutex_016.c", 74 "mutex/smoke/It_posix_mutex_019.c", 75 "mutex/smoke/It_posix_mutex_020.c", 76 "pthread/smoke/It_posix_pthread_003.c", 77 "pthread/smoke/It_posix_pthread_004.c", 78 "pthread/smoke/It_posix_pthread_005.c", 79 "pthread/smoke/It_posix_pthread_006.c", 80 "pthread/smoke/It_posix_pthread_009.c", 81 "pthread/smoke/It_posix_pthread_018.c", 82 "pthread/smoke/It_posix_pthread_019.c", 83 "pthread/smoke/It_posix_pthread_020.c", 84 "pthread/smoke/It_posix_pthread_021.c", 85 "pthread/smoke/It_posix_pthread_022.c", 86 "sem/smoke/It_posix_sem_001.c", 87 "sem/smoke/It_posix_sem_002.c", 88 "swtmr/smoke/It_posix_swtmr_001.c", 89 "swtmr/smoke/It_posix_swtmr_013.c", 90 "swtmr/smoke/It_posix_swtmr_046.c", 91 "swtmr/smoke/It_posix_swtmr_047.c", 92 "swtmr/smoke/It_posix_swtmr_049.c", 93 "swtmr/smoke/It_posix_swtmr_055.c", 94 "swtmr/smoke/It_posix_swtmr_065.c", 95 "swtmr/smoke/It_posix_swtmr_067.c", 96 "swtmr/smoke/It_posix_swtmr_101.c", 97 "swtmr/smoke/It_posix_swtmr_103.c", 98 "swtmr/smoke/It_posix_swtmr_105.c", 99 "swtmr/smoke/It_posix_swtmr_106.c", 100 ] 101 } 102 103 include_dirs = [ 104 "../../../compat/posix/src", 105 "../../include", 106 "mem", 107 "mqueue", 108 "mutex", 109 "pthread", 110 "sched", 111 "sem", 112 "smp", 113 "swtmr", 114 ] 115 116 cflags = [ "-Wno-error" ] 117} 118