Skip to content

Generated files are not portable across different computers #61

@widget-

Description

@widget-

I would like to create a project, and I would like others to be able to use the makefile, etc., as-is but I also want to maintain Visual Teensy support so that the makefiles can be generated.

Currently, it makes some parts of the code like this:

# makefile
# [...]
MCU              := imxrt1062

LIBS_SHARED_BASE := C:\Users\Widget\Documents\Arduino\libraries # absolute path to my home directory
LIBS_SHARED      := 
# [...]
// tasks.json
{
  "tasks": [
    {
      "label": "Build",
      "group": {
        "kind": "build",
        "isDefault": true
      },
      "command": "C:/Users/Widget/bin/Visual Teensy/make.exe", // absolute path to where Visual Teensy is installed
      "args": [
        "all",
        "-j",
        "-Otarget"
      ]
    },
// [...]

I think most of the Arduino/Teensyduino files have a "standard" installation that would always put them in the same place on everyone's Windows installs at least.

On Windows, you can use ${UserProfile} in makefiles to get the equivalent of C:\Users\Widget, from which you can get the regular Arduino library path.

tasks.json makes references to files that aren't guaranteed to exist on other peoples' computers. Telling people to use their own make.exes might be fine, if it supports searching the path. Otherwise, the binaries provided by Visual Teensy could be bundled into the project, but I could see people not wanting to bundle random third-party binaries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions