Skip to content

Commit 94b9a37

Browse files
committed
build cplay_ble example with cplay bluefruit only
1 parent 29ffb38 commit 94b9a37

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

libraries/Bluefruit52Lib/examples/Peripheral/cplay_ble/.build.cplaynrf52840

Whitespace-only changes.

libraries/Bluefruit52Lib/examples/Peripheral/cplay_ble/.skip

Whitespace-only changes.

libraries/Bluefruit52Lib/examples/Peripheral/cplay_ble/cplay_ble.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
All text above, and the splash screen below must be included in
1212
any redistribution
1313
*********************************************************************/
14-
#include <Adafruit_CircuitPlayground.h>
1514
#include <Adafruit_LittleFS.h>
1615
#include <InternalFileSystem.h>
1716
#include <bluefruit.h>
1817
#include <BLEAdafruitService.h>
18+
#include <Adafruit_CircuitPlayground.h>
1919

2020
// BLE Service
2121
BLEDfu bledfu; // OTA DFU service

tools/build_all.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@ def build_examples(variant):
6767
for sketch in glob.iglob('libraries/**/*.ino', recursive=True):
6868
start_time = time.monotonic()
6969

70-
if os.path.exists(os.path.dirname(sketch) + '/.skip') or os.path.exists(os.path.dirname(sketch) + '/.skip.' + variant):
70+
# skip if example contains: ".skip" or ".skip.variant"
71+
# however ".build.variant" file can overwrite ".skip", used to build a specific variant only
72+
sketchdir = os.path.dirname(sketch)
73+
if ( (os.path.exists(sketchdir + '/.skip') or os.path.exists(sketchdir + '/.skip.' + variant)) and
74+
not os.path.exists(sketchdir + '/.build.' + variant)):
7175
success = "skipped"
7276
else:
7377
# TODO - preferably, would have STDERR show up in **both** STDOUT and STDERR.

0 commit comments

Comments
 (0)