Skip to content

Commit

Permalink
Fix build on Windows
Browse files Browse the repository at this point in the history
Identified why the project was not building on Windows (reported bug
platformio/platformio-core#652 to the platformio team) and added a very
simple workaround.

Project now builds properly on Windows, in the command line and in Atom.
By default we will not upload.
  • Loading branch information
sarfata committed May 9, 2016
1 parent 47697d0 commit 23b2f77
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 21 deletions.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.pioenvs
.sconsign.dblite
tags
*.pyc
.clang_complete
.gcc-flags.json
23 changes: 5 additions & 18 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,45 +5,32 @@
# http://docs.platformio.org/en/latest/projectconf.html
#

# A sign `#` at the beginning of the line indicates a comment
# Comment lines are ignored.

# Simple and base environment
# [env:mybaseenv]
# platform = %INSTALLED_PLATFORM_NAME_HERE%
# framework =
# board =
#
# Automatic targets - enable auto-uploading
# targets = upload

[env:host]
platform = teensy
framework = arduino
board = teensy31
# Adafruit-NeoPixel, Encoder, ILI9341_t3, ILI9341_fonts
lib_install = 28, 129, 541
src_filter = +<host/*> +<host/tasks/>
src_filter = +<host/*> #workaround-platformio#652
# temporary kludge for board.h while it's migrating to KBox lib
src_build_flags = -Ilib/KBox/src/drivers
# uncomment to get seatalk support
#build_flags = -DSERIAL_9BIT_SUPPORT -DSEATALK
targets = upload
lib_ignore = ESPAsyncTCP

# This configuration builds a very simple firmware for the host that allows to upload
# a firmware to the ESP8266 module.
[env:program-esp]
src_build_flags = -Ilib/KBox/drivers/
platform = teensy
framework = arduino
board = teensy31
src_filter = +<program-esp/*>
targets = upload
# temporary kludge for board.h while it's migrating to KBox lib
src_build_flags = -Ilib/KBox/drivers/
src_filter = +<program-esp/*> #workaround-platformio#652
lib_ignore = ESPAsyncTCP

[env:esp]
src_filter = +<esp/*>
src_filter = +<esp/*> #workaround-platformio#652
platform = espressif
framework = arduino
#board = esp_wroom_02
Expand Down

0 comments on commit 23b2f77

Please sign in to comment.