Cleanup build files
This commit is contained in:
parent
381bfd27a8
commit
c871806822
2
.vscode/c_cpp_properties.json
vendored
2
.vscode/c_cpp_properties.json
vendored
@ -23,7 +23,7 @@
|
||||
"${workspaceRoot}"
|
||||
],
|
||||
"limitSymbolsToIncludedHeaders": true,
|
||||
"databaseFilename": ""
|
||||
"databaseFilename": "${workspaceRoot}/build/current/compile_commands.json"
|
||||
},
|
||||
"macFrameworkPath": [
|
||||
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks"
|
||||
|
7
.vscode/settings.json
vendored
7
.vscode/settings.json
vendored
@ -6,7 +6,12 @@
|
||||
"initializer_list": "cpp",
|
||||
"utility": "cpp",
|
||||
"__config": "cpp",
|
||||
"__nullptr": "cpp"
|
||||
"__nullptr": "cpp",
|
||||
"__bit_reference": "cpp",
|
||||
"__string": "cpp",
|
||||
"algorithm": "cpp",
|
||||
"string": "cpp",
|
||||
"string_view": "cpp"
|
||||
},
|
||||
"editor.insertSpaces": false,
|
||||
"editor.tabSize": 3,
|
||||
|
@ -11,6 +11,17 @@ set(CMAKE_PREFIX_PATH ${NOSTALGIA_QT_PATH})
|
||||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules)
|
||||
include(address_sanitizer)
|
||||
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
add_definitions(
|
||||
-DDEBUG
|
||||
)
|
||||
else()
|
||||
add_definitions(
|
||||
-Werror
|
||||
-DNDEBUG
|
||||
)
|
||||
endif()
|
||||
|
||||
if(NOSTALGIA_BUILD_TYPE STREQUAL "GBA")
|
||||
include(GBA)
|
||||
add_definitions(
|
||||
@ -21,11 +32,9 @@ if(NOSTALGIA_BUILD_TYPE STREQUAL "GBA")
|
||||
-mthumb-interwork
|
||||
-mthumb
|
||||
)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
else()
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
endif()
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
|
||||
|
4
Makefile
4
Makefile
@ -2,12 +2,12 @@ OS=$(shell uname | tr [:upper:] [:lower:])
|
||||
HOST_ENV=${OS}-$(shell uname -m)
|
||||
DEVENV=devenv$(shell pwd | sed 's/\//-/g')
|
||||
DEVENV_IMAGE=nostalgia-devenv
|
||||
ifneq ($(shell which gmake),)
|
||||
ifneq ($(shell which gmake 2> /dev/null),)
|
||||
MAKE=gmake -s
|
||||
else
|
||||
MAKE=make -s
|
||||
endif
|
||||
ifneq ($(shell which docker),)
|
||||
ifneq ($(shell which docker 2> /dev/null),)
|
||||
ifeq ($(shell docker inspect --format="{{.State.Status}}" ${DEVENV} 2>&1),running)
|
||||
ENV_RUN=docker exec -i -t --user $(shell id -u ${USER}) ${DEVENV}
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user