[nostalgia] Cleanup

This commit is contained in:
Gary Talent 2018-04-13 19:30:13 -05:00
parent 5ba2936773
commit 263c14e0ff
2 changed files with 5 additions and 10 deletions

View File

@ -27,7 +27,10 @@
}, },
"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"
] ],
"compilerPath": "/usr/bin/clang",
"cStandard": "c11",
"cppStandard": "c++17"
}, },
{ {
"name": "Linux", "name": "Linux",

View File

@ -19,18 +19,10 @@ set(CMAKE_FIND_LIBRARY_PREFIXES lib)
set(CMAKE_FIND_LIBRARY_SUFFIXES .a) set(CMAKE_FIND_LIBRARY_SUFFIXES .a)
set(LINKER_FLAGS "-specs=gba.specs") set(LINKER_FLAGS "-specs=gba.specs")
add_definitions ( add_definitions(-DARM7)
-DARM7
)
function(BuildStaticLib LIBNAME SRCFILES)
add_library(${LIBNAME} OBJECT ${SRCFILES})
set(OBJS ${OBJS} $<TARGET_OBJECTS:${LIBNAME}>)
endfunction()
include(FindPackageHandleStandardArgs) include(FindPackageHandleStandardArgs)
macro(OBJCOPY_FILE EXE_NAME) macro(OBJCOPY_FILE EXE_NAME)
set(FO ${CMAKE_CURRENT_BINARY_DIR}/${EXE_NAME}.bin) set(FO ${CMAKE_CURRENT_BINARY_DIR}/${EXE_NAME}.bin)
set(FI ${CMAKE_CURRENT_BINARY_DIR}/${EXE_NAME}) set(FI ${CMAKE_CURRENT_BINARY_DIR}/${EXE_NAME})