Home | History | Annotate | Line # | Download | only in files
      1  1.4  mrg #	$NetBSD: Makefile,v 1.4 2024/07/04 07:52:28 mrg Exp $
      2  1.1  mrg 
      3  1.1  mrg # This makefile is used to generate the libxcb xml/python generated files.
      4  1.1  mrg # For now it is broken, and these files were copied from a normal libxcb
      5  1.1  mrg # build.
      6  1.1  mrg 
      7  1.1  mrg .include <bsd.own.mk>
      8  1.1  mrg .include "Makefile.xmlsrcs"
      9  1.1  mrg 
     10  1.4  mrg PYTHON?=	/usr/pkg/bin/python3.11
     11  1.4  mrg PYTHONLIB?=	/usr/pkg/lib/python3.11
     12  1.1  mrg C_CLIENT?=	${X11SRCDIR.xcb}/src/c_client.py
     13  1.1  mrg 
     14  1.1  mrg .SUFFIXES: .c .xml
     15  1.1  mrg 
     16  1.3  mrg # Set this to a r/w location if using r/o sources.
     17  1.3  mrg NEWCONFIGDIR?=  ${.CURDIR}
     18  1.3  mrg 
     19  1.3  mrg # this doesn't work yet - needs properly install "xcbgen".
     20  1.3  mrg # these files are copied from a normal build.
     21  1.1  mrg .xml.c:
     22  1.3  mrg 	( \
     23  1.3  mrg 	cd ${NEWCONFIGDIR}; \
     24  1.3  mrg 	env PYTHONPATH=${X11SRCDIR.xcb-proto} ${PYTHON} ${C_CLIENT} \
     25  1.3  mrg 		-c "libxcb 1.15" \
     26  1.3  mrg 		-l "X Version 11" \
     27  1.3  mrg 		-s 3 \
     28  1.3  mrg 		-p ${PYTHONLIB}/site-packages ${.IMPSRC} \
     29  1.3  mrg 	)
     30  1.1  mrg 
     31  1.4  mrg generate_from_xml: ${XMLSRCS:.xml=.c}
     32  1.1  mrg 
     33  1.1  mrg all: generate_from_xml
     34  1.1  mrg 
     35  1.1  mrg .include <bsd.subdir.mk>
     36  1.1  mrg 
     37  1.1  mrg .PATH: ${X11SRCDIR.xcb-proto}/src
     38