batch file for symbolic links fixed
This commit is contained in:
parent
fcd15ddb34
commit
4330d2eac5
|
@ -1,6 +1,3 @@
|
||||||
del Afterburner.ino
|
|
||||||
del src
|
|
||||||
del data
|
|
||||||
mklink /H Afterburner.ino ..\..\src\AfterBurner\Afterburner.cpp
|
mklink /H Afterburner.ino ..\..\src\AfterBurner\Afterburner.cpp
|
||||||
mklink /J src ..\..\src\Afterburner\src
|
mklink /J src ..\..\src\Afterburner\src
|
||||||
mklink /J data ..\..\src\Afterburner\data
|
mklink /J data ..\..\src\Afterburner\data
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
|
|
||||||
EVERYTHING IN THIS FOLDER IS FAKE!
|
EVERYTHING IN THIS FOLDER IS FAKE!
|
||||||
|
|
||||||
It is highly likely when you pull from gitlab, the symbolic links will not be recreated correctly.
|
When you pull from gitlab, no symbolic links will be created.
|
||||||
|
|
||||||
To create a working Arduino build, please open a command prompt AS ADMINISTRATOR
|
Then execute MakeSymLinks_Windows.bat from Explorer.
|
||||||
|
|
||||||
Navigate to *this* directory,
|
The real root source exists as a .cpp file: repo\src\Afterburner\Afterburner.cpp
|
||||||
|
However Arduino insists upon .ino for their projects, and the file name also
|
||||||
Delete the data, src, and .ino files.
|
has to match the parent directory name.
|
||||||
|
|
||||||
Then execute MakeSymLinks_Windows.bat
|
|
||||||
|
|
||||||
They are symbolic links to the real locations in repo\src\Afterburner.
|
|
||||||
The directories must be soft links so thay can be added to git!
|
|
||||||
|
|
||||||
This is becasue Arduino insists upon .ino for their projects, and
|
|
||||||
that file has to match the directory name.
|
|
||||||
|
|
||||||
If .ino and .cpp live in same directory - double trouble at link time!
|
If .ino and .cpp live in same directory - double trouble at link time!
|
||||||
|
Works for PlatformIO, but not Arduino builds.
|
||||||
|
|
||||||
Ugggh.
|
Ugggh. I hate Arduino IDE (and it's build environment!)
|
||||||
|
|
||||||
|
Likewise:
|
||||||
|
src is linked to repo\src\Afterburner\src
|
||||||
|
data is linked to repo\src\Afterburner\data
|
Loading…
Reference in a new issue