Renamed project's "libs" directory to "lib"

This commit is contained in:
Ivan Kravets
2014-06-14 22:12:32 +03:00
parent 04b3ee99e0
commit 47c47168e8
3 changed files with 12 additions and 8 deletions

View File

@ -35,9 +35,9 @@ instruments.
**Platformio** is well suited for **embedded development**. It can: **Platformio** is well suited for **embedded development**. It can:
* Automatic dependency analysis * Automatically analyse dependency
* Reliable detection of build changes * Reliably detect of build changes
* Compile framework or library sources to static libraries * Build framework or library source code to static library
* Build *ELF* (executable and linkable firmware) * Build *ELF* (executable and linkable firmware)
* Convert *ELF* to *HEX* or *BIN* file * Convert *ELF* to *HEX* or *BIN* file
* Extract *EEPROM* data * Extract *EEPROM* data
@ -287,14 +287,14 @@ Initialize new platformio based project.
# Example # Example
$ platformio init $ platformio init
Project successfully initialized. Project successfully initialized.
Please put your source code to `src` directory, external libraries to `libs` Please put your source code to `src` directory, external libraries to `lib`
and setup environments in `platformio.ini` file. and setup environments in `platformio.ini` file.
Then process project with `platformio run` command. Then process project with `platformio run` command.
After this command ``platformio`` will create: After this command ``platformio`` will create:
* ``.pioenvs`` - a temporary working directory. * ``.pioenvs`` - a temporary working directory.
* ``libs`` - a directory for project specific libraries. Platformio will * ``lib`` - a directory for project specific libraries. Platformio will
compile their to static libraries and link to executable file compile their to static libraries and link to executable file
* ``src`` - a source directory. Put code here. * ``src`` - a source directory. Put code here.
* ``platformio.ini`` - a configuration file for project * ``platformio.ini`` - a configuration file for project

View File

@ -41,7 +41,11 @@ DefaultEnvironment(
PLATFORMFW_DIR=join("$PLATFORM_DIR", "frameworks", "$FRAMEWORK"), PLATFORMFW_DIR=join("$PLATFORM_DIR", "frameworks", "$FRAMEWORK"),
PLATFORMTOOLS_DIR=join("$PLATFORM_DIR", "tools"), PLATFORMTOOLS_DIR=join("$PLATFORM_DIR", "tools"),
BUILD_DIR=join("$PROJECT_DIR", ".pioenvs", "$PIOENV") BUILD_DIR=join("$PROJECT_DIR", ".pioenvs", "$PIOENV"),
LIBSOURCE_DIRS=[
join("$PROJECT_DIR", "lib"),
join("$PLATFORMFW_DIR", "libraries"),
]
) )
env = DefaultEnvironment() env = DefaultEnvironment()

View File

@ -16,7 +16,7 @@ def cli():
if isfile("platformio.ini") and isdir("src"): if isfile("platformio.ini") and isdir("src"):
raise ProjectInitialized() raise ProjectInitialized()
for d in (".pioenvs", "libs", "src"): for d in (".pioenvs", "lib", "src"):
if not isdir(d): if not isdir(d):
makedirs(d) makedirs(d)
if not isfile("platformio.ini"): if not isfile("platformio.ini"):
@ -24,7 +24,7 @@ def cli():
"platformio.ini") "platformio.ini")
secho("Project successfully initialized.\n" secho("Project successfully initialized.\n"
"Please put your source code to `src` directory, " "Please put your source code to `src` directory, "
"external libraries to `libs` and " "external libraries to `lib` and "
"setup environments in `platformio.ini` file.\n" "setup environments in `platformio.ini` file.\n"
"Then process project with `platformio run` command.", "Then process project with `platformio run` command.",
fg="green") fg="green")