2019-01-24 19:54:16 +00:00
|
|
|
cmake_minimum_required(VERSION 2.8.12)
|
|
|
|
|
2019-02-01 22:24:09 +00:00
|
|
|
execute_process(COMMAND
|
|
|
|
emcc --bind
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/libmad.bc
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/decoder.cpp
|
|
|
|
-o ${CMAKE_CURRENT_BINARY_DIR}/wrapper.js
|
|
|
|
-s FILESYSTEM=0
|
|
|
|
-s ENVIRONMENT=web
|
|
|
|
-O3
|
|
|
|
--llvm-lto 1
|
|
|
|
)
|