Skip to content

Commit

Permalink
finalize CMake shit.
Browse files Browse the repository at this point in the history
Windows will stick to CodeBlocks until making a cross-platform build system isn't a total trainwreck under Windows.
  • Loading branch information
Arisotura committed Apr 30, 2017
1 parent 1b06b27 commit ee8d621
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 19 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
bin
obj
*.depend
*.layout
src/version.h
*.layout
9 changes: 3 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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})
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -29,8 +30,9 @@ Linux:

Windows:
* use CodeBlocks

(build system not yet finished tho)

Build system is not set in stone.


TODO LIST

Expand Down
8 changes: 4 additions & 4 deletions melon.rc
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@

//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"
{
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"
Expand Down
8 changes: 4 additions & 4 deletions melonDS.cbp
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
<Option compiler="gcc" />
<Compiler>
<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)/include/wx-3.0" />
<Add option="-gdwarf-2" />
<Add option="-D_FILE_OFFSET_BITS=64" />
<Add option="-D__WXMSW__" />
</Compiler>
<Linker>
<Add option="-m64" />
Expand Down Expand Up @@ -125,9 +125,9 @@
<Compiler>
<Add option="-O2" />
<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)/include/wx-3.0" />
<Add option="-gdwarf-2" />
<Add option="-D_FILE_OFFSET_BITS=64" />
<Add option="-D__WXMSW__" />
</Compiler>
Expand Down
2 changes: 1 addition & 1 deletion src/version.h.cmake → src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#ifndef VERSION_H
#define VERSION_H

#define MELONDS_VERSION "@VERSION@"
#define MELONDS_VERSION "0.3"

#define MELONDS_URL "http://melonds.kuribo64.net/"

Expand Down

0 comments on commit ee8d621

Please sign in to comment.