batch file for symbolic links fixed

This commit is contained in:
Ray Jones 2019-07-02 21:31:40 +10:00
parent fcd15ddb34
commit 4330d2eac5
2 changed files with 11 additions and 17 deletions

View file

@ -1,6 +1,3 @@
del Afterburner.ino
del src
del data
mklink /H Afterburner.ino ..\..\src\AfterBurner\Afterburner.cpp
mklink /J src ..\..\src\Afterburner\src
mklink /J data ..\..\src\Afterburner\data

View file

@ -1,22 +1,19 @@
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,
Delete the data, src, and .ino files.
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.
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
has to match the parent directory name.
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