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

Web project #19

Merged
merged 4 commits into from
Jun 13, 2022
Merged

Web project #19

merged 4 commits into from
Jun 13, 2022

Conversation

brenocq
Copy link
Owner

@brenocq brenocq commented Jun 13, 2022

Now it is possible to run projects with the web build!

To do that it was necessary to compile atta linked statically to the project. Also, the project .atta file and resources/ folder are copied to the web build. When find_package(atta) is called by the project, the current atta build is used instead of the installed one. It is not possible to install atta to the machine when it is built statically linked to a project or when building the web build.

Example compiling and running dynamic project:

cd atta/build
cmake ..
make -j
bin/atta <path to .atta>

Example compiling and running static project:

cd atta/build
cmake -DATTA_STATIC_PROJECT_FILE=<path to .atta> ..
make -j
bin/atta

Example compiling and running web project:

cd atta/build
emcmake cmake -DATTA_STATIC_PROJECT_FILE=<path to .atta> ..
make -j
emrun bin/atta.html

Yes, that easy!

Next step will be integrate this new feature with https://atta.brenocq.com/build to execute published projects.
For implementation details check issue #17.

@brenocq brenocq added this to the 0.0.4.0 - Project milestone Jun 13, 2022
@brenocq brenocq linked an issue Jun 13, 2022 that may be closed by this pull request
4 tasks
@brenocq brenocq added type:feat script Script Module labels Jun 13, 2022
@brenocq brenocq merged commit e0c094d into master Jun 13, 2022
@brenocq brenocq deleted the web-project branch June 13, 2022 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
script Script Module
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Web project
1 participant