-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from Tolc-Software/release
Release
- Loading branch information
Showing
45 changed files
with
1,310 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
include_guard() | ||
|
||
function(get_emscripten) | ||
# Define the supported set of keywords | ||
set(prefix ARG) | ||
set(noValues) | ||
set(singleValues VERSION) | ||
set(multiValues) | ||
# Process the arguments passed in can be used e.g. via ARG_NAME | ||
cmake_parse_arguments(${prefix} "${noValues}" "${singleValues}" | ||
"${multiValues}" ${ARGN}) | ||
|
||
if(NOT ARG_VERSION) | ||
message( | ||
FATAL_ERROR "Must provide a version. e.g. getEmscripten(VERSION 3.1.3)") | ||
endif() | ||
|
||
# Download the SDK | ||
set(emsdk_version ${ARG_VERSION}) | ||
include(FetchContent) | ||
FetchContent_Declare( | ||
emsdk_entry | ||
URL https://github.com/emscripten-core/emsdk/archive/refs/tags/${emsdk_version}.tar.gz | ||
) | ||
|
||
FetchContent_GetProperties(emsdk_entry) | ||
if(NOT emscripten_entry_POPULATED) | ||
FetchContent_Populate(emsdk_entry) | ||
endif() | ||
|
||
set(sdkCommand ./emsdk) | ||
if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL Windows) | ||
set(sdkCommand emsdk.bat) | ||
endif() | ||
|
||
# Installs the Emscripten compiler | ||
execute_process(COMMAND ${sdkCommand} install ${emsdk_version} | ||
WORKING_DIRECTORY ${emsdk_entry_SOURCE_DIR}) | ||
|
||
# Writes the .emscripten file | ||
execute_process(COMMAND ${sdkCommand} activate ${emsdk_version} | ||
WORKING_DIRECTORY ${emsdk_entry_SOURCE_DIR}) | ||
|
||
# Export the variables | ||
set(emsdk_SOURCE_DIR | ||
${emsdk_entry_SOURCE_DIR} | ||
PARENT_SCOPE) | ||
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
# News # | ||
|
||
## Features ## | ||
|
||
* Now supports generating bindings to WebAssembly via [`frontend.wasm`](https://github.com/Tolc-Software/frontend.wasm) | ||
* Checkout the [documentation](https://docs.tolc.io) for more info. | ||
|
||
|
||
## Breaking ## | ||
|
||
* Renamed `CMake` function `tolc_create_translation` to `tolc_create_bindings`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.