{ 'variables': { 'module_test_dependencies%': '', 'module_test_sources%': '', 'module_test_include_dirs%': '', 'module_test_defines%': '', }, 'targets': [ { 'target_name': 'test-<(module_name)', 'conditions': [ [ 'OS == "ios"', { # We can't compile to an executable, but we can at least compile. 'type': 'static_library', }, { 'type': 'executable', } ], ], 'dependencies': [ '../libcpptest/libcpptest.gyp:libcpptest', '<@(module_test_dependencies)', ], 'sources': [ '<@(module_test_sources)', ], 'include_dirs': [ '<@(module_test_include_dirs)', ], 'defines': [ '<@(module_test_defines)', ], 'msvs_settings': { 'VCLinkerTool': { 'SubSystem': '1', # /SUBSYSTEM:CONSOLE }, }, }, { 'target_name': 'run-test-<(module_name)', 'type': 'none', 'variables': { 'javascriptify': '', 'test_suffix': '', 'exec_wrapper': '', }, 'dependencies': [ 'test-<(module_name)<(javascriptify)', ], 'conditions': [ [ 'OS == "emscripten"', { 'variables': { 'javascriptify': '-javascriptify', 'test_suffix': '.js', 'exec_wrapper': '