Add some premade launch configs, and fix google test

pull/4/head
Tyler Wilding 2020-08-29 00:01:55 -04:00
parent 324d2121b1
commit d38ec3f44c
6 changed files with 68 additions and 17 deletions

5
.editorconfig Normal file
View File

@ -0,0 +1,5 @@
# Rules in this file were initially inferred by Visual Studio IntelliCode from the C:\Users\xtvas\Repositories\jak-project codebase based on best match to current usage at 2020-08-28
# You can modify the rules from these initially generated values to suit your own policies
# You can learn more about editorconfig here: https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference
[*.cs]

3
.gitignore vendored
View File

@ -1,5 +1,4 @@
# for clion
cmake-build-debug/*
.idea/*
build/*
/.vs
build/*

3
.vs/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*
!.gitignore
!launch.vs.json

34
.vs/launch.vs.json Normal file
View File

@ -0,0 +1,34 @@
{
// https://docs.microsoft.com/en-us/cpp/build/launch-vs-schema-reference-cpp?view=vs-2019
"version": "0.2.1",
"defaults": {},
"configurations": [
{
"type": "default",
"project": "CMakeLists.txt",
"projectTarget": "goalc-test.exe (bin\\goalc-test.exe)",
"name": "Run Tests - Summary",
"args": [
"--gtest_brief=1"
]
},
{
"type": "default",
"project": "CMakeLists.txt",
"projectTarget": "gk.exe (bin\\gk.exe)",
"name": "Run Game"
},
{
"type": "default",
"project": "CMakeLists.txt",
"projectTarget": "goalc.exe (bin\\goalc.exe)",
"name": "Build Compiler"
},
{
"type": "default",
"project": "CMakeLists.txt",
"projectTarget": "decompiler.exe (bin\\decompiler.exe)",
"name": "Build Decompiler"
}
]
}

View File

@ -1,16 +1,22 @@
{
// See https://go.microsoft.com/fwlink/?linkid=834763 for more information about this file.
"configurations": [
{
"name": "x64-Debug",
"generator": "Ninja",
"configurationType": "Debug",
"inheritEnvironments": [ "msvc_x64_x64" ],
"buildRoot": "${projectDir}\\out\\build\\${name}",
"installRoot": "${projectDir}\\out\\install\\${name}",
"cmakeCommandArgs": "",
"buildCommandArgs": "",
"ctestCommandArgs": ""
}
]
"configurations": [
{
"name": "x64-Debug",
"generator": "Ninja",
"configurationType": "Debug",
"inheritEnvironments": [ "msvc_x64_x64" ],
"buildRoot": "${projectDir}\\out\\build\\${name}",
"installRoot": "${projectDir}\\out\\install\\${name}",
"cmakeCommandArgs": "",
"buildCommandArgs": "",
"ctestCommandArgs": "",
"variables": [
{
"name": "INSTALL_GTEST",
"value": "True",
"type": "BOOL"
}
]
}
]
}

View File

@ -1,3 +1,5 @@
enable_testing()
add_executable(goalc-test
test_main.cpp
test_test.cpp
@ -9,10 +11,12 @@ add_executable(goalc-test
all_jak1_symbols.cpp
test_type_system.cpp)
IF (WIN32)
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
# TODO - implement windows listener
message("Windows Listener Not Implemented!")
target_link_libraries(goalc-test goos util runtime emitter type_system gtest)
target_link_libraries(goalc-test mman goos util runtime emitter type_system gtest)
ELSE()
target_link_libraries(goalc-test goos util listener runtime emitter type_system gtest)
ENDIF()