mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-08-08 22:34:59 -06:00
More folders only compiled when their feature is Enabled (#18780)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
parent
0bc8d315d8
commit
e02817b077
4 changed files with 50 additions and 25 deletions
|
@ -24,7 +24,7 @@
|
|||
/**
|
||||
* The purpose of this file is just include Marlin Configuration files,
|
||||
* to discover which FEATURES are enabled, without any HAL include.
|
||||
* Used by common-features-dependencies.py
|
||||
* Used by common-dependencies.py
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# common-features-dependencies.py
|
||||
# common-dependencies.py
|
||||
# Convenience script to check dependencies and add libs and sources for Marlin Enabled Features
|
||||
#
|
||||
import subprocess
|
||||
|
@ -190,7 +190,7 @@ def load_marlin_features():
|
|||
else:
|
||||
cmd += ['-D' + s]
|
||||
|
||||
cmd += ['-w -dM -E -x c++ buildroot/share/PlatformIO/scripts/common-features-dependencies.h']
|
||||
cmd += ['-w -dM -E -x c++ buildroot/share/PlatformIO/scripts/common-dependencies.h']
|
||||
cmd = ' '.join(cmd)
|
||||
print(cmd)
|
||||
define_list = subprocess.check_output(cmd, shell=True).splitlines()
|
Loading…
Add table
Add a link
Reference in a new issue