Sorry, if my original post was clear. I don't want to change the name of
the .data file.
If I build to a relative path it includes the name of the path in the
dependency name in the Javascript file.
Module['addRunDependency']('*datafile_../MyFolder/myfile.data*');
However if I build to the same path it will look like this in source.
Module['addRunDependency']('*datafile_myfile.data*');
I don't want the build path from my computer included in the Javascript
file.
On Friday, April 25, 2014 1:49:34 AM UTC-5, jj wrote:
>
> 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] <javascript:>>:
>
>> 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] <javascript:>.
>> 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.