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

Getting started with emscripten #129

Closed
ggcarlton opened this issue Mar 6, 2016 · 1 comment
Closed

Getting started with emscripten #129

ggcarlton opened this issue Mar 6, 2016 · 1 comment

Comments

@ggcarlton
Copy link

I'm starting to use GENie and I've got stuck on getting Emscripten working. I've got a simple project working for windows with the following genie.lua file:

solution "MyApplication"
   configurations { "Debug", "Release" }
   -- A project defines one build target
   project "MyApplication"
      kind "ConsoleApp"
      language "C++"
      files { "../source/**.h", "../source/**.cpp" }
      targetdir "bin/%{cfg.buildcfg}"
      configuration "Debug"
         defines { "DEBUG" }
         flags { "Symbols" }
      configuration "Release"
         defines { "NDEBUG" }
         flags { "Optimize" }  

As an aside I found it hard to find anything at all that would help getting started. The above file is from a google search that hit this page http://industriousone.com/sample-script, which is for premake not GENie, and also missing targetdir. But with that addition, great, we're up and running for Visual Studio at least.

Now, for Emscripten. I have Emscripten, MinGW, and vs-tool installed.

I can't find any docs, but there is the odd page with references to GENie, as in the following:
bkaradzic/bgfx#574

When I try that command line:
genie --gcc=asmjs gmake

I get the error "invalid option 'gcc'". Is that "gcc" some intrinsic part of GENie or is it something that the genie.lua file should interpret in order to set some stuff up manually? From the error I'm guessing its the latter, but some documentation would really help.

@bkaradzic
Copy link
Owner

That's currently not a part of GENie. Toolchain setup used by bgfx is here:
https://github.com/bkaradzic/bx/blob/master/scripts/toolchain.lua#L11

You can use toolchain.lua inside your project or you can just pick "asmjs" setup from there.

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