]> git.droids-corp.org - dpdk.git/commitdiff
examples: reduce indentation in build files
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 20 Apr 2021 10:22:22 +0000 (11:22 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 21 Apr 2021 12:04:09 +0000 (14:04 +0200)
As with the lib and drivers directories, we can use "continue" keyword to
reduce the indentation level of the majority of the foreach block. At the
same time, we can also replace tab indentation with spaces.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
54 files changed:
examples/bbdev_app/meson.build
examples/bond/meson.build
examples/cmdline/meson.build
examples/distributor/meson.build
examples/ethtool/meson.build
examples/eventdev_pipeline/meson.build
examples/fips_validation/meson.build
examples/flow_classify/meson.build
examples/flow_filtering/meson.build
examples/helloworld/meson.build
examples/ioat/meson.build
examples/ip_fragmentation/meson.build
examples/ip_pipeline/meson.build
examples/ip_reassembly/meson.build
examples/ipsec-secgw/meson.build
examples/ipv4_multicast/meson.build
examples/kni/meson.build
examples/l2fwd-cat/meson.build
examples/l2fwd-crypto/meson.build
examples/l2fwd-event/meson.build
examples/l2fwd-jobstats/meson.build
examples/l2fwd-keepalive/meson.build
examples/l2fwd/meson.build
examples/l3fwd-acl/meson.build
examples/l3fwd-graph/meson.build
examples/l3fwd-power/meson.build
examples/l3fwd/meson.build
examples/link_status_interrupt/meson.build
examples/meson.build
examples/multi_process/client_server_mp/mp_client/meson.build
examples/multi_process/client_server_mp/mp_server/meson.build
examples/multi_process/hotplug_mp/meson.build
examples/multi_process/simple_mp/meson.build
examples/multi_process/symmetric_mp/meson.build
examples/ntb/meson.build
examples/packet_ordering/meson.build
examples/performance-thread/l3fwd-thread/meson.build
examples/performance-thread/pthread_shim/meson.build
examples/pipeline/meson.build
examples/ptpclient/meson.build
examples/qos_meter/meson.build
examples/qos_sched/meson.build
examples/rxtx_callbacks/meson.build
examples/service_cores/meson.build
examples/skeleton/meson.build
examples/timer/meson.build
examples/vdpa/meson.build
examples/vhost/meson.build
examples/vhost_blk/meson.build
examples/vhost_crypto/meson.build
examples/vm_power_manager/guest_cli/meson.build
examples/vm_power_manager/meson.build
examples/vmdq/meson.build
examples/vmdq_dcb/meson.build

index 8e06a8a2358f66860b8325495f0b19a1b888cebe..ea588e87069e4bd5ba4e52d9f1da0174efb73919 100644 (file)
@@ -9,5 +9,5 @@
 deps += 'bbdev'
 allow_experimental_apis = true
 sources = files(
-       'main.c'
+        'main.c',
 )
index 69382ffcd2aa6b69661d215f425a95204d43f57f..ed22b7887d86045f0e538e0651aae6514f6fa138 100644 (file)
@@ -9,5 +9,5 @@
 deps += 'net_bond'
 allow_experimental_apis = true
 sources = files(
-       'main.c'
+        'main.c',
 )
index 7de0f162514758700b69716500515cd1a74d98e2..0e1e8fb2561c4f0b15b5fa08fcdd4e724647dcc0 100644 (file)
@@ -8,5 +8,7 @@
 
 allow_experimental_apis = true
 sources = files(
-       'commands.c', 'main.c', 'parse_obj_list.c'
+        'commands.c',
+        'main.c',
+        'parse_obj_list.c',
 )
index d8dbc235fb0b1b7461340bef7741b4e051c0085b..9df59923ce71d46a12d9436c31cb6c26bfd09f82 100644 (file)
@@ -9,11 +9,11 @@
 # require the power library
 build = dpdk_conf.has('RTE_LIB_POWER')
 if not build
-       subdir_done()
+    subdir_done()
 endif
 
 allow_experimental_apis = true
 deps += ['distributor', 'power']
 sources = files(
-       'main.c'
+        'main.c',
 )
index 4d08bc4c57ec1d78306fecef9f9e5291c5cc4dd2..d7f63d48afe27cff969a85dfdfa285e5df1a3e79 100644 (file)
@@ -8,17 +8,19 @@
 
 build = is_linux
 if not build
-       subdir_done()
+    subdir_done()
 endif
 
-sources = files('lib/rte_ethtool.c',
-       'ethtool-app/ethapp.c',
-       'ethtool-app/main.c')
+sources = files(
+        'lib/rte_ethtool.c',
+        'ethtool-app/ethapp.c',
+        'ethtool-app/main.c',
+)
 includes = include_directories('lib', 'ethtool-app')
 
 deps += 'bus_pci'
 if dpdk_conf.has('RTE_NET_IXGBE')
-       deps += 'net_ixgbe'
+    deps += 'net_ixgbe'
 endif
 
 allow_experimental_apis = true
index 1dfeba0d3f58e3a247510f647f1383169417b34a..b8f5cfe109747f3d68e0775f7e36bfd810cf92cd 100644 (file)
@@ -9,7 +9,7 @@
 allow_experimental_apis = true
 deps += 'eventdev'
 sources = files(
-       'main.c',
-       'pipeline_worker_generic.c',
-       'pipeline_worker_tx.c'
+        'main.c',
+        'pipeline_worker_generic.c',
+        'pipeline_worker_tx.c',
 )
index e2745d27867d209b1495a9cd8ef0beafbda0c3c7..7eef4563189f70c6e4cb5e01b93abd143f43a19f 100644 (file)
@@ -9,15 +9,15 @@
 deps += ['cryptodev']
 allow_experimental_apis = true
 sources = files(
-       'fips_validation_aes.c',
-       'fips_validation.c',
-       'fips_validation_hmac.c',
-       'fips_validation_tdes.c',
-       'fips_validation_gcm.c',
-       'fips_validation_cmac.c',
-       'fips_validation_ccm.c',
-       'fips_validation_sha.c',
-       'fips_validation_xts.c',
-       'fips_dev_self_test.c',
-       'main.c'
+        'fips_validation_aes.c',
+        'fips_validation.c',
+        'fips_validation_hmac.c',
+        'fips_validation_tdes.c',
+        'fips_validation_gcm.c',
+        'fips_validation_cmac.c',
+        'fips_validation_ccm.c',
+        'fips_validation_sha.c',
+        'fips_validation_xts.c',
+        'fips_dev_self_test.c',
+        'main.c',
 )
index 56472e68191aa37b20f013c6d4e07e2d6407b5ad..1be1bf03742701fe36f5effe5b4d2c12e104abee 100644 (file)
@@ -9,5 +9,5 @@
 deps += 'flow_classify'
 allow_experimental_apis = true
 sources = files(
-       'flow_classify.c'
+        'flow_classify.c',
 )
index 6f5d1b08a93b30930539f26645afa234d9424725..441678bbe5c797903da889780fe72d90ca0d1a3f 100644 (file)
@@ -8,5 +8,5 @@
 
 allow_experimental_apis = true
 sources = files(
-       'main.c',
+        'main.c',
 )
index 2b0a25036125381fe131a60eef688103ace49f77..441678bbe5c797903da889780fe72d90ca0d1a3f 100644 (file)
@@ -8,5 +8,5 @@
 
 allow_experimental_apis = true
 sources = files(
-       'main.c'
+        'main.c',
 )
index e348196ba3426cedc8f59bdaeb8476eb738f243c..68bce1ab03dae7af1596bff582bcbf0e79e31af9 100644 (file)
@@ -9,11 +9,11 @@
 allow_experimental_apis = true
 build = dpdk_conf.has('RTE_RAW_IOAT')
 if not build
-       subdir_done()
+    subdir_done()
 endif
 
 deps += ['raw_ioat']
 
 sources = files(
-       'ioatfwd.c'
+        'ioatfwd.c',
 )
index 1230db477642304ba1b6729d856022572c3c022d..cd84e9b1432784de4040b5cc1b93d68e2cd34b9f 100644 (file)
@@ -9,5 +9,5 @@
 allow_experimental_apis = true
 deps +=  ['ip_frag', 'lpm']
 sources = files(
-       'main.c'
+        'main.c',
 )
index 945e28b58b99b4f7f4b9b2a78adc1cb27d5caf6f..57f522c24cf96c721bd720e2ab7aec14d2f7e1f7 100644 (file)
@@ -8,24 +8,24 @@
 
 build = cc.has_header('sys/epoll.h')
 if not build
-       subdir_done()
+    subdir_done()
 endif
 
 deps += ['pipeline', 'bus_pci']
 allow_experimental_apis = true
 sources = files(
-       'action.c',
-       'cli.c',
-       'conn.c',
-       'kni.c',
-       'link.c',
-       'main.c',
-       'mempool.c',
-       'parser.c',
-       'pipeline.c',
-       'swq.c',
-       'tap.c',
-       'thread.c',
-       'tmgr.c',
-       'cryptodev.c'
+        'action.c',
+        'cli.c',
+        'conn.c',
+        'cryptodev.c',
+        'kni.c',
+        'link.c',
+        'main.c',
+        'mempool.c',
+        'parser.c',
+        'pipeline.c',
+        'swq.c',
+        'tap.c',
+        'thread.c',
+        'tmgr.c',
 )
index 517bd4e19ab5409da1a84102e2005824ed66040d..b12b66b1277f3bfeecbebac093fe53c40afe92ee 100644 (file)
@@ -9,5 +9,5 @@
 allow_experimental_apis = true
 deps += ['lpm', 'ip_frag']
 sources = files(
-       'main.c'
+        'main.c',
 )
index d0373dab53b23735686322fc5d5b4fb00d5254e0..b4b483a782f436e653ad0182a01f7773a68eccc7 100644 (file)
@@ -9,17 +9,17 @@
 deps += ['security', 'lpm', 'acl', 'hash', 'ip_frag', 'ipsec', 'eventdev']
 allow_experimental_apis = true
 sources = files(
-       'esp.c',
-       'event_helper.c',
-       'flow.c',
-       'ipsec.c',
-       'ipsec_process.c',
-       'ipsec-secgw.c',
-       'ipsec_worker.c',
-       'parser.c',
-       'rt.c',
-       'sa.c',
-       'sad.c',
-       'sp4.c',
-       'sp6.c'
+        'esp.c',
+        'event_helper.c',
+        'flow.c',
+        'ipsec.c',
+        'ipsec_process.c',
+        'ipsec-secgw.c',
+        'ipsec_worker.c',
+        'parser.c',
+        'rt.c',
+        'sa.c',
+        'sad.c',
+        'sp4.c',
+        'sp6.c',
 )
index 7dc13fb8fcbad9c6b19f0b7c6667e32aba29f16f..236f45bd565f6b26c935ce4e12a04d13402583ac 100644 (file)
@@ -9,5 +9,5 @@
 allow_experimental_apis = true
 deps += 'hash'
 sources = files(
-       'main.c'
+        'main.c',
 )
index e119eebabb3be2ec83bf6d5ab6caea5bd0a755fb..1c0bf99a494f465fb7544cba73fb34107c936412 100644 (file)
@@ -9,11 +9,11 @@
 # this app can be built if-and-only-if KNI library is buildable
 build = dpdk_conf.has('RTE_LIB_KNI')
 if not build
-       subdir_done()
+    subdir_done()
 endif
 
 deps += ['kni', 'bus_pci']
 sources = files(
-       'main.c'
+        'main.c',
 )
 allow_experimental_apis = true
index 60169bcbda3bb4f62778b760217a89f6f45d0049..68554e76ce7b2709d2f036fa778639e2eaf149cc 100644 (file)
@@ -9,12 +9,13 @@
 pqos = cc.find_library('pqos', required: false)
 build = pqos.found()
 if not build
-       subdir_done()
+    subdir_done()
 endif
 
 ext_deps += pqos
 allow_experimental_apis = true
 cflags += '-I/usr/local/include' # assume pqos lib installed in /usr/local
 sources = files(
-       'cat.c', 'l2fwd-cat.c'
+        'cat.c',
+        'l2fwd-cat.c',
 )
index 1813f015b219ac09ae9a6193259f3280c7a3fe29..bb44c8888299809b76822205cd664a33a81c1bdb 100644 (file)
@@ -8,9 +8,9 @@
 
 deps += 'cryptodev'
 if dpdk_conf.has('RTE_CRYPTO_SCHEDULER')
-       deps += 'crypto_scheduler'
+    deps += 'crypto_scheduler'
 endif
 allow_experimental_apis = true
 sources = files(
-       'main.c'
+        'main.c',
 )
index 4a546eaf81f5add4265739a40fba797dd30dc734..5bc818808634d12b4f38db83083befb9f2b05e3d 100644 (file)
 allow_experimental_apis = true
 deps += 'eventdev'
 sources = files(
-       'main.c',
-       'l2fwd_poll.c',
-       'l2fwd_common.c',
-       'l2fwd_event.c',
-       'l2fwd_event_internal_port.c',
-       'l2fwd_event_generic.c'
+        'main.c',
+        'l2fwd_common.c',
+        'l2fwd_event.c',
+        'l2fwd_event_generic.c',
+        'l2fwd_event_internal_port.c',
+        'l2fwd_poll.c',
 )
index 72273736b6804f36a9ad77da0666ca0173bddd0f..bffcf35e8c78cf4ac3756a11862bd694830e96e0 100644 (file)
@@ -9,5 +9,5 @@
 allow_experimental_apis = true
 deps += ['jobstats', 'timer']
 sources = files(
-       'main.c'
+        'main.c',
 )
index a56d679675660938a74c908b2915c9695745b169..ed49c612387980c5fcfc2e50394be93588ffcffa 100644 (file)
@@ -9,12 +9,13 @@
 allow_experimental_apis = true
 librt = cc.find_library('rt', required: false)
 if not librt.found()
-       build = false
-       subdir_done()
+    build = false
+    subdir_done()
 endif
 
 ext_deps += librt
 deps += 'timer'
 sources = files(
-       'main.c', 'shm.c'
+        'main.c',
+        'shm.c',
 )
index 50d88caa0ae160b773870b9f986dffb908166f8b..da6551407e5c1f19e03e8cdee9a505dd4551d30c 100644 (file)
@@ -9,5 +9,5 @@
 # Enable experimental API flag as l2fwd uses rte_ethdev_set_ptype API
 allow_experimental_apis = true
 sources = files(
-       'main.c'
+        'main.c',
 )
index 6fa468b3aa9c6926c80b5032ff0ec4cecd787135..6efe46e710c8209adb01e3369f3ec836ec4564b1 100644 (file)
@@ -9,5 +9,5 @@
 allow_experimental_apis = true
 deps += ['acl', 'lpm', 'hash']
 sources = files(
-       'main.c'
+        'main.c',
 )
index a816bd89037c44c414212f12fa73d21283f8f04e..b3ceaadb59615286798f64854f8d53b664be4e61 100644 (file)
@@ -8,6 +8,6 @@
 
 deps += ['graph', 'eal', 'lpm', 'ethdev', 'node' ]
 sources = files(
-       'main.c'
+        'main.c',
 )
 allow_experimental_apis = true
index eb8aef306a5eccb8b4be026b72ae63952ca809aa..0f69bb782c5e2028759c1235ed640813ae05ed1d 100644 (file)
@@ -14,5 +14,6 @@ endif
 allow_experimental_apis = true
 deps += ['power', 'timer', 'lpm', 'hash', 'metrics', 'telemetry']
 sources = files(
-       'main.c', 'perf_core.c'
+        'main.c',
+        'perf_core.c',
 )
index 2e5d1d34f2d81b62463aa8f31a134fb4f7705cae..773ebf4783291205d597df836e241d2b027f6948 100644 (file)
@@ -9,6 +9,11 @@
 allow_experimental_apis = true
 deps += ['hash', 'lpm', 'fib', 'eventdev']
 sources = files(
-       'l3fwd_em.c', 'l3fwd_lpm.c', 'l3fwd_fib.c', 'l3fwd_event.c',
-       'l3fwd_event_internal_port.c', 'l3fwd_event_generic.c', 'main.c'
+    'l3fwd_em.c',
+    'l3fwd_event.c',
+    'l3fwd_event_internal_port.c',
+    'l3fwd_event_generic.c',
+    'l3fwd_fib.c',
+    'l3fwd_lpm.c',
+    'main.c',
 )
index 2b0a25036125381fe131a60eef688103ace49f77..441678bbe5c797903da889780fe72d90ca0d1a3f 100644 (file)
@@ -8,5 +8,5 @@
 
 allow_experimental_apis = true
 sources = files(
-       'main.c'
+        'main.c',
 )
index d065a6a08b94d7b9c4bd3fa76ca421ea2754ab4f..07e682401b055d263ee8e364fc4f333d6cf691d3 100644 (file)
 
 link_whole_libs = []
 if get_option('default_library') == 'static'
-       link_whole_libs = dpdk_static_libraries + dpdk_drivers
+    link_whole_libs = dpdk_static_libraries + dpdk_drivers
 endif
 
 # list of all example apps. Keep 1-3 per line, in alphabetical order.
 all_examples = [
-       'bbdev_app', 'bond',
-       'cmdline',
-       'distributor', 'ethtool',
-       'eventdev_pipeline',
-       'fips_validation', 'flow_classify',
-       'flow_filtering', 'helloworld',
-       'ioat',
-       'ip_fragmentation', 'ip_pipeline',
-       'ip_reassembly', 'ipsec-secgw',
-       'ipv4_multicast', 'kni',
-       'l2fwd', 'l2fwd-cat', 'l2fwd-event',
-       'l2fwd-crypto', 'l2fwd-jobstats',
-       'l2fwd-keepalive', 'l3fwd',
-       'l3fwd-acl', 'l3fwd-power', 'l3fwd-graph',
-       'link_status_interrupt',
-       'multi_process/client_server_mp/mp_client',
-       'multi_process/client_server_mp/mp_server',
-       'multi_process/hotplug_mp',
-       'multi_process/simple_mp',
-       'multi_process/symmetric_mp',
-       'ntb', 'packet_ordering',
-       'performance-thread/l3fwd-thread',
-       'performance-thread/pthread_shim',
-       'pipeline',
-       'ptpclient',
-       'qos_meter', 'qos_sched',
-       'rxtx_callbacks',
-       'server_node_efd/node',
-       'server_node_efd/server',
-       'service_cores',
-       'skeleton',
-       'timer', 'vdpa',
-       'vhost', 'vhost_crypto',
-       'vhost_blk', 'vm_power_manager',
-       'vm_power_manager/guest_cli',
-       'vmdq', 'vmdq_dcb',
+        'bbdev_app',
+        'bond',
+        'cmdline',
+        'distributor',
+        'ethtool',
+        'eventdev_pipeline',
+        'fips_validation',
+        'flow_classify',
+        'flow_filtering',
+        'helloworld',
+        'ioat',
+        'ip_fragmentation',
+        'ip_pipeline',
+        'ip_reassembly',
+        'ipsec-secgw',
+        'ipv4_multicast',
+        'kni',
+        'l2fwd',
+        'l2fwd-cat',
+        'l2fwd-crypto',
+        'l2fwd-event',
+        'l2fwd-jobstats',
+        'l2fwd-keepalive',
+        'l3fwd',
+        'l3fwd-acl',
+        'l3fwd-graph',
+        'l3fwd-power',
+        'link_status_interrupt',
+        'multi_process/client_server_mp/mp_client',
+        'multi_process/client_server_mp/mp_server',
+        'multi_process/hotplug_mp',
+        'multi_process/simple_mp',
+        'multi_process/symmetric_mp',
+        'ntb',
+        'packet_ordering',
+        'performance-thread/l3fwd-thread',
+        'performance-thread/pthread_shim',
+        'pipeline',
+        'ptpclient',
+        'qos_meter',
+        'qos_sched',
+        'rxtx_callbacks',
+        'server_node_efd/node',
+        'server_node_efd/server',
+        'service_cores',
+        'skeleton',
+        'timer',
+        'vdpa',
+        'vhost',
+        'vhost_blk',
+        'vhost_crypto',
+        'vm_power_manager',
+        'vm_power_manager/guest_cli',
+        'vmdq',
+        'vmdq_dcb',
 ]
 
 # on install, skip copying all meson.build files
 ex_file_excludes = ['meson.build']
 foreach ex:all_examples
-       ex_file_excludes += [ex + '/meson.build']
+    ex_file_excludes += [ex + '/meson.build']
 endforeach
 
 if get_option('examples') == ''
-       subdir_done()
+    subdir_done()
 endif
 
 if get_option('examples').to_lower() == 'all'
-       examples = all_examples
-       allow_skips = true # don't flag an error if we can't build an app
+    examples = all_examples
+    allow_skips = true # don't flag an error if we can't build an app
 else
-       examples = get_option('examples').split(',')
-       allow_skips = false # error out if we can't build a requested app
+    examples = get_option('examples').split(',')
+    allow_skips = false # error out if we can't build a requested app
 endif
 default_cflags = machine_args
 if cc.has_argument('-Wno-format-truncation')
-       default_cflags += '-Wno-format-truncation'
+    default_cflags += '-Wno-format-truncation'
 endif
 default_ldflags = dpdk_extra_ldflags
 if get_option('default_library') == 'static' and not is_windows
-       default_ldflags += ['-Wl,--export-dynamic']
+    default_ldflags += ['-Wl,--export-dynamic']
 endif
 
 foreach example: examples
-       name = example.split('/')[-1]
-       build = true
-       sources = []
-       allow_experimental_apis = false
-       cflags = default_cflags
-       ldflags = default_ldflags
+    name = example.split('/')[-1]
+    build = true
+    sources = []
+    allow_experimental_apis = false
+    cflags = default_cflags
+    ldflags = default_ldflags
 
-       ext_deps = []
-       includes = [include_directories(example)]
-       deps = ['eal', 'mempool', 'net', 'mbuf', 'ethdev', 'cmdline']
-       subdir(example)
+    ext_deps = []
+    includes = [include_directories(example)]
+    deps = ['eal', 'mempool', 'net', 'mbuf', 'ethdev', 'cmdline']
+    subdir(example)
 
-       if build
-               dep_objs = ext_deps
-               foreach d:deps
-                       var_name = get_option('default_library') + '_rte_' + d
-                       if not is_variable(var_name)
-                               error('Missing dependency "@0@" for example "@1@"'.format(d, name))
-                       endif
-                       dep_objs += [get_variable(var_name)]
-               endforeach
-               if allow_experimental_apis
-                       cflags += '-DALLOW_EXPERIMENTAL_API'
-               endif
-               executable('dpdk-' + name, sources,
-                       include_directories: includes,
-                       link_whole: link_whole_libs,
-                       link_args: ldflags,
-                       c_args: cflags,
-                       dependencies: dep_objs)
-       elif not allow_skips
-               error('Cannot build requested example "' + name + '"')
-       else
-               message('Skipping example "' + name + '"')
-       endif
+    if not build
+        if not allow_skips
+            error('Cannot build requested example "' + name + '"')
+        endif
+        message('Skipping example "' + name + '"')
+        continue
+    endif
+
+    dep_objs = ext_deps
+    foreach d:deps
+        var_name = get_option('default_library') + '_rte_' + d
+        if not is_variable(var_name)
+            error('Missing dependency "@0@" for example "@1@"'.format(d, name))
+        endif
+        dep_objs += [get_variable(var_name)]
+    endforeach
+    if allow_experimental_apis
+        cflags += '-DALLOW_EXPERIMENTAL_API'
+    endif
+    executable('dpdk-' + name, sources,
+            include_directories: includes,
+            link_whole: link_whole_libs,
+            link_args: ldflags,
+            c_args: cflags,
+            dependencies: dep_objs)
 endforeach
index 69c3d3bfbed7770a35658e03c9f277fc8bab9d64..3c4848bdefa0de21310b27d74d0c00d470ee5be9 100644 (file)
@@ -10,5 +10,5 @@ includes += include_directories('../shared')
 
 allow_experimental_apis = true
 sources = files(
-       'client.c'
+        'client.c'
 )
index 0ef6424f4bd1549299aa3e7bcd934e7f115df1e9..74814e5fe80c891820e55fe7e676134356c1e57d 100644 (file)
@@ -10,5 +10,5 @@ includes += include_directories('../shared')
 
 allow_experimental_apis = true
 sources = files(
-       'args.c', 'init.c', 'main.c'
+        'args.c', 'init.c', 'main.c'
 )
index f82f4d48a2f5b2cd752df27ba9ea3b5d09be9281..ae92905049f6e1387f3591de919ca62f115697a0 100644 (file)
@@ -8,5 +8,5 @@
 
 allow_experimental_apis = true
 sources = files(
-       'commands.c', 'main.c'
+        'commands.c', 'main.c'
 )
index cb02c65a6970f1a4c36f9b5aa86199f9938b693d..adb06b0a75b45d32f1d2693b5f52ca17c0a1dad5 100644 (file)
@@ -8,5 +8,5 @@
 
 allow_experimental_apis = true
 sources = files(
-       'mp_commands.c', 'main.c'
+        'mp_commands.c', 'main.c'
 )
index 14167825b0eb7bcca2fcc81162624565a48bfea1..a5b988c44f57724fae1ff0e6722812c02db513b3 100644 (file)
@@ -8,5 +8,5 @@
 
 allow_experimental_apis = true
 sources = files(
-       'main.c'
+        'main.c'
 )
index 02be9fc80dcb36da514beb4b05356398da10fae7..37899dfeb635d130065218187736df3ae94423cf 100644 (file)
@@ -8,15 +8,15 @@
 
 allow_experimental_apis = true
 if not is_linux
-       build = false
-       subdir_done()
+    build = false
+    subdir_done()
 endif
 
 deps += 'rawdev'
 cflags += ['-D_FILE_OFFSET_BITS=64']
 sources = files(
-       'ntb_fwd.c'
+        'ntb_fwd.c',
 )
 if dpdk_conf.has('RTE_RAW_NTB')
-       deps += 'raw_ntb'
+    deps += 'raw_ntb'
 endif
index b38195914515d628f8107716af7ecfeb51e34556..f8be053fb0fc60a7cb4dd5abde49d379e71822ee 100644 (file)
@@ -9,5 +9,5 @@
 allow_experimental_apis = true
 deps += 'reorder'
 sources = files(
-       'main.c'
+        'main.c',
 )
index 4858b201e4ba393d70f618f4c7845e600d0ef4c5..58d4e96a45d7ee1cc727f312292ad1ec428f9725 100644 (file)
@@ -8,7 +8,7 @@
 
 build = dpdk_conf.has('RTE_ARCH_X86_64')
 if not build
-       subdir_done()
+    subdir_done()
 endif
 
 deps += ['timer', 'lpm']
@@ -16,17 +16,17 @@ allow_experimental_apis = true
 
 # get the performance thread (pt) architecture subdir
 if dpdk_conf.has('RTE_ARCH_ARM64')
-       pt_arch_dir = '../common/arch/arm64'
+    pt_arch_dir = '../common/arch/arm64'
 else
-       pt_arch_dir = '../common/arch/x86'
+    pt_arch_dir = '../common/arch/x86'
 endif
 sources += files('main.c',
-       '../common/lthread.c',
-       '../common/lthread_cond.c',
-       '../common/lthread_diag.c',
-       '../common/lthread_mutex.c',
-       '../common/lthread_sched.c',
-       '../common/lthread_tls.c',
-       pt_arch_dir + '/ctx.c')
+    '../common/lthread.c',
+    '../common/lthread_cond.c',
+    '../common/lthread_diag.c',
+    '../common/lthread_mutex.c',
+    '../common/lthread_sched.c',
+    '../common/lthread_tls.c',
+    pt_arch_dir + '/ctx.c')
 
 includes += include_directories('../common', pt_arch_dir)
index d499799307767842ca14ec2526ca5cd32b4bd9c8..866e6c94e8916d4c466777f248bd05a864456f76 100644 (file)
@@ -8,7 +8,7 @@
 
 build = dpdk_conf.has('RTE_ARCH_X86_64') or dpdk_conf.has('RTE_ARCH_ARM64')
 if not build
-       subdir_done()
+    subdir_done()
 endif
 
 deps += ['timer']
@@ -16,18 +16,18 @@ allow_experimental_apis = true
 
 # get the performance thread (pt) architecture subdir
 if dpdk_conf.has('RTE_ARCH_ARM64')
-       pt_arch_dir = '../common/arch/arm64'
+    pt_arch_dir = '../common/arch/arm64'
 else
-       pt_arch_dir = '../common/arch/x86'
+    pt_arch_dir = '../common/arch/x86'
 endif
 sources += files('main.c',
-       'pthread_shim.c',
-       '../common/lthread.c',
-       '../common/lthread_cond.c',
-       '../common/lthread_diag.c',
-       '../common/lthread_mutex.c',
-       '../common/lthread_sched.c',
-       '../common/lthread_tls.c',
-       pt_arch_dir + '/ctx.c')
+    'pthread_shim.c',
+    '../common/lthread.c',
+    '../common/lthread_cond.c',
+    '../common/lthread_diag.c',
+    '../common/lthread_mutex.c',
+    '../common/lthread_sched.c',
+    '../common/lthread_tls.c',
+    pt_arch_dir + '/ctx.c')
 
 includes += include_directories('../common', pt_arch_dir)
index 4f5925d7cfeb0e9f3f22cfb65761eeb0841f3f92..50103f2e0156bb8e79ca04295096579ebd6838e1 100644 (file)
@@ -8,15 +8,15 @@
 
 build = cc.has_header('sys/epoll.h')
 if not build
-       subdir_done()
+    subdir_done()
 endif
 
 deps += ['pipeline', 'bus_pci']
 allow_experimental_apis = true
 sources = files(
-       'cli.c',
-       'conn.c',
-       'main.c',
-       'obj.c',
-       'thread.c',
+        'cli.c',
+        'conn.c',
+        'main.c',
+        'obj.c',
+        'thread.c',
 )
index d4171a21832b89ad4cfb8925a10e3de2e09e3612..47d091ea2179dec1445781237b36f30ac2ef337b 100644 (file)
@@ -8,5 +8,5 @@
 
 allow_experimental_apis = true
 sources = files(
-       'ptpclient.c'
+        'ptpclient.c',
 )
index 2f9ab13afd3ac4c71027a28d12a0c2d4d1e1eb26..573d4978c60da3b4f0fffd3d2567c8941a56e746 100644 (file)
@@ -9,5 +9,6 @@
 allow_experimental_apis = true
 deps += 'meter'
 sources = files(
-       'main.c', 'rte_policer.c'
+        'main.c',
+        'rte_policer.c',
 )
index ba59d3c9e533d6dd9619d2c03c3b7643144f9db0..dc103e9556f7df5952b223e439e3d849acbcf4ff 100644 (file)
@@ -9,6 +9,11 @@
 allow_experimental_apis = true
 deps += ['sched', 'cfgfile']
 sources = files(
-       'app_thread.c', 'args.c', 'cfg_file.c', 'cmdline.c',
-       'init.c', 'main.c', 'stats.c'
+        'app_thread.c',
+        'args.c',
+        'cfg_file.c',
+        'cmdline.c',
+        'init.c',
+        'main.c',
+        'stats.c',
 )
index a7bf12dd3a9fea9327db77a7a4431cd55c2c5e8d..5e860708fc5d9a370dd58226bb3587501a225bd1 100644 (file)
@@ -10,5 +10,5 @@
 allow_experimental_apis = true
 
 sources = files(
-       'main.c'
+        'main.c',
 )
index 2b0a25036125381fe131a60eef688103ace49f77..441678bbe5c797903da889780fe72d90ca0d1a3f 100644 (file)
@@ -8,5 +8,5 @@
 
 allow_experimental_apis = true
 sources = files(
-       'main.c'
+        'main.c',
 )
index ef46b187e7003c4c058438738b4fd20a3405fddf..f56a4104b569c4d78345400405036278dd8533a8 100644 (file)
@@ -8,5 +8,5 @@
 
 allow_experimental_apis = true
 sources = files(
-       'basicfwd.c'
+        'basicfwd.c',
 )
index 87c21a867939e178870bca3d3af839fe6cff7a8b..c140f74e12c191fbd66210d0782db212a6095dc5 100644 (file)
@@ -9,5 +9,5 @@
 allow_experimental_apis = true
 deps += 'timer'
 sources = files(
-       'main.c'
+        'main.c',
 )
index 26f6089c923f3c0b32db719906327324e466ff27..bd086050dc86fdc6e71ad8c329866e7d23a1e333 100644 (file)
@@ -7,12 +7,12 @@
 # DPDK instance, use 'make'
 
 if not is_linux
-       build = false
-       subdir_done()
+    build = false
+    subdir_done()
 endif
 
 deps += 'vhost'
 allow_experimental_apis = true
 sources = files(
-       'main.c'
+        'main.c',
 )
index 9d9947c58565a9a6cbcd4d0986b5e3ec95e65c6b..3efd5e6540416cee72d286ab403c84470ec65ca2 100644 (file)
@@ -7,17 +7,18 @@
 # DPDK instance, use 'make'
 
 if not is_linux
-       build = false
-       subdir_done()
+    build = false
+    subdir_done()
 endif
 
 deps += 'vhost'
 allow_experimental_apis = true
 sources = files(
-       'main.c', 'virtio_net.c'
+        'main.c',
+        'virtio_net.c',
 )
 
 if dpdk_conf.has('RTE_RAW_IOAT')
-       deps += 'raw_ioat'
-       sources += files('ioat.c')
+    deps += 'raw_ioat'
+    sources += files('ioat.c')
 endif
index 354ba05848d06468ebd49163fa54dcc41b42536d..9314f47e559d893f59cecaf946540fc6bdf5e2a1 100644 (file)
@@ -7,17 +7,19 @@
 # DPDK instance, use 'make'
 
 if not is_linux
-       build = false
-       subdir_done()
+    build = false
+    subdir_done()
 endif
 
 if not cc.has_header('linux/virtio_blk.h')
-       build = false
-       subdir_done()
+    build = false
+    subdir_done()
 endif
 
 deps += 'vhost'
 allow_experimental_apis = true
 sources = files(
-       'blk.c', 'vhost_blk.c', 'vhost_blk_compat.c'
+        'blk.c',
+        'vhost_blk.c',
+        'vhost_blk_compat.c',
 )
index 403f210983183f989ce6c473ab202e5ca1dd2eac..720f42dd702928d372e24c66bf21caa71c5b568e 100644 (file)
@@ -8,11 +8,11 @@
 
 build = dpdk_conf.has('RTE_LIB_VHOST')
 if not build
-       subdir_done()
+    subdir_done()
 endif
 
 allow_experimental_apis = true
 deps += ['vhost', 'cryptodev']
 sources = files(
-       'main.c'
+        'main.c',
 )
index cd9526601835a1976f3b5fd7e2d5dad1cc429642..666eef94ae80f40c221afeddea09292a5bc8b6da 100644 (file)
@@ -14,7 +14,9 @@ endif
 deps += ['power']
 
 sources = files(
-       'main.c', 'parse.c', 'vm_power_cli_guest.c'
+        'main.c',
+        'parse.c',
+        'vm_power_cli_guest.c',
 )
 
 allow_experimental_apis = true
index 637bd2323581fc9babf72159f82bdc07ccf31ed7..c15bad660914a0653273f7366d7657d5cef0c735 100644 (file)
@@ -7,34 +7,39 @@
 # DPDK instance, use 'make'
 
 if not dpdk_conf.has('RTE_LIB_POWER')
-       build = false
-       subdir_done()
+    build = false
+    subdir_done()
 endif
 
 deps += ['power']
 
 if dpdk_conf.has('RTE_NET_BNXT')
-       deps += ['net_bnxt']
+    deps += ['net_bnxt']
 endif
 
 if dpdk_conf.has('RTE_NET_I40E')
-       deps += ['net_i40e']
+    deps += ['net_i40e']
 endif
 
 if dpdk_conf.has('RTE_NET_IXGBE')
-       deps += ['net_ixgbe']
+    deps += ['net_ixgbe']
 endif
 
 allow_experimental_apis = true
 sources = files(
-       'channel_manager.c', 'channel_monitor.c', 'main.c', 'parse.c', 'power_manager.c', 'vm_power_cli.c'
+        'channel_manager.c',
+        'channel_monitor.c',
+        'main.c',
+        'parse.c',
+        'power_manager.c',
+        'vm_power_cli.c',
 )
 
 # If we're on X86, pull in the x86 code for the branch monitor algo.
 if dpdk_conf.has('RTE_ARCH_X86_64')
-       sources += files('oob_monitor_x86.c')
+    sources += files('oob_monitor_x86.c')
 else
-       sources += files('oob_monitor_nop.c')
+    sources += files('oob_monitor_nop.c')
 endif
 
 opt_dep = cc.find_library('virt', required : false)
@@ -43,6 +48,6 @@ ext_deps += opt_dep
 
 opt_dep = dependency('jansson', required : false, method: 'pkg-config')
 if opt_dep.found()
-       ext_deps += opt_dep
-       cflags += '-DUSE_JANSSON'
+    ext_deps += opt_dep
+    cflags += '-DUSE_JANSSON'
 endif
index 2b0a25036125381fe131a60eef688103ace49f77..441678bbe5c797903da889780fe72d90ca0d1a3f 100644 (file)
@@ -8,5 +8,5 @@
 
 allow_experimental_apis = true
 sources = files(
-       'main.c'
+        'main.c',
 )
index 2b0a25036125381fe131a60eef688103ace49f77..441678bbe5c797903da889780fe72d90ca0d1a3f 100644 (file)
@@ -8,5 +8,5 @@
 
 allow_experimental_apis = true
 sources = files(
-       'main.c'
+        'main.c',
 )