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}"
|
"${workspaceRoot}"
|
||||||
],
|
],
|
||||||
"limitSymbolsToIncludedHeaders": true,
|
"limitSymbolsToIncludedHeaders": true,
|
||||||
"databaseFilename": ""
|
"databaseFilename": "${workspaceRoot}/build/current/compile_commands.json"
|
||||||
},
|
},
|
||||||
"macFrameworkPath": [
|
"macFrameworkPath": [
|
||||||
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks"
|
"/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",
|
"initializer_list": "cpp",
|
||||||
"utility": "cpp",
|
"utility": "cpp",
|
||||||
"__config": "cpp",
|
"__config": "cpp",
|
||||||
"__nullptr": "cpp"
|
"__nullptr": "cpp",
|
||||||
|
"__bit_reference": "cpp",
|
||||||
|
"__string": "cpp",
|
||||||
|
"algorithm": "cpp",
|
||||||
|
"string": "cpp",
|
||||||
|
"string_view": "cpp"
|
||||||
},
|
},
|
||||||
"editor.insertSpaces": false,
|
"editor.insertSpaces": false,
|
||||||
"editor.tabSize": 3,
|
"editor.tabSize": 3,
|
||||||
|
@ -11,6 +11,17 @@ set(CMAKE_PREFIX_PATH ${NOSTALGIA_QT_PATH})
|
|||||||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules)
|
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules)
|
||||||
include(address_sanitizer)
|
include(address_sanitizer)
|
||||||
|
|
||||||
|
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
|
add_definitions(
|
||||||
|
-DDEBUG
|
||||||
|
)
|
||||||
|
else()
|
||||||
|
add_definitions(
|
||||||
|
-Werror
|
||||||
|
-DNDEBUG
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(NOSTALGIA_BUILD_TYPE STREQUAL "GBA")
|
if(NOSTALGIA_BUILD_TYPE STREQUAL "GBA")
|
||||||
include(GBA)
|
include(GBA)
|
||||||
add_definitions(
|
add_definitions(
|
||||||
@ -21,11 +32,9 @@ if(NOSTALGIA_BUILD_TYPE STREQUAL "GBA")
|
|||||||
-mthumb-interwork
|
-mthumb-interwork
|
||||||
-mthumb
|
-mthumb
|
||||||
)
|
)
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
|
||||||
else()
|
|
||||||
set(CMAKE_CXX_STANDARD 14)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
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)
|
HOST_ENV=${OS}-$(shell uname -m)
|
||||||
DEVENV=devenv$(shell pwd | sed 's/\//-/g')
|
DEVENV=devenv$(shell pwd | sed 's/\//-/g')
|
||||||
DEVENV_IMAGE=nostalgia-devenv
|
DEVENV_IMAGE=nostalgia-devenv
|
||||||
ifneq ($(shell which gmake),)
|
ifneq ($(shell which gmake 2> /dev/null),)
|
||||||
MAKE=gmake -s
|
MAKE=gmake -s
|
||||||
else
|
else
|
||||||
MAKE=make -s
|
MAKE=make -s
|
||||||
endif
|
endif
|
||||||
ifneq ($(shell which docker),)
|
ifneq ($(shell which docker 2> /dev/null),)
|
||||||
ifeq ($(shell docker inspect --format="{{.State.Status}}" ${DEVENV} 2>&1),running)
|
ifeq ($(shell docker inspect --format="{{.State.Status}}" ${DEVENV} 2>&1),running)
|
||||||
ENV_RUN=docker exec -i -t --user $(shell id -u ${USER}) ${DEVENV}
|
ENV_RUN=docker exec -i -t --user $(shell id -u ${USER}) ${DEVENV}
|
||||||
endif
|
endif
|
||||||
|
@ -6,4 +6,4 @@
|
|||||||
|
|
||||||
Run something along the lines of the following to let CMake know where Qt is installed. You may need to adjust this location.
|
Run something along the lines of the following to let CMake know where Qt is installed. You may need to adjust this location.
|
||||||
|
|
||||||
export CMAKE_PREFIX_PATH=/usr/local/Cellar/qt5/5.8.0_2/
|
export NOSTALGIA_QT_PATH=/usr/local/Cellar/qt5/5.8.0_2/
|
||||||
|
Loading…
Reference in New Issue
Block a user