3 # Copyright(c) 2017 Intel Corporation.
6 # Redistribution and use in source and binary forms, with or without
7 # modification, are permitted provided that the following conditions
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
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.
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.
32 eal_inc += include_directories('.', 'include',
33 join_paths('include/arch', arch_subdir))
36 common_sources = files(
38 'eal_common_cpuflags.c',
39 'eal_common_devargs.c',
42 'eal_common_hexdump.c',
43 'eal_common_launch.c',
46 'eal_common_memory.c',
47 'eal_common_memzone.c',
48 'eal_common_options.c',
50 'eal_common_string_fns.c',
51 'eal_common_tailqs.c',
52 'eal_common_thread.c',
70 # get architecture specific sources and objs
71 eal_common_arch_sources = []
72 eal_common_arch_objs = []
73 subdir(join_paths('arch', arch_subdir))
74 common_sources += eal_common_arch_sources
75 common_objs += eal_common_arch_objs
77 common_headers = files(
78 'include/rte_alarm.h',
79 'include/rte_branch_prediction.h',
81 'include/rte_bitmap.h',
82 'include/rte_common.h',
83 'include/rte_debug.h',
84 'include/rte_devargs.h',
87 'include/rte_eal_memconfig.h',
88 'include/rte_eal_interrupts.h',
89 'include/rte_errno.h',
90 'include/rte_hexdump.h',
91 'include/rte_interrupts.h',
92 'include/rte_keepalive.h',
93 'include/rte_launch.h',
94 'include/rte_lcore.h',
96 'include/rte_malloc.h',
97 'include/rte_malloc_heap.h',
98 'include/rte_memory.h',
99 'include/rte_memzone.h',
100 'include/rte_pci_dev_feature_defs.h',
101 'include/rte_pci_dev_features.h',
102 'include/rte_per_lcore.h',
103 'include/rte_random.h',
104 'include/rte_reciprocal.h',
105 'include/rte_service.h',
106 'include/rte_service_component.h',
107 'include/rte_string_fns.h',
108 'include/rte_tailq.h',
109 'include/rte_time.h',
110 'include/rte_version.h')
112 # special case install the generic headers, since they go in a subdir
113 generic_headers = files(
114 'include/generic/rte_atomic.h',
115 'include/generic/rte_byteorder.h',
116 'include/generic/rte_cpuflags.h',
117 'include/generic/rte_cycles.h',
118 'include/generic/rte_io.h',
119 'include/generic/rte_memcpy.h',
120 'include/generic/rte_pause.h',
121 'include/generic/rte_prefetch.h',
122 'include/generic/rte_rwlock.h',
123 'include/generic/rte_spinlock.h',
124 'include/generic/rte_vect.h')
125 install_headers(generic_headers, subdir: 'generic')
127 # get and install the architecture specific headers
128 subdir(join_paths('include/arch', arch_subdir))