From e532acd82d65128d1dd037c0c805536f25372696 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sat, 4 Aug 2018 19:12:23 +0200 Subject: [PATCH] Improved build scripts --- asm/CMakeLists.txt | 2 ++ asm/make_opus.sh | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/asm/CMakeLists.txt b/asm/CMakeLists.txt index 4c93ed2a..a094529b 100644 --- a/asm/CMakeLists.txt +++ b/asm/CMakeLists.txt @@ -1,5 +1,7 @@ +cmake_minimum_required(VERSION 3.9) project(TeaWeb-Native) +set (CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_FLAGS_DEBUG "") #Override some config values from the parent project set(CMAKE_CXX_COMPILER "emcc") set(CMAKE_C_COMPILER "emcc") diff --git a/asm/make_opus.sh b/asm/make_opus.sh index 98543428..8be8b0ce 100755 --- a/asm/make_opus.sh +++ b/asm/make_opus.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash + +if ! [ -d generated ]; then + mkdir generated +fi OPUS_FN="'_free','_malloc','_opus_strerror','_opus_get_version_string','_opus_encoder_get_size','_opus_encoder_init','_opus_encode','_opus_encode_float','_opus_encoder_ctl','_opus_decoder_get_size','_opus_decoder_init','_opus_decode','_opus_decode_float','_opus_decoder_ctl','_opus_packet_get_nb_samples'" cd libraries/opus/