finalize CMake shit.

Windows will stick to CodeBlocks until making a cross-platform build system isn't a total trainwreck under Windows.
This commit is contained in:
StapleButter 2017-04-30 03:46:27 +02:00
parent 1b06b2765d
commit ee8d621880
6 changed files with 17 additions and 19 deletions

3
.gitignore vendored
View File

@ -1,5 +1,4 @@
bin bin
obj obj
*.depend *.depend
*.layout *.layout
src/version.h

View File

@ -2,14 +2,8 @@ cmake_minimum_required(VERSION 2.8.11)
SET(PROJECT_WX melonDS) SET(PROJECT_WX melonDS)
PROJECT(${PROJECT_WX}) PROJECT(${PROJECT_WX})
SET(APP_VERSION 0.1)
SET(INSTALL_PATH /usr/local/bin/) 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 SET(SOURCES
src/wx/main.cpp src/wx/main.cpp
src/wx/EmuConfig.cpp src/wx/EmuConfig.cpp
@ -30,10 +24,13 @@ SET(SOURCES
src/NDSCart.cpp src/NDSCart.cpp
src/RTC.cpp src/RTC.cpp
src/SPI.cpp src/SPI.cpp
src/SPU.cpp
src/Wifi.cpp) src/Wifi.cpp)
if (UNIX)
find_package(GTK2 2.0 REQUIRED) find_package(GTK2 2.0 REQUIRED)
include_directories(${GTK2_INCLUDE_DIRS}) include_directories(${GTK2_INCLUDE_DIRS})
endif (UNIX)
find_package(wxWidgets REQUIRED) find_package(wxWidgets REQUIRED)
include(${wxWidgets_USE_FILE}) include(${wxWidgets_USE_FILE})

View File

@ -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! As for the rest, the interface should be pretty straightforward. If you have a question, don't hesitate to ask, though!
How to build: How to build:
Linux: Linux:
@ -29,8 +30,9 @@ Linux:
Windows: Windows:
* use CodeBlocks * use CodeBlocks
(build system not yet finished tho) Build system is not set in stone.
TODO LIST TODO LIST

View File

@ -6,8 +6,8 @@
//include version information in .exe, modify these values to match your needs //include version information in .exe, modify these values to match your needs
1 VERSIONINFO 1 VERSIONINFO
FILEVERSION 0,2,2,2 FILEVERSION 0,3,3,3
PRODUCTVERSION 0,2,2,2 PRODUCTVERSION 0,3,3,3
FILETYPE VFT_APP FILETYPE VFT_APP
{ {
BLOCK "StringFileInfo" BLOCK "StringFileInfo"
@ -15,14 +15,14 @@ FILETYPE VFT_APP
BLOCK "040904E4" BLOCK "040904E4"
{ {
VALUE "CompanyName", "Melon Factory of Kuribo64" VALUE "CompanyName", "Melon Factory of Kuribo64"
VALUE "FileVersion", "0.2" VALUE "FileVersion", "0.3"
VALUE "FileDescription", "DS emulator, sorta. also 1st quality melon." VALUE "FileDescription", "DS emulator, sorta. also 1st quality melon."
VALUE "InternalName", "SDnolem" VALUE "InternalName", "SDnolem"
VALUE "LegalCopyright", "2016-2017 StapleButter & co." VALUE "LegalCopyright", "2016-2017 StapleButter & co."
VALUE "LegalTrademarks", "" VALUE "LegalTrademarks", ""
VALUE "OriginalFilename", "zafkflzdasd.exe" VALUE "OriginalFilename", "zafkflzdasd.exe"
VALUE "ProductName", "melonDS" VALUE "ProductName", "melonDS"
VALUE "ProductVersion", "0.2" VALUE "ProductVersion", "0.3"
} }
} }
BLOCK "VarFileInfo" BLOCK "VarFileInfo"

View File

@ -14,11 +14,11 @@
<Option compiler="gcc" /> <Option compiler="gcc" />
<Compiler> <Compiler>
<Add option="-m64" /> <Add option="-m64" />
<Add option="-g" />
<Add option="-D_FILE_OFFSET_BITS=64" />
<Add option="-D__WXMSW__" />
<Add option="-I$(TARGET_COMPILER_DIR)/lib/wx/include/msw-unicode-static-3.0" /> <Add option="-I$(TARGET_COMPILER_DIR)/lib/wx/include/msw-unicode-static-3.0" />
<Add option="-I$(TARGET_COMPILER_DIR)/include/wx-3.0" /> <Add option="-I$(TARGET_COMPILER_DIR)/include/wx-3.0" />
<Add option="-gdwarf-2" />
<Add option="-D_FILE_OFFSET_BITS=64" />
<Add option="-D__WXMSW__" />
</Compiler> </Compiler>
<Linker> <Linker>
<Add option="-m64" /> <Add option="-m64" />
@ -125,9 +125,9 @@
<Compiler> <Compiler>
<Add option="-O2" /> <Add option="-O2" />
<Add option="-m64" /> <Add option="-m64" />
<Add option="-g" />
<Add option="-I$(TARGET_COMPILER_DIR)/lib/wx/include/msw-unicode-static-3.0" /> <Add option="-I$(TARGET_COMPILER_DIR)/lib/wx/include/msw-unicode-static-3.0" />
<Add option="-I$(TARGET_COMPILER_DIR)/include/wx-3.0" /> <Add option="-I$(TARGET_COMPILER_DIR)/include/wx-3.0" />
<Add option="-gdwarf-2" />
<Add option="-D_FILE_OFFSET_BITS=64" /> <Add option="-D_FILE_OFFSET_BITS=64" />
<Add option="-D__WXMSW__" /> <Add option="-D__WXMSW__" />
</Compiler> </Compiler>

View File

@ -19,7 +19,7 @@
#ifndef VERSION_H #ifndef VERSION_H
#define VERSION_H #define VERSION_H
#define MELONDS_VERSION "@VERSION@" #define MELONDS_VERSION "0.3"
#define MELONDS_URL "http://melonds.kuribo64.net/" #define MELONDS_URL "http://melonds.kuribo64.net/"