I am not sure if we currently have anything for the .data file generation,
but for --preload-file you can use e.g.

--preload-file ../path/to/file.txt@/
--preload-file ../path/to/file.txt@/dstpath/
--preload-file ../path/to/file.txt@/dstpath/filename.txt

the first one will create a file /file.txt in th VFS, the second will
create a /dstpath/file.txt, and the third one will place the file in
/dstpath/filename.txt. Does that allow you to shuffle the commandline to a
form that avoid the issue?


2014-04-25 0:48 GMT+03:00 <[email protected]>:

> When I build my file to a relative path that path name gets inserted into
> the dependency name of the data file.  Is there a compile flag to change
> the dependency name?
>
> emcc -O2 myfile.bc -o *../MyFolder/myfile.js* --preload-file
> MyDataFile.txt
>
> Module['addRunDependency']('*datafile_../MyFolder/myfile.data*');
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to