tools/make-frozen: Update for latest changes in frozen modules support.
Frozen modules are now stored with extensions and with '/' as path separator. In other words, frozen modules paths stored as they are in normal filesystem.
This commit is contained in:
parent
fb742cdc12
commit
daa4793578
@ -23,7 +23,7 @@ import os
|
|||||||
|
|
||||||
|
|
||||||
def module_name(f):
|
def module_name(f):
|
||||||
return f[:-len(".py")]
|
return f
|
||||||
|
|
||||||
modules = []
|
modules = []
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ print("#include <stdint.h>")
|
|||||||
print("const char mp_frozen_str_names[] = {")
|
print("const char mp_frozen_str_names[] = {")
|
||||||
for f, st in modules:
|
for f, st in modules:
|
||||||
m = module_name(f)
|
m = module_name(f)
|
||||||
print('"%s\\0"' % m.replace("/", "."))
|
print('"%s\\0"' % m)
|
||||||
print('"\\0"};')
|
print('"\\0"};')
|
||||||
|
|
||||||
print("const uint32_t mp_frozen_str_sizes[] = {")
|
print("const uint32_t mp_frozen_str_sizes[] = {")
|
||||||
|
Loading…
Reference in New Issue
Block a user