mirror of
https://github.com/pocketpy/pocketpy
synced 2026-02-04 06:30:17 +00:00
move files
This commit is contained in:
parent
c21d73738c
commit
05c47f1023
@ -4,5 +4,6 @@
|
|||||||
-std=c11
|
-std=c11
|
||||||
-Iinclude/
|
-Iinclude/
|
||||||
-I3rd/lz4/
|
-I3rd/lz4/
|
||||||
|
-I3rd/periphery/
|
||||||
-I3rd/cute_png/include/
|
-I3rd/cute_png/include/
|
||||||
-I3rd/msgpack/include/
|
-I3rd/msgpack/include/
|
||||||
|
|||||||
@ -157,7 +157,7 @@ class Library:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def from_header(name: str, header: 'Header'):
|
def from_header(name: str, header: 'Header'):
|
||||||
from c_bind.meta import schema
|
from ffigen.meta import schema
|
||||||
self = Library(name)
|
self = Library(name)
|
||||||
for type in header.types:
|
for type in header.types:
|
||||||
if isinstance(type, schema.NamedFields):
|
if isinstance(type, schema.NamedFields):
|
||||||
@ -1,7 +1,7 @@
|
|||||||
import pcpp
|
import pcpp
|
||||||
import pycparser
|
import pycparser
|
||||||
from c_bind import Library, set_vmath_converter, set_enum_converters
|
from ffigen import Library, set_vmath_converter, set_enum_converters
|
||||||
from c_bind.meta import Header
|
from ffigen.meta import Header
|
||||||
import os
|
import os
|
||||||
|
|
||||||
path = '../3rd/box2d/include/box2d/box2d.h'
|
path = '../3rd/box2d/include/box2d/box2d.h'
|
||||||
@ -1,7 +1,8 @@
|
|||||||
import pcpp
|
import pcpp
|
||||||
import pycparser
|
import pycparser
|
||||||
from c_bind import Library, set_vmath_converter, set_enum_converters
|
from ffigen.library import Library
|
||||||
from c_bind.meta import Header
|
from ffigen.converters import set_vmath_converter, set_enum_converters
|
||||||
|
from ffigen.meta import Header
|
||||||
import os
|
import os
|
||||||
|
|
||||||
file_dir = os.path.dirname(os.path.abspath(__file__))
|
file_dir = os.path.dirname(os.path.abspath(__file__))
|
||||||
@ -20,7 +21,7 @@ lib = Library.from_header('periphery', header)
|
|||||||
set_enum_converters([enum.name for enum in lib.enums])
|
set_enum_converters([enum.name for enum in lib.enums])
|
||||||
|
|
||||||
lib.build(
|
lib.build(
|
||||||
includes=['c-periphery/gpio.h'],
|
includes=['c-periphery/src/gpio.h'],
|
||||||
glue_dir='3rd/periphery/src',
|
glue_dir='3rd/periphery/src',
|
||||||
stub_dir='include/typings'
|
stub_dir='include/typings'
|
||||||
)
|
)
|
||||||
@ -1,5 +1,5 @@
|
|||||||
import json
|
import json
|
||||||
from c_bind import Library, set_vmath_converter
|
from ffigen import Library, set_vmath_converter
|
||||||
|
|
||||||
with open('../3rd/raylib/parser/output/raylib_api.json') as f:
|
with open('../3rd/raylib/parser/output/raylib_api.json') as f:
|
||||||
data = json.load(f)
|
data = json.load(f)
|
||||||
@ -1,7 +0,0 @@
|
|||||||
from .function import gen_function
|
|
||||||
from .converters import get_converter, set_vmath_converter, set_enum_converters
|
|
||||||
from .writer import Writer
|
|
||||||
from .struct import gen_struct
|
|
||||||
from .enum import gen_enum
|
|
||||||
|
|
||||||
from .library import Library
|
|
||||||
Loading…
x
Reference in New Issue
Block a user