Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tasks.json vlink includes multiple file syntax #299

Closed
howprice opened this issue Feb 11, 2024 · 2 comments
Closed

tasks.json vlink includes multiple file syntax #299

howprice opened this issue Feb 11, 2024 · 2 comments

Comments

@howprice
Copy link

Hi. Sorry for asking here, but I can't figure this out. How do you list multiple source files for vlink (and vasm implicitly I hope) in tasks.json?

I'd like to assemble a few files and link together. I'm sure this has been done many times but my search skills are letting me down. Here's what I want to do; I've highlighted the line that I need help with:

{
	"version": "2.0.0",
	"tasks": [
		{
			"label": "Build demo executable",
			"type": "amigaassembly",
			"vasm": {
				"enabled": true,
				"command": "${workspaceFolder}/tools/vasmm68k_mot",
				"args": [
					"-m68000",
					"-ignore-mult-inc",
					"-Fhunk",
					"-linedebug",
					"-no-opt",
					"-nowarn=2069",
					"-wfail",
					"-DDEBUG"
				]
			},
			"vlink": {
				"enabled": true,
				"command": "${config:amiga-assembly.binDir}/vlink",
				"includes": "src/demo.asm;src/clear.asm;src/line.asm",   <---  HOW TO SPECIFY MULTIPLE FILES HERE?
				"excludes": "",
				"exefilename": "../uae/HardDrives/HardDrive/demo",
				"entrypoint": "src/demo.asm",
				"args": [
					"-bamigahunk",
					"-Bstatic",
				]
			},
			"problemMatcher": [],
			"group": {
				"kind": "build",
				"isDefault": true
			},
			"presentation": {
				"echo": true,
				"reveal": "always",
				"focus": false,
				"panel": "shared",
				"showReuseMessage": false,
				"clear": true
			}
		},

The includes param seeems to take a single string, so I can't use an array. I've tried separating filenames with spaces, commas and semicolons.

Thanks for any help with this.

@howprice howprice changed the title tasks.json vlink includes syntax tasks.json vlink includes multiple file syntax Feb 11, 2024
@Real-MJoe
Copy link

Try this one :
grafik

@howprice
Copy link
Author

Thanks very much, that seems to be working as expected.

Would be great to add this to the Wiki build page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants