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 E23D2A0679 for ; Thu, 28 Mar 2019 20:30:58 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C31594C91; Thu, 28 Mar 2019 20:30:58 +0100 (CET) Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-eopbgr780120.outbound.protection.outlook.com [40.107.78.120]) by dpdk.org (Postfix) with ESMTP id 7F2DE493D for ; Thu, 28 Mar 2019 20:30:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7iQ4LFT4VLCrMPnyOHIpV2IbLDBPAIQ9+crcZufuW54=; b=esTd7cPguqCCB1kZBOQJ2cKDBLLNVC4IFojiWW6r0MizANCmYWvaBH8LH6+DTS3JphzDfNDlJqMms5SjrpYG0IwhqzyjLcm/JNnlQMJvgQ9tJHRbKmgsLOga6a1+r+HvywUz0wYQq31jxwIw1adJuAZEGePYcvS8tkJuU6wDI/U= ARC-Seal: i=1; a=rsa-sha256; s=testarcselector01; d=microsoft.com; cv=none; b=SnWx0RZgg/wAJTDRv+AZ7kcxaERShTNiAZN5zZ6/dlogxxLUcfMZEMvQCW3wqGRESpwQih8F+/NpzXSs8uR6+iWTSbcvOn3Q/z9PS1m2SEmyKctqFWNARrM01yo5OV1f3aSVPtgvCTdXJ1hUOhnjk/x8JcMylEANvtQg82D9tGc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=testarcselector01; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7iQ4LFT4VLCrMPnyOHIpV2IbLDBPAIQ9+crcZufuW54=; b=hqqhJDS1cqjiBZBhOzBLYFHgY0Fq6ZQcVbsN6Xn3V94bgeKhpqXzBMeK/YYb0moDfBWk2iwP5rvCHqTzKPwdkH+b4rWLkzjXzeQTGg9KubnaFXzM8lQTZvgSgjyFzy4v74w9eEUJLlU8XGHMlB0kFyXNmTqAOkPRxmpL1hiV7Hc= ARC-Authentication-Results: =?us-ascii?Q?i=3D1; _test.office365.com_1; =0D=0A=09=09dmarc=3Dnone_action?= =?us-ascii?Q?=3Dnone_header.from=3Dmicrosoft.com;=0D=0A=09=09arc=3Dnone?= Received: from MWHPR21MB0638.namprd21.prod.outlook.com (10.175.141.139) by MWHPR21MB0175.namprd21.prod.outlook.com (10.173.52.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1771.3; Thu, 28 Mar 2019 19:30:55 +0000 Received: from MWHPR21MB0638.namprd21.prod.outlook.com ([fe80::c4e7:ece1:887e:b983]) by MWHPR21MB0638.namprd21.prod.outlook.com ([fe80::c4e7:ece1:887e:b983%3]) with mapi id 15.20.1771.002; Thu, 28 Mar 2019 19:30:55 +0000 From: Harini Ramakrishnan To: Anand Rawat , "dev@dpdk.org" CC: "pallavi.kadam@intel.com" , "ranjit.menon@intel.com" , "jeffrey.b.shaw@intel.com" , "bruce.richardson@intel.com" , "thomas@monjalon.net" Thread-Topic: [dpdk-dev] [PATCH v6 8/8] build: meson changes to build on windows Thread-Index: AQHU5Q0VUmcCmcz32k6Nf4RL+YF7OKYhb0zg Date: Thu, 28 Mar 2019 19:30:54 +0000 Message-ID: References: <20190306041634.12976-1-anand.rawat@intel.com> <20190328022115.4660-1-anand.rawat@intel.com> <20190328022115.4660-9-anand.rawat@intel.com> In-Reply-To: <20190328022115.4660-9-anand.rawat@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Owner=haramakr@microsoft.com; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2019-03-28T19:30:53.1387930Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=General; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Application=Microsoft Azure Information Protection; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=14f4ae07-125b-4c68-87eb-fe27b60d9503; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Extended_MSFT_Method=Automatic x-originating-ip: [2001:4898:80e8:a:84e2:1334:627:d48e] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5bc4fb6a-a1ed-42aa-cee5-08d6b3b3e582 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:MWHPR21MB0175; x-ms-traffictypediagnostic: MWHPR21MB0175: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-forefront-prvs: 0990C54589 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(366004)(376002)(396003)(346002)(39860400002)(136003)(13464003)(189003)(199004)(6506007)(54906003)(33656002)(478600001)(229853002)(76176011)(6116002)(99286004)(9686003)(14454004)(2501003)(52536014)(6346003)(2906002)(46003)(7696005)(7736002)(10290500003)(6436002)(305945005)(97736004)(74316002)(102836004)(81156014)(5660300002)(71190400001)(446003)(105586002)(71200400001)(53546011)(68736007)(72206003)(256004)(6246003)(186003)(106356001)(25786009)(86362001)(486006)(55016002)(8936002)(53936002)(11346002)(86612001)(476003)(8676002)(110136005)(4326008)(22452003)(8990500004)(81166006)(14444005)(10090500001)(316002); DIR:OUT; SFP:1102; SCL:1; SRVR:MWHPR21MB0175; H:MWHPR21MB0638.namprd21.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Harini.Ramakrishnan@microsoft.com; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: lQvAliZPpT+3I6nAQR797BUI6ZxzCJMKT/lWa7U8rdcenBDNqOfVtbq3JNLlBiuJ7p44WByHNk6B0Zr7bTUVS4vlpSm3bYzDLYW8r8scmiAuALeIzkHPV3eX8KAZrhGNVShGafNX7ffS6T/bEoc+TOqOyXkhRN9ijhUFJ9S1tWzyNCZhqMhhC2UZXGj4QTHsDqYYuWGM29NDDHumSXJwsogmQA5IA/de2Sm8iArLOEFBbjiCpJOrQJgZYf9lpDkggQeGb1itDFI/MSwq2x8cWoCI0xDJZCD/2SYu8wM+cP1RdeJQqQE8WW0HA1U2qQ+pCv874iKOdcbJiVLUJP/D+nwvo3VMkuiZgGvHfgTO6ejMhnssEbBgnwtie6705FNlxyvaaF9pwfJzujUvI3CYRFCz8GAnwJasJ2OGloTQ2eE= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5bc4fb6a-a1ed-42aa-cee5-08d6b3b3e582 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Mar 2019 19:30:55.0066 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR21MB0175 Subject: Re: [dpdk-dev] [PATCH v6 8/8] build: meson changes to build on windows 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" Message-ID: <20190328193054.i32SweHm6bhqViGrr5QaVMuKLTKC1hahUlRNummT4zk@z> Acked-by: Harini Ramakrishnan -----Original Message----- From: dev On Behalf Of Anand Rawat Sent: Wednesday, March 27, 2019 7:21 PM To: dev@dpdk.org Cc: anand.rawat@intel.com; pallavi.kadam@intel.com; ranjit.menon@intel.com;= jeffrey.b.shaw@intel.com; bruce.richardson@intel.com; thomas@monjalon.net Subject: [dpdk-dev] [PATCH v6 8/8] build: meson changes to build on windows Added meson workarounds to build helloworld on windows. Windows currently only supports kvargs and eal libraries. This change restricts the build flow to supported libraries only. Signed-off-by: Anand Rawat Signed-off-by: Pallavi Kadam Reviewed-by: Jeff Shaw Reviewed-by: Ranjit Menon --- app/meson.build | 6 +++++- buildtools/meson.build | 6 +++++- drivers/meson.build | 6 +++++- examples/meson.build | 6 +++++- kernel/windows/meson.build | 4 ++++ lib/librte_eal/common/meson.build | 14 +++++++++----- lib/meson.build | 4 ++++ 7 files changed, 37 insertions(+), 9 deletions(-) create mode 100644 kern= el/windows/meson.build diff --git a/app/meson.build b/app/meson.build index aa353f657..e949624b7 1= 00644 --- a/app/meson.build +++ b/app/meson.build @@ -1,5 +1,9 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright(c) 2017 Intel Corpora= tion +# Copyright(c) 2017-2019 Intel Corporation + +if host_machine.system() =3D=3D 'windows' + subdir_done() +endif =20 apps =3D [ 'pdump', diff --git a/buildtools/meson.build b/buildtools/meson.build index cdd38ed2= 4..0209bec8f 100644 --- a/buildtools/meson.build +++ b/buildtools/meson.build @@ -1,5 +1,9 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright(c) 2017 Intel Corpora= tion +# Copyright(c) 2017-2019 Intel Corporation + +if host_machine.system() =3D=3D 'windows' + subdir_done() +endif =20 subdir('pmdinfogen') =20 diff --git a/drivers/meson.build b/drivers/meson.build index 8c76a5659..752= 0a16e3 100644 --- a/drivers/meson.build +++ b/drivers/meson.build @@ -1,5 +1,9 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright(c) 2017 Intel Corpora= tion +# Copyright(c) 2017-2019 Intel Corporation + +if host_machine.system() =3D=3D 'windows' + subdir_done() +endif =20 # Defines the order in which the drivers are buit. dpdk_driver_classes =3D ['common', diff --git a/examples/meson.build b/examples/meson.build index af81c762e..b= c1430fa8 100644 --- a/examples/meson.build +++ b/examples/meson.build @@ -35,7 +35,11 @@ foreach example: examples =20 ext_deps =3D [execinfo] includes =3D [include_directories(example)] - deps =3D ['eal', 'mempool', 'net', 'mbuf', 'ethdev', 'cmdline'] + if host_machine.system() !=3D 'windows' + deps =3D ['eal', 'mempool', 'net', 'mbuf', 'ethdev', 'cmdline'] + else + deps =3D ['eal'] # only supported lib on windows currently + endif subdir(example) =20 if build diff --git a/kernel/windows/meson.build b/kernel/windows/meson.build new fi= le mode 100644 index 000000000..c4a2a656a --- /dev/null +++ b/kernel/windows/meson.build @@ -0,0 +1,4 @@ +# SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2019 Intel=20 +Corporation + +# stub file for supporting windows logic in future release \ No newline at end of file diff --git a/lib/librte_eal/common/meson.build b/lib/librte_eal/common/meso= n.build index 5ecae0b1f..e9021c00c 100644 --- a/lib/librte_eal/common/meson.build +++ b/lib/librte_eal/common/meson.build @@ -1,23 +1,26 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright(c) 2017 Intel Corpora= tion +# Copyright(c) 2017-2019 Intel Corporation =20 eal_inc +=3D include_directories('.', 'include', join_paths('include/arch', arch_subdir)) =20 common_objs =3D [] +common_sources =3D files( + 'eal_common_errno.c', + 'eal_common_launch.c', + 'eal_common_lcore.c', + 'eal_common_log.c' + ) +if host_machine.system() !=3D 'windows' common_sources =3D files( 'eal_common_bus.c', 'eal_common_cpuflags.c', 'eal_common_class.c', 'eal_common_devargs.c', 'eal_common_dev.c', - 'eal_common_errno.c', 'eal_common_fbarray.c', 'eal_common_hexdump.c', 'eal_common_hypervisor.c', - 'eal_common_launch.c', - 'eal_common_lcore.c', - 'eal_common_log.c', 'eal_common_memalloc.c', 'eal_common_memory.c', 'eal_common_memzone.c', @@ -38,6 +41,7 @@ common_sources =3D files( 'rte_reciprocal.c', 'rte_service.c' ) +endif =20 # get architecture specific sources and objs eal_common_arch_sources =3D = [] diff --git a/lib/meson.build b/lib/meson.build index 9cba4662e..d3e556ae= 3 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -30,6 +30,10 @@ libraries =3D [ # flow_classify lib depends on pkt framework table lib 'flow_classify', 'bpf', 'telemetry'] =20 +if host_machine.system() =3D=3D 'windows' + libraries =3D ['kvargs','eal'] # override libraries for windows endif + default_cflags =3D machine_args if cc.has_argument('-Wno-format-truncation') default_cflags +=3D '-Wno-format-truncation' -- 2.17.1.windows.2