eal: fix list of source files in meson build
[dpdk.git] / lib / librte_eal / common / meson.build
1 #   BSD LICENSE
2 #
3 #   Copyright(c) 2017 Intel Corporation.
4 #   All rights reserved.
5 #
6 #   Redistribution and use in source and binary forms, with or without
7 #   modification, are permitted provided that the following conditions
8 #   are met:
9 #
10 #     * Redistributions of source code must retain the above copyright
11 #       notice, this list of conditions and the following disclaimer.
12 #     * Redistributions in binary form must reproduce the above copyright
13 #       notice, this list of conditions and the following disclaimer in
14 #       the documentation and/or other materials provided with the
15 #       distribution.
16 #     * Neither the name of Intel Corporation nor the names of its
17 #       contributors may be used to endorse or promote products derived
18 #       from this software without specific prior written permission.
19 #
20 #   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 #   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 #   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 #   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24 #   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25 #   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26 #   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 #   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 #   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 #   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 #   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
32 eal_inc += include_directories('.', 'include',
33                 join_paths('include/arch', arch_subdir))
34
35 common_objs = []
36 common_sources = files(
37         'eal_common_bus.c',
38         'eal_common_cpuflags.c',
39         'eal_common_devargs.c',
40         'eal_common_dev.c',
41         'eal_common_errno.c',
42         'eal_common_hexdump.c',
43         'eal_common_launch.c',
44         'eal_common_lcore.c',
45         'eal_common_log.c',
46         'eal_common_memory.c',
47         'eal_common_memzone.c',
48         'eal_common_options.c',
49         'eal_common_proc.c',
50         'eal_common_string_fns.c',
51         'eal_common_tailqs.c',
52         'eal_common_thread.c',
53         'eal_common_timer.c',
54         'malloc_elem.c',
55         'malloc_heap.c',
56         'rte_keepalive.c',
57         'rte_malloc.c',
58         'rte_reciprocal.c',
59         'rte_service.c'
60 )
61
62 # get architecture specific sources and objs
63 eal_common_arch_sources = []
64 eal_common_arch_objs = []
65 subdir(join_paths('arch', arch_subdir))
66 common_sources += eal_common_arch_sources
67 common_objs += eal_common_arch_objs
68
69 common_headers = files(
70         'include/rte_alarm.h',
71         'include/rte_branch_prediction.h',
72         'include/rte_bus.h',
73         'include/rte_bitmap.h',
74         'include/rte_common.h',
75         'include/rte_debug.h',
76         'include/rte_devargs.h',
77         'include/rte_dev.h',
78         'include/rte_eal.h',
79         'include/rte_eal_memconfig.h',
80         'include/rte_eal_interrupts.h',
81         'include/rte_errno.h',
82         'include/rte_hexdump.h',
83         'include/rte_interrupts.h',
84         'include/rte_keepalive.h',
85         'include/rte_launch.h',
86         'include/rte_lcore.h',
87         'include/rte_log.h',
88         'include/rte_malloc.h',
89         'include/rte_malloc_heap.h',
90         'include/rte_memory.h',
91         'include/rte_memzone.h',
92         'include/rte_pci_dev_feature_defs.h',
93         'include/rte_pci_dev_features.h',
94         'include/rte_per_lcore.h',
95         'include/rte_random.h',
96         'include/rte_reciprocal.h',
97         'include/rte_service.h',
98         'include/rte_service_component.h',
99         'include/rte_string_fns.h',
100         'include/rte_tailq.h',
101         'include/rte_time.h',
102         'include/rte_version.h')
103
104 # special case install the generic headers, since they go in a subdir
105 generic_headers = files(
106         'include/generic/rte_atomic.h',
107         'include/generic/rte_byteorder.h',
108         'include/generic/rte_cpuflags.h',
109         'include/generic/rte_cycles.h',
110         'include/generic/rte_io.h',
111         'include/generic/rte_memcpy.h',
112         'include/generic/rte_pause.h',
113         'include/generic/rte_prefetch.h',
114         'include/generic/rte_rwlock.h',
115         'include/generic/rte_spinlock.h',
116         'include/generic/rte_vect.h')
117 install_headers(generic_headers, subdir: 'generic')
118
119 # get and install the architecture specific headers
120 subdir(join_paths('include/arch', arch_subdir))