build cplay_ble example with cplay bluefruit only

This commit is contained in:
hathach committed 2019-12-25 13:52:56 +07:00
1 parent 29ffb38c0b
commit 94b9a37d76
4 files changed
+6 -2

No files matched your search

+5 -1
View File
@@ -67,7 +67,11 @@ def build_examples(variant):
for sketch in glob.iglob('libraries/**/*.ino', recursive=True):
start_time = time.monotonic()
if os.path.exists(os.path.dirname(sketch) + '/.skip') or os.path.exists(os.path.dirname(sketch) + '/.skip.' + variant):
# skip if example contains: ".skip" or ".skip.variant"
# however ".build.variant" file can overwrite ".skip", used to build a specific variant only
sketchdir = os.path.dirname(sketch)
if ( (os.path.exists(sketchdir + '/.skip') or os.path.exists(sketchdir + '/.skip.' + variant)) and
not os.path.exists(sketchdir + '/.build.' + variant)):
success = "skipped"
else:
# TODO - preferably, would have STDERR show up in **both** STDOUT and STDERR.