File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 15
15
from itertools import chain
16
16
from functools import lru_cache
17
17
import json
18
+ import os
18
19
19
20
def memoize (func ):
20
21
@lru_cache (maxsize = 1000000 )
@@ -722,6 +723,18 @@ def register_int_ptr_type(convertor, *types):
722
723
# Emit Header
723
724
#
724
725
726
+ headers = args .input
727
+ for header in headers :
728
+ if 'lvgl.h' in header :
729
+ path , _ = os .path .split (header )
730
+ if path and path != 'lvgl.h' :
731
+ path = os .path .join (path , 'src' , 'lvgl_private.h' )
732
+ else :
733
+ path = 'src/lvgl_private.h'
734
+
735
+ headers .append (path )
736
+ break
737
+
725
738
print ("""
726
739
/*
727
740
* Auto-Generated file, DO NOT EDIT!
@@ -760,7 +773,7 @@ def register_int_ptr_type(convertor, *types):
760
773
cmd_line = ' ' .join (argv ),
761
774
pp_cmd = pp_cmd ,
762
775
objs = ", " .join (['%s(%s)' % (objname , parent_obj_names [objname ]) for objname in obj_names ]),
763
- lv_headers = '\n ' .join ('#include "%s"' % header for header in args . input )))
776
+ lv_headers = '\n ' .join ('#include "%s"' % header for header in headers )))
764
777
765
778
#
766
779
# Enable objects, if supported
You can’t perform that action at this time.
0 commit comments