mirror of
https://github.com/esphome/esphome.git
synced 2025-03-01 08:18:16 +00:00
Move buildgen to after .cpp gen so that source files exist in build tree
This commit is contained in:
parent
f7b72968ac
commit
48ba6f9f39
@ -225,12 +225,12 @@ def generate_cpp_contents(config):
|
|||||||
|
|
||||||
|
|
||||||
def write_cpp_file():
|
def write_cpp_file():
|
||||||
|
code_s = indent(CORE.cpp_main_section)
|
||||||
|
writer.write_cpp(code_s)
|
||||||
|
|
||||||
from esphome.build_gen import platformio
|
from esphome.build_gen import platformio
|
||||||
|
|
||||||
platformio.write_project()
|
platformio.write_project()
|
||||||
|
|
||||||
code_s = indent(CORE.cpp_main_section)
|
|
||||||
writer.write_cpp(code_s)
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user