[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [UNIKRAFT PATCH 7/7] build: Support generating C/C++ headers with pre-processing


  • To: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU <vlad_andrei.badoiu@xxxxxx>
  • Date: Mon, 19 Apr 2021 13:13:11 +0300 (EEST)
  • Cc: minios-devel <minios-devel@xxxxxxxxxxxxx>
  • Delivery-date: Mon, 19 Apr 2021 10:13:15 +0000
  • Dkim-filter: OpenDKIM Filter v2.10.3 mx.upb.ro 85892B5600A6
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: +pQoIz6Zjbe06+m9xcHIzi95OdrM+Q==
  • Thread-topic: build: Support generating C/C++ headers with pre-processing

Thank you!
Reviewed-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxx>

----- Original Message -----
From: "Simon Kuenzer" <simon.kuenzer@xxxxxxxxx>
To: "minios-devel" <minios-devel@xxxxxxxxxxxxx>
Cc: "Simon Kuenzer" <simon.kuenzer@xxxxxxxxx>
Sent: Friday, December 18, 2020 8:09:24 PM
Subject: [UNIKRAFT PATCH 7/7] build: Support generating C/C++ headers with 
pre-processing

Supports generating C/C++ header files by the pre-processing rules
of the build system.

Example:
 LIBMYLIB_SRCS += $(LIBMYLIB_BASE)/header.m4>.h

Signed-off-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>
---
 support/build/Makefile.rules | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/support/build/Makefile.rules b/support/build/Makefile.rules
index 1aca3391..48c3f4ff 100644
--- a/support/build/Makefile.rules
+++ b/support/build/Makefile.rules
@@ -602,6 +602,16 @@ endef
 # Aliases for pre-processed files (e.g., *.in)
 buildrule_in   = $(call buildrule_noop_,$(1),$(2))
 
+# Aliases for C headers
+buildrule_h   = $(call buildrule_noop_,$(1),$(2))
+
+# Aliases for C++ headers
+buildrule_hp  = $(call buildrule_noop_,$(1),$(2))
+buildrule_hh  = $(call buildrule_noop_,$(1),$(2))
+buildrule_hpp = $(call buildrule_noop_,$(1),$(2))
+buildrule_HPP = $(call buildrule_noop_,$(1),$(2))
+buildrule_H   = $(call buildrule_noop_,$(1),$(2))
+
 # wrapper for buildrule_*,
 # selects appropriate buildrule depending on file extension,
 # if there is no such buildrule available, we throw an error.
-- 
2.20.1



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.