equal
deleted
inserted
replaced
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}) |