瀏覽代碼

mapi: move genCommon.py to src/mapi/new

The helper will also be used by the new Khronos gl.xml aware generator.

v2: Move existing one, instead of duplicating it.
v3: Correct genCommon.py references in meson [Erik]
v4: Drop the file from the EGL EXTRA_DIST [Erik]

Suggested-by: Kyle Brenneman <kbrenneman@nvidia.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
tags/19.0-branchpoint
Emil Velikov 6 年之前
父節點
當前提交
cd0f11bac5
共有 6 個文件被更改,包括 19 次插入6 次删除
  1. 11
    3
      src/egl/Makefile.am
  2. 3
    0
      src/egl/generate/gen_egl_dispatch.py
  3. 3
    3
      src/egl/meson.build
  4. 1
    0
      src/mapi/Makefile.am
  5. 1
    0
      src/mapi/meson.build
  6. 0
    0
      src/mapi/new/genCommon.py

+ 11
- 3
src/egl/Makefile.am 查看文件

@@ -136,10 +136,18 @@ libEGL_common_la_LIBADD += \
$(LIBDRM_LIBS) \
$(CLOCK_LIB)

GLVND_GEN_DEPS = generate/gen_egl_dispatch.py \
generate/egl.xml generate/eglFunctionList.py generate/genCommon.py \
# dummy rule to keep dist happy
$(top_scrdir)/src/mapi/new/genCommon.py:

GLVND_GEN_EGL_DEPS = \
generate/gen_egl_dispatch.py \
generate/eglFunctionList.py \
generate/egl.xml \
generate/egl_other.xml

GLVND_GEN_DEPS = $(top_scrdir)/src/mapi/new/genCommon.py \
$(GLVND_GEN_EGL_DEPS)

PYTHON_GEN = $(AM_V_GEN)$(PYTHON) $(PYTHON_FLAGS)
g_egldispatchstubs.c: $(GLVND_GEN_DEPS)
$(PYTHON_GEN) $(top_srcdir)/src/egl/generate/gen_egl_dispatch.py source \
@@ -226,6 +234,6 @@ EXTRA_DIST = \
drivers/haiku \
main/egl.def \
main/README.txt \
$(GLVND_GEN_DEPS) \
$(GLVND_GEN_EGL_DEPS) \
main/50_mesa.json \
meson.build

+ 3
- 0
src/egl/generate/gen_egl_dispatch.py 查看文件

@@ -38,6 +38,9 @@ import eglFunctionList
import sys
import textwrap

import os
NEWAPI = os.path.join(os.path.dirname(__file__), "..", "..", "mapi", "new")
sys.path.insert(0, NEWAPI)
import genCommon

def main():

+ 3
- 3
src/egl/meson.build 查看文件

@@ -1,4 +1,4 @@
# Copyright © 2017 Intel Corporation
# Copyright © 2017 Intel Corporation

# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@@ -69,7 +69,7 @@ g_egldispatchstubs_c = custom_target(
command : [
prog_python, '@INPUT0@', 'source', '@INPUT1@', '@INPUT2@',
],
depend_files : files('generate/eglFunctionList.py', 'generate/genCommon.py'),
depend_files : [ files('generate/eglFunctionList.py'), genCommon_py, ],
capture : true,
)

@@ -83,7 +83,7 @@ g_egldispatchstubs_h = custom_target(
command : [
prog_python, '@INPUT0@', 'header', '@INPUT1@', '@INPUT2@',
],
depend_files : files('generate/eglFunctionList.py', 'generate/genCommon.py'),
depend_files : [ files('generate/eglFunctionList.py'), genCommon_py, ],
capture : true,
)


+ 1
- 0
src/mapi/Makefile.am 查看文件

@@ -31,6 +31,7 @@ pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA =

EXTRA_DIST = \
new/genCommon.py \
es1api/ABI-check \
es2api/ABI-check \
mapi_abi.py \

+ 1
- 0
src/mapi/meson.build 查看文件

@@ -25,6 +25,7 @@ files_mapi_util = files(
'u_execmem.h',
)

genCommon_py = files('new/genCommon.py')
mapi_abi_py = files('mapi_abi.py')

subdir('glapi')

src/egl/generate/genCommon.py → src/mapi/new/genCommon.py 查看文件


Loading…
取消
儲存