update 'new watch face' script

This commit is contained in:
joeycastillo 2024-10-10 20:57:57 -04:00
parent e1b5395e10
commit 06aed9749f
4 changed files with 5 additions and 8 deletions

View File

@ -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_

View File

@ -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)

View File

@ -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.