From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 7FD55A045E for ; Wed, 29 May 2019 18:40:17 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6D6071B95D; Wed, 29 May 2019 18:40:11 +0200 (CEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id 1B0D91B956 for ; Wed, 29 May 2019 18:40:08 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190529164007euoutp02d3253b6b96b85fa072773248bde9e7a9~jNNpA_QFv2258622586euoutp02O for ; Wed, 29 May 2019 16:40:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190529164007euoutp02d3253b6b96b85fa072773248bde9e7a9~jNNpA_QFv2258622586euoutp02O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1559148008; bh=fuIVcKPPXHF/fkWrEL9v7X8LuWw2qxpn1agTeV99i7E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DmJLBwD6rmOjEXjbVsT8G2VlxG6A2gdVXw83uSt8GQupkmnwW+RbKf12KLxXz4Y+S InyWAHoUwP2ecx40mUClZrt3oIMRNEU8488REyIshphdjwQ71YbF89t3mGUVsyNIs9 x69spJTPI3dZWrL8pCtNGFFnab2j20Pt1Y7etFWk= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190529164007eucas1p1135e0485b091382ecc425a8bd6702606~jNNohNeQB0827108271eucas1p11; Wed, 29 May 2019 16:40:07 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 50.80.04325.7E5BEEC5; Wed, 29 May 2019 17:40:07 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190529164006eucas1p296e902a46cb3ef7ac436d619f9e55d5b~jNNnrIqqz0279902799eucas1p2f; Wed, 29 May 2019 16:40:06 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190529164006eusmtrp1f6e2591dfb7d9870756b0362d995decf~jNNnbmH4a1240812408eusmtrp1H; Wed, 29 May 2019 16:40:06 +0000 (GMT) X-AuditID: cbfec7f5-b8fff700000010e5-bf-5ceeb5e783c0 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id FF.22.04140.6E5BEEC5; Wed, 29 May 2019 17:40:06 +0100 (BST) Received: from imaximets.rnd.samsung.ru (unknown [106.109.129.180]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190529164005eusmtip205d16f43fcd3d63727633d6df9ffe153~jNNm-t0Rf2748427484eusmtip2C; Wed, 29 May 2019 16:40:05 +0000 (GMT) From: Ilya Maximets To: dev@dpdk.org, Thomas Monjalon Cc: Bruce Richardson , Aaron Conole , Kevin Traynor , Ilya Maximets Date: Wed, 29 May 2019 19:39:57 +0300 Message-Id: <20190529163958.30796-2-i.maximets@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190529163958.30796-1-i.maximets@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrOIsWRmVeSWpSXmKPExsWy7djP87rPt76LMTi8j93i15sH7BY3Vtlb vPu0ncniSvtPdou1hz6wW3x6cILFgc3j14KlrB6L97xk8jh2cxq7x/t9V9k8+rasYgxgjeKy SUnNySxLLdK3S+DK6H8zm6lgOX9F+8E1bA2MX3i6GDk5JARMJJ4v2sLaxcjFISSwglFi/bcj bBDOF0aJKX+nMUI4nxkl5mx/wAL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+AtcSq/81MEBvkJVZvOMAMYnMK2Eg0ts9gg7jIWqJhxz7mCYx8CxgZVjGKpJYW 56bnFhvpFSfmFpfmpesl5+duYgSG6rZjP7fsYOx6F3yIUYCDUYmHd0L+uxgh1sSy4srcQ4wS HMxKIrw/lwOFeFMSK6tSi/Lji0pzUosPMZoCHTWRWUo0OR8YR3kl8YamhuYWlobmxubGZhZK 4rwdAgdjhATSE0tSs1NTC1KLYPqYODilGhib1y89XVejcHL6rPX2zb7RyjGCj6O1434q5U24 mL4rzuxBi+Qq/d6c7e815MW6uWPiLqwKWWgc0WtwR7sqUi35ETefdu7qx+fSd090CJz1qECt 6IRBceiUDc6KL/JSLrjIG9W8S17+59KVBy2vn198Zn59B1uf6UG5pe+3t5qy50kmP2t6UaXE UpyRaKjFXFScCAC2yzCaawIAAA== X-CMS-MailID: 20190529164006eucas1p296e902a46cb3ef7ac436d619f9e55d5b X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190529164006eucas1p296e902a46cb3ef7ac436d619f9e55d5b X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190529164006eucas1p296e902a46cb3ef7ac436d619f9e55d5b References: <20190529163958.30796-1-i.maximets@samsung.com> Subject: [dpdk-dev] [PATCH 1/2] meson: don't check dependencies for tests if not required X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Don't need to check dependencies if test apps will not be built anyway. Signed-off-by: Ilya Maximets --- app/test/meson.build | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/app/test/meson.build b/app/test/meson.build index 83391cef0..7a529b644 100644 --- a/app/test/meson.build +++ b/app/test/meson.build @@ -313,29 +313,29 @@ endif # specify -D_GNU_SOURCE unconditionally cflags += '-D_GNU_SOURCE' -test_dep_objs = [] -if dpdk_conf.has('RTE_LIBRTE_COMPRESSDEV') - compress_test_dep = dependency('zlib', required: false) - if compress_test_dep.found() - test_dep_objs += compress_test_dep - test_sources += 'test_compressdev.c' - test_deps += 'compressdev' - fast_non_parallel_test_names += 'compressdev_autotest' +if get_option('tests') + test_dep_objs = [] + if dpdk_conf.has('RTE_LIBRTE_COMPRESSDEV') + compress_test_dep = dependency('zlib', required: false) + if compress_test_dep.found() + test_dep_objs += compress_test_dep + test_sources += 'test_compressdev.c' + test_deps += 'compressdev' + fast_non_parallel_test_names += 'compressdev_autotest' + endif endif -endif -foreach d:test_deps - def_lib = get_option('default_library') - test_dep_objs += get_variable(def_lib + '_rte_' + d) -endforeach -test_dep_objs += cc.find_library('execinfo', required: false) + foreach d:test_deps + def_lib = get_option('default_library') + test_dep_objs += get_variable(def_lib + '_rte_' + d) + endforeach + test_dep_objs += cc.find_library('execinfo', required: false) -link_libs = [] -if get_option('default_library') == 'static' - link_libs = dpdk_drivers -endif + link_libs = [] + if get_option('default_library') == 'static' + link_libs = dpdk_drivers + endif -if get_option('tests') dpdk_test = executable('dpdk-test', test_sources, link_whole: link_libs, -- 2.17.1