update 'new watch face' script
This commit is contained in:
parent
e1b5395e10
commit
06aed9749f
@ -22,8 +22,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef <#WATCH_FACE_NAME#>_FACE_H_
|
||||
#define <#WATCH_FACE_NAME#>_FACE_H_
|
||||
#pragma once
|
||||
|
||||
#include "movement.h"
|
||||
|
||||
@ -51,6 +50,3 @@ void <#watch_face_name#>_face_resign(void *context);
|
||||
<#watch_face_name#>_face_resign, \
|
||||
NULL, \
|
||||
})
|
||||
|
||||
#endif // <#WATCH_FACE_NAME#>_FACE_H_
|
||||
|
||||
@ -88,10 +88,10 @@ def main():
|
||||
line_to_insert = f"#include \"{args.watch_face_name}_face.h\"\n"
|
||||
update_include_file(f"..{os.sep}movement_faces.h", INCLUDE_INDICATOR, line_to_insert)
|
||||
|
||||
line_to_insert = f" ..{os.sep}watch_faces{os.sep}{args.watch_face_type}{os.sep}{args.watch_face_name}_face.c \\\n"
|
||||
update_include_file(f"..{os.sep}make{os.sep}Makefile", MAKEFILE_INDICATOR, line_to_insert)
|
||||
line_to_insert = f" .{os.sep}watch-faces{os.sep}{args.watch_face_type}{os.sep}{args.watch_face_name}_face.c \\\n"
|
||||
update_include_file(f"..{os.sep}watch-faces.mk", MAKEFILE_INDICATOR, line_to_insert)
|
||||
|
||||
output_dir = f"..{os.sep}watch_faces{os.sep}{args.watch_face_type}{os.sep}"
|
||||
output_dir = f"..{os.sep}watch-faces{os.sep}{args.watch_face_type}{os.sep}"
|
||||
write_modified_template(args, "h", output_dir)
|
||||
write_modified_template(args, "c", output_dir)
|
||||
|
||||
@ -15,3 +15,4 @@ SRCS += \
|
||||
./watch-faces/sensor/voltage_face.c \
|
||||
./watch-faces/settings/set_time_face.c \
|
||||
./watch-faces/settings/preferences_face.c \
|
||||
# New watch faces go above this line.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user