project_files/hwc/CMakeLists.txt
changeset 11679 8f5db41471f4
parent 11661 7d483d400f8d
child 11681 8fca9fd31357
equal deleted inserted replaced
11678:b76b7372a2a6 11679:8f5db41471f4
    77 
    77 
    78 #wrap conversion for all source in this command
    78 #wrap conversion for all source in this command
    79 add_custom_target(engine_c DEPENDS ${engine_sources})
    79 add_custom_target(engine_c DEPENDS ${engine_sources})
    80 
    80 
    81 
    81 
       
    82 if(BUILD_ENGINE_JS)
       
    83     add_flag_append(CMAKE_C_FLAGS "-s ABORTING_MALLOC=0")
       
    84 endif()
       
    85 
    82 #compile the c files
    86 #compile the c files
    83 add_definitions(-DPAS2C)
    87 add_definitions(-DPAS2C)
    84 add_definitions(-Werror=incompatible-pointer-types)
    88 add_definitions(-Werror=incompatible-pointer-types)
    85 
    89 
    86 add_executable(hwengine WIN32 ${engine_sources})
    90 add_executable(hwengine WIN32 ${engine_sources})