Bare minimum sdk files for c++ project

26 views
Skip to first unread message

ssg

unread,
Jul 25, 2020, 9:20:00 AM7/25/20
to emscripten-discuss
What are the bare minimum emscripten sdk files needed to build an emscripten c++ project? Reason? I'd like to keep the minimum version of the emscripten sdk needed to build my project along with my project source files on my own git repo so that I have control over which emscripten sdk version I am using to build my project and b) everything is contained in that one git repo without needing to download the sdk separately.

Shachar Langbeheim

unread,
Jul 25, 2020, 4:11:44 PM7/25/20
to emscripten-discuss
So why not just take emsdk as a submodule? That way you'll have control on when you upgrade the repo's version.

On Sat, 25 Jul 2020 at 16:20, ssg <shivdee...@gmail.com> wrote:
What are the bare minimum emscripten sdk files needed to build an emscripten c++ project? Reason? I'd like to keep the minimum version of the emscripten sdk needed to build my project along with my project source files on my own git repo so that I have control over which emscripten sdk version I am using to build my project and b) everything is contained in that one git repo without needing to download the sdk separately.

--
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 emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/bad65a1b-2349-454d-b053-0854ea4fce46o%40googlegroups.com.

ssg

unread,
Jul 25, 2020, 10:12:07 PM7/25/20
to emscripten-discuss
How do you mean submodule? I am a bit new at git. 

My thoughts were more along these lines: The entire emsdk is about 600+ MB. The emsdk/upstream/emscripten/system is about 25 MB. Thats the one containing the C++ includes and libs that I am using in my project, though I am not sure what the executable equivalents are for the virtual machine emscripten compiles to (again, am new to emscripten too). So the hope was if I could just pop in the system folder in my repo and some other files like em++ or emcc compiler, I could end up with a lean c++ sdk that would suffice for my project.


On Sunday, July 26, 2020 at 4:11:44 AM UTC+8, Shachar Langbeheim wrote:
So why not just take emsdk as a submodule? That way you'll have control on when you upgrade the repo's version.

On Sat, 25 Jul 2020 at 16:20, ssg <s...@gmail.com> wrote:
What are the bare minimum emscripten sdk files needed to build an emscripten c++ project? Reason? I'd like to keep the minimum version of the emscripten sdk needed to build my project along with my project source files on my own git repo so that I have control over which emscripten sdk version I am using to build my project and b) everything is contained in that one git repo without needing to download the sdk separately.

--
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 emscripten-discuss+unsub...@googlegroups.com.

Shachar Langbeheim

unread,
Jul 26, 2020, 3:53:26 AM7/26/20
to emscripten-discuss
https://git-scm.com/book/en/v2/Git-Tools-Submodules

but EMSDK takes on my computer ~600MB once you installed a version.

On Sun, 26 Jul 2020 at 05:12, ssg <shivdee...@gmail.com> wrote:
How do you mean submodule? I am a bit new at git. 

My thoughts were more along these lines: The entire emsdk is about 600+ MB. The emsdk/upstream/emscripten/system is about 25 MB. Thats the one containing the C++ includes and libs that I am using in my project, though I am not sure what the executable equivalents are for the virtual machine emscripten compiles to (again, am new to emscripten too). So the hope was if I could just pop in the system folder in my repo and some other files like em++ or emcc compiler, I could end up with a lean c++ sdk that would suffice for my project.

On Sunday, July 26, 2020 at 4:11:44 AM UTC+8, Shachar Langbeheim wrote:
So why not just take emsdk as a submodule? That way you'll have control on when you upgrade the repo's version.

On Sat, 25 Jul 2020 at 16:20, ssg <s...@gmail.com> wrote:
What are the bare minimum emscripten sdk files needed to build an emscripten c++ project? Reason? I'd like to keep the minimum version of the emscripten sdk needed to build my project along with my project source files on my own git repo so that I have control over which emscripten sdk version I am using to build my project and b) everything is contained in that one git repo without needing to download the sdk separately.

--
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 emscripten-disc...@googlegroups.com.

--
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 emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/38e4106b-a4df-455e-8796-03a67cce479fo%40googlegroups.com.

Sam Clegg

unread,
Jul 26, 2020, 12:58:09 PM7/26/20
to emscripte...@googlegroups.com
On Sat, Jul 25, 2020 at 6:20 AM ssg <shivdee...@gmail.com> wrote:
What are the bare minimum emscripten sdk files needed to build an emscripten c++ project? Reason? I'd like to keep the minimum version of the emscripten sdk needed to build my project along with my project source files on my own git repo so that I have control over which emscripten sdk version I am using to build my project and b) everything is contained in that one git repo without needing to download the sdk separately.


Sadly, there is no practical way to do what you are asking today.  Emscripten depends on llvm and binaryen which are both quite large.  Checking all that into git is possible but not very practical.

There are efforts to make an npm module out of emsdk but they are also currently stalled to its sheer size.

Your choices today are either to use emsdk, or some other packaged version of emscripten such as homebrew.  There is also a docker image which is quite easy to use: https://github.com/emscripten-core/emsdk/tree/master/docker

cheers,
sam
Reply all
Reply to author
Forward
0 new messages