From ee8d62188068bf49b0efa3b58b91e5a3e7580a19 Mon Sep 17 00:00:00 2001 From: StapleButter Date: Sun, 30 Apr 2017 03:46:27 +0200 Subject: [PATCH] finalize CMake shit. Windows will stick to CodeBlocks until making a cross-platform build system isn't a total trainwreck under Windows. --- .gitignore | 3 +-- CMakeLists.txt | 9 +++------ README.md | 6 ++++-- melon.rc | 8 ++++---- melonDS.cbp | 8 ++++---- src/{version.h.cmake => version.h} | 2 +- 6 files changed, 17 insertions(+), 19 deletions(-) rename src/{version.h.cmake => version.h} (95%) diff --git a/.gitignore b/.gitignore index 4272730e..d0ba7297 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ bin obj *.depend -*.layout -src/version.h \ No newline at end of file +*.layout \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index 7c5c6f23..3da4b2d0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,14 +2,8 @@ cmake_minimum_required(VERSION 2.8.11) SET(PROJECT_WX melonDS) PROJECT(${PROJECT_WX}) -SET(APP_VERSION 0.1) SET(INSTALL_PATH /usr/local/bin/) -SET(VERSION ${APP_VERSION}) - -CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/src/version.h.cmake - ${CMAKE_CURRENT_SOURCE_DIR}/src/version.h) - SET(SOURCES src/wx/main.cpp src/wx/EmuConfig.cpp @@ -30,10 +24,13 @@ SET(SOURCES src/NDSCart.cpp src/RTC.cpp src/SPI.cpp + src/SPU.cpp src/Wifi.cpp) +if (UNIX) find_package(GTK2 2.0 REQUIRED) include_directories(${GTK2_INCLUDE_DIRS}) +endif (UNIX) find_package(wxWidgets REQUIRED) include(${wxWidgets_USE_FILE}) diff --git a/README.md b/README.md index 4c51bda6..370d099a 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ Note: the DS-mode firmware in the 3DS isn't bootable, it only contains the bare As for the rest, the interface should be pretty straightforward. If you have a question, don't hesitate to ask, though! + How to build: Linux: @@ -29,8 +30,9 @@ Linux: Windows: * use CodeBlocks - -(build system not yet finished tho) + +Build system is not set in stone. + TODO LIST diff --git a/melon.rc b/melon.rc index a25fff3e..94be37b1 100644 --- a/melon.rc +++ b/melon.rc @@ -6,8 +6,8 @@ //include version information in .exe, modify these values to match your needs 1 VERSIONINFO -FILEVERSION 0,2,2,2 -PRODUCTVERSION 0,2,2,2 +FILEVERSION 0,3,3,3 +PRODUCTVERSION 0,3,3,3 FILETYPE VFT_APP { BLOCK "StringFileInfo" @@ -15,14 +15,14 @@ FILETYPE VFT_APP BLOCK "040904E4" { VALUE "CompanyName", "Melon Factory of Kuribo64" - VALUE "FileVersion", "0.2" + VALUE "FileVersion", "0.3" VALUE "FileDescription", "DS emulator, sorta. also 1st quality melon." VALUE "InternalName", "SDnolem" VALUE "LegalCopyright", "2016-2017 StapleButter & co." VALUE "LegalTrademarks", "" VALUE "OriginalFilename", "zafkflzdasd.exe" VALUE "ProductName", "melonDS" - VALUE "ProductVersion", "0.2" + VALUE "ProductVersion", "0.3" } } BLOCK "VarFileInfo" diff --git a/melonDS.cbp b/melonDS.cbp index bc0ee387..a1c6edbf 100644 --- a/melonDS.cbp +++ b/melonDS.cbp @@ -14,11 +14,11 @@