# BMC Config File Mod

# thanks to manicksan for pointing out the boards.local.txt method
# https://forum.pjrc.com/threads/64509-Adding-an-optional-global-config-h-file-per-sketch
# copy this file and paste in the same location as the boards.txt file.

# To locate boards.txt

# On mac, open your Applications folder, right click on Arduino or Teensyduino (which ever you are using)
# then select "Show Package Contents" and navigate to "Contents/Java/hardware/teensy/avr/"

# On Windows: go to "Program Files (x86)/Arduino/hardware/teensy/avr/"
# After doing this you can restart Teensyduino and you will then see the "Require BMC Config" option under tools

# ----- BMC Config File -----
menu.bmcsketchconfig=Require BMC Config
teensyMM.menu.bmcsketchconfig.no=No
teensyMM.menu.bmcsketchconfig.yes=Yes
teensyMM.menu.bmcsketchconfig.yes.build.flags.cpp=-std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -include "{build.source.path}/config.h"
teensy41.menu.bmcsketchconfig.no=No
teensy41.menu.bmcsketchconfig.yes=Yes
teensy41.menu.bmcsketchconfig.yes.build.flags.cpp=-std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -include "{build.source.path}/config.h"
teensy40.menu.bmcsketchconfig.no=No
teensy40.menu.bmcsketchconfig.yes=Yes
teensy40.menu.bmcsketchconfig.yes.build.flags.cpp=-std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -include "{build.source.path}/config.h"
teensy36.menu.bmcsketchconfig.no=No
teensy36.menu.bmcsketchconfig.yes=Yes
teensy36.menu.bmcsketchconfig.yes.build.flags.cpp=-fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -include "{build.source.path}/config.h"
teensy35.menu.bmcsketchconfig.no=No
teensy35.menu.bmcsketchconfig.yes=Yes
teensy35.menu.bmcsketchconfig.yes.build.flags.cpp=-fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -include "{build.source.path}/config.h"
teensy31.menu.bmcsketchconfig.no=No
teensy31.menu.bmcsketchconfig.yes=Yes
teensy31.menu.bmcsketchconfig.yes.build.flags.cpp=-fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -include "{build.source.path}/config.h"
# ----- BMC Config File -----
