mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
Update amalgamate.py
This commit is contained in:
parent
446438c2bc
commit
795d34dc49
@ -66,10 +66,16 @@ if sys.platform == 'linux':
|
|||||||
|
|
||||||
print("amalgamated/pocketpy.h")
|
print("amalgamated/pocketpy.h")
|
||||||
|
|
||||||
with open("amalgamated/pocketpy.cpp", "wt", encoding='utf-8') as f:
|
content = []
|
||||||
for i in ["src/export.h", "c_bindings/pocketpy_c.h", "c_bindings/pocketpy_c.cpp"]:
|
for i in ["src/export.h", "c_bindings/pocketpy_c.h", "c_bindings/pocketpy_c.cpp"]:
|
||||||
with open(i, "rt", encoding='utf-8') as g:
|
with open(i, "rt", encoding='utf-8') as g:
|
||||||
f.write(g.read() + '\n\n')
|
content.append(g.read())
|
||||||
|
|
||||||
|
with open("amalgamated/pocketpy.cpp", "wt", encoding='utf-8') as f:
|
||||||
|
content = '\n\n'.join(content)
|
||||||
|
content.replace('#include "export.h"', '')
|
||||||
|
f.write(content)
|
||||||
|
|
||||||
|
|
||||||
shutil.copy("amalgamated/pocketpy.h", "plugins/flutter/src/pocketpy.h")
|
shutil.copy("amalgamated/pocketpy.h", "plugins/flutter/src/pocketpy.h")
|
||||||
shutil.copy("amalgamated/pocketpy.cpp", "plugins/flutter/src/pocketpy.cpp")
|
shutil.copy("amalgamated/pocketpy.cpp", "plugins/flutter/src/pocketpy.cpp")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user