Update build system
This commit is contained in:
@@ -7,13 +7,16 @@ set(WOMBAT_BUILD_TYPE "Native" CACHE STRING "The type of build to produce(Native
|
||||
add_executable(
|
||||
nostalgia
|
||||
main.cpp
|
||||
${OBJS}
|
||||
)
|
||||
|
||||
#target_link_libraries(wombat ${LIBS})
|
||||
set_target_properties(nostalgia
|
||||
PROPERTIES
|
||||
LINK_FLAGS ${LINKER_FLAGS}
|
||||
COMPILER_FLAGS "-mthumb -mthumb-interwork"
|
||||
)
|
||||
objcopy_file(nostalgia)
|
||||
if(COMMAND objcopy_file)
|
||||
set_target_properties(nostalgia
|
||||
PROPERTIES
|
||||
LINK_FLAGS ${LINKER_FLAGS}
|
||||
COMPILER_FLAGS "-mthumb -mthumb-interwork"
|
||||
)
|
||||
|
||||
objcopy_file(nostalgia)
|
||||
endif()
|
||||
|
||||
target_link_libraries(nostalgia NostalgiaCore)
|
||||
|
||||
+11
-1
@@ -1,11 +1,21 @@
|
||||
/*
|
||||
* Copyright 2016 gtalent2@gmail.com
|
||||
*
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
#include "core/core.hpp"
|
||||
|
||||
using namespace nostalgia;
|
||||
|
||||
int main() {
|
||||
core::init();
|
||||
|
||||
((unsigned short*)0x06000000)[120+80*240] = 0x001F;
|
||||
((unsigned short*)0x06000000)[136+80*240] = 0x03E0;
|
||||
((unsigned short*)0x06000000)[120+96*240] = 0x7C00;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user