Skip to content

Reorganize build dependencies and improve encapsulation#8

Merged
bghgary merged 3 commits into
BabylonJS:masterfrom
syntheticmagus:refactor-build
Jun 21, 2019
Merged

Reorganize build dependencies and improve encapsulation#8
bghgary merged 3 commits into
BabylonJS:masterfrom
syntheticmagus:refactor-build

Conversation

@bghgary
Copy link
Copy Markdown
Contributor

@bghgary bghgary commented Jun 20, 2019

  • N-API is now in its own folder with a babylon::Env class that replaces ScriptHost
  • N-API now brings in V8 or Chakra depending on the build option
  • Build fixes (e.g. scripts now show up in the VS solution and update correctly when modified)
  • A bunch of files moved around.

@bghgary bghgary requested a review from syntheticmagus June 20, 2019 01:09
Comment thread Library/Source/Runtime.cpp Outdated
Runtime::Runtime(std::unique_ptr<RuntimeImpl> impl)
: m_impl{ std::move(impl) }
{}
: m_impl(std::move(impl))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I think we use the initializer list syntax instead of the parentheses syntax in most places. Is this one different intentionally?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, probably accidentally changed it when i moved things around a few times.

m_cancelSource.cancel();
m_thread.join();

m_dispatcher.clear(); // TODO: fix arcana instead of doing this
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we remember what happens if we don't do this? If so, should we open an issue on Arcana.cpp?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't remember exactly, but I think it should be obvious if we remove the line. Definitely file an issue, arguably in both repos.

@bghgary bghgary merged commit c384189 into BabylonJS:master Jun 21, 2019
@bghgary bghgary deleted the refactor-build branch June 21, 2019 16:48
@CedricGuillemet CedricGuillemet mentioned this pull request Oct 22, 2020
CedricGuillemet added a commit that referenced this pull request Jun 16, 2021
* GitHub action (#6)

* nightly github action

* syntax error

* more

* msbuild

* wget babylon.max.js

* command line script (#7)

* curl ?

* path of exe

* exe name ?

* test with failing validation

* working dir

* 2nd try

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Canvas polyfill PoC

* Fix build with 3rd party sources

* canvas font infos

* init canvas all platforms

* better with includes

* android cmake update

* flipY

* misc

* more canvas functions and nanovg

* build uwp

* bezier curve

* split canvas with context and text measurements

* better handling of render targets

* remove event document

* small fixes for VT

* web colors

* fix color parsing

* commit canvass resources

* graphics callback

* tests

* changed button orientation for testing

* copy texture defined in experience.js instead of babylon.max.js

* removed empty line

* copy texture is back

* arcana

* ios cmake revision

* glslang revision

* pragma disable pedantic gcc

* fixed copy texture

* update canvas class name & creation

* xr version

* heavily WIP

* still WIP and debug

* it builds

* WIP

* it builds !

* rollback asio submodule version

* text rendering is back

* unused parameter

* updating .js with latest abstraction changes

* scripts update

* gcc fixes

* missing include

* some initial function definitions (#8)

* glslang subrepo version

* bgfx subrepo version

* CMake cleaning

* fix conflict

* moved test script from experience.js to its own

* empty line readme

* build option is for clang and not gcc

* clean sources

* feedback addressed + NPM packages update

* empty line

* nit

* PR feedback

Co-authored-by: Cedric Guillemet <ceguille@microsoft.com>
Co-authored-by: C. M. Barth <c.m.barth@outlook.com>
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

Successfully merging this pull request may close these issues.

2 participants