More tweaks to library gen
This commit is contained in:
@@ -95,8 +95,8 @@ def root_cmakelists(path: Path):
|
|||||||
# Define custom libraries
|
# Define custom libraries
|
||||||
lines.append("add_library(%s STATIC)"%(CMAKE_TARGET))
|
lines.append("add_library(%s STATIC)"%(CMAKE_TARGET))
|
||||||
lines.append("target_compile_definitions(%s PRIVATE ${COMPILER_DEFINES})"%(CMAKE_TARGET))
|
lines.append("target_compile_definitions(%s PRIVATE ${COMPILER_DEFINES})"%(CMAKE_TARGET))
|
||||||
lines.append("target_compile_options(${EXECUTABLE} PRIVATE \"-Os -ffunction-sections -fdata-sections -g -lto\")")
|
lines.append("target_compile_options(${EXECUTABLE} PRIVATE -Os -ffunction-sections -fdata-sections -g -lto)")
|
||||||
lines.append("target_link_options(${EXECUTABLE} PRIVATE \"-T ${LINKER_SCRIPT} --specs=nano.specs -Wl,--gc-sections\")")
|
lines.append("target_link_options(${EXECUTABLE} PRIVATE -T ${LINKER_SCRIPT} --specs=nano.specs -Wl,--gc-sections)")
|
||||||
|
|
||||||
# Read previously generated contents
|
# Read previously generated contents
|
||||||
with open(lists_path, "r") as _if:
|
with open(lists_path, "r") as _if:
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "mx_convert"
|
name = "mx_convert"
|
||||||
version = "0.2.2"
|
version = "0.2.3"
|
||||||
description = "A Cube MX projct conversion helper"
|
description = "A Cube MX projct conversion helper"
|
||||||
authors = [{ name = "Didas72" }]
|
authors = [{ name = "Didas72" }]
|
||||||
dependencies = []
|
dependencies = []
|
||||||
|
|||||||
Reference in New Issue
Block a user