From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7AC12A0548; Wed, 3 Nov 2021 23:12:11 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0FFD240E0F; Wed, 3 Nov 2021 23:12:11 +0100 (CET) Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by mails.dpdk.org (Postfix) with ESMTP id 9FBF540689 for ; Wed, 3 Nov 2021 23:12:09 +0100 (CET) Received: by mail-pl1-f177.google.com with SMTP id r5so3932314pls.1 for ; Wed, 03 Nov 2021 15:12:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=knJlMS9NMTyQ7IkLj8OhT1J/0QERm4H6Imw0VPzPUAA=; b=TQoeIVj4Li/3+OQGw4jUbTBajSDwYzH+mmx8ikHg9gDAOw+SSE/gL4rDTfOze6AS8K Nzh1RZzZrnLWSLm/M5YDIXfww/Rjait30pQ8TnVah8V0Ehtno6NKgql8PXEF00xZ8W9r MI7k3uXzMtIPAblK3Z5i2JGEY0Jl0rJfqQE3DAbQBKI4Bh+/59w3UVnb80sFT8/+xuMl wHiPA2DcT7opGYN6ZI8Sl6CkmY+5at4uy0ndrv/IQv7Hwy803LGU4ip1l3saMxmg19MF rHuiOjBtJ9uPEHPmXUFxUy4R2F7gqeGc0FNF+VB9Dgyo7Zbq4cnsleVJUMijxz6A8E3n xClg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=knJlMS9NMTyQ7IkLj8OhT1J/0QERm4H6Imw0VPzPUAA=; b=2fClw968yPbDyVjdNkYqCVoWeKRTtcXeSs1oZ5IyJ1dtcvD0D6sluNr2/nXxmFeJTv +LbdkHVN++XIiQnG0FrAI8/QzziFV6ny5hyKZv+jYG08CzH8u/rdi7RlmZ16CFudPNMM FBvLn7h33ncOymGL8JfYDi8k4dlzo3fgtm0793FTDl022KxzMiL0A7WBOzNvN+Y9tELx SV7eOp5M4E+UOsX01Ij+lGOUG/Am/k9zCz/eK84JIzrT/SCRSMpIFhMX0Pzil3kGlnLZ 8cpmPGAv5xwNMFMUqNFKIpFNEOR68MibMP/G+hDzGHrtJrAJQLCAmCu5AshpP6GRl22I GJvQ== X-Gm-Message-State: AOAM531DiCyaO4qFAReo4O2kU+Lfi5q6P4h7FKF2i2yfPT7n3Yqywu5n joa3NdCPYjRGkn2AhOVnGYbymA== X-Google-Smtp-Source: ABdhPJwxYxd07gfSbvucWyp1QQoiC8TyavW/8ECcxzsMYE+eEVZ9hPr8ZrLh4j5Hx/wi+fHyPqdG8Q== X-Received: by 2002:a17:902:f2c2:b0:141:9ce8:930f with SMTP id h2-20020a170902f2c200b001419ce8930fmr38203307plc.68.1635977528492; Wed, 03 Nov 2021 15:12:08 -0700 (PDT) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id b1sm3130392pfv.110.2021.11.03.15.12.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Nov 2021 15:12:07 -0700 (PDT) From: Stephen Hemminger To: Bruce Richardson Cc: dev@dpdk.org, Stephen Hemminger Date: Wed, 3 Nov 2021 15:12:05 -0700 Message-Id: <20211103221205.63175-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [RFC] build: allow build DPDK as a meson submodule X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" Some other projects using meson may not be able to use DPDK using the standard distribution pkg-config mechanism. Meson supports a way to handle this via the subproject https://mesonbuild.com/Subprojects.html This patch adds the necessary depedency to follow the "Naming convention for depedency variables" from the documentation. It has no impact if subproject is not being used. Signed-off-by: Stephen Hemminger --- meson.build | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/meson.build b/meson.build index 12cb6e0e83f3..6ce5eda2779f 100644 --- a/meson.build +++ b/meson.build @@ -97,6 +97,16 @@ configure_file(output: build_cfg, # build pkg-config files for dpdk subdir('buildtools/pkg-config') +# If DPDK is being built as subproject then define +# varialble with the dependency convention +if meson.is_subproject() + libdpdk_dep = declare_dependency( + version: meson.project_version(), + compile_args : pkg_extra_cflags, + dependencies: shared_deps + ) +endif + # final output, list all the libs and drivers to be built # this does not affect any part of the build, for information only. output_message = '\n=================\nLibraries Enabled\n=================\n' -- 2.30.2