From eb48791678675c5d9757b90a7d37fa5ffe387e17 Mon Sep 17 00:00:00 2001 From: Rodrigo Delduca <46259+skhaz@users.noreply.github.com> Date: Wed, 22 Nov 2023 07:50:29 -0300 Subject: [PATCH] Work in progress --- CMakeLists.txt | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6847b86..1f10b0d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,16 +2,6 @@ cmake_minimum_required(VERSION 3.20) project(carimbo) -function(embed target file destination) - get_filename_component(absolute_file ${file} ABSOLUTE) - get_target_property(${target}_LINK_FLAGS ${target} LINK_FLAGS) - if(NOT ${target}_LINK_FLAGS) - set(${target}_LINK_FLAGS ) - endif() - set_target_properties(${target} PROPERTIES LINK_FLAGS "${${target}_LINK_FLAGS} --embed-file ${absolute_file}@${destination}") - # set_target_properties(${target} PROPERTIES LINK_FLAGS "${${target}_LINK_FLAGS} --preload-file ${absolute_file}@${destination}") -endfunction() - set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) @@ -46,11 +36,10 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Emscripten") target_link_libraries(${PROJECT_NAME} "-s NO_DISABLE_EXCEPTION_CATCHING") target_link_libraries(${PROJECT_NAME} "-s ALLOW_MEMORY_GROWTH=1") - target_link_libraries(${PROJECT_NAME} "-s FORCE_FILESYSTEM=1") + # target_link_libraries(${PROJECT_NAME} "-s FORCE_FILESYSTEM=1") target_link_libraries(${PROJECT_NAME} "-s INITIAL_MEMORY=134217728") target_link_libraries(${PROJECT_NAME} "-s EXPORTED_RUNTIME_METHODS=['callMain']") - # embed(${PROJECT_NAME} "${CMAKE_BINARY_DIR}/bundle.zip" "/bundle.zip") target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Werror -pedantic -Os) elseif(CMAKE_BUILD_TYPE MATCHES "Debug") if (MSVC)